Re: mdadm + raid1 of 2 disks and now need to add more

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



yea! it is a testing server I use that is the same kernel as our main
server... just for tests like these so we don't screw up .... I never
run the real thing before I'm sure I know I've got it working on our
test server.

Well... what I did was:
--------------------------------

# cat do_changes.sh
#!/bin/bash -x

umount /mnt/md0
read
mdadm --stop /dev/md0
read
mdadm --zero-super /dev/ide/host0/bus1/target1/lun0/part1
read
mdadm -C -n 4 -l 1 /dev/md0 /dev/ide/host0/bus1/target1/lun0/part1
missing missing missing
read
### end of script ###

What do you think?

Shai

On 4/12/06, Neil Brown <neilb@xxxxxxx> wrote:
> On Wednesday April 12, shaibn@xxxxxxxxx wrote:
> > I now have the md0 raid1 with 2 disks and 1 spare:
> >        0      22       65        0      active sync   /dev/hdd1
> >        1      22       66        1      active sync   /dev/hdd2
> >
> >        2      22       67        2      spare   /dev/hdd3
> >
> > # /usr/local/sbin/mdadm -G -n 3 /dev/md0
> > mdadm: Cannot set raid-devices for /dev/md0: File exists
> >
> > i'm using kernel 2.4.26
>
> You'll need a 2.6 kernel for that, I don't remember which one is the
> minimum.
>
> If you are stuck with 2.4, you need to recreate the array:
>  mdadm -S /dev/md0
>  mdadm -C /dev/md0 -l1 -n3 --assume-clean /dev/hdd1 /dev/hdd2 missing
>  mdadm /dev/md0 -a /dev/hdd3
>
> (is that really 3 partitions on the one device?  Just for testing,
> right?
>
> NeilBrown
>
> >
> > # /usr/local/sbin/mdadm -V
> > mdadm - v2.4.1 -  4 April 2006
> >
> > On 4/11/06, Shai <shaibn@xxxxxxxxx> wrote:
> > > Hi,
> > >
> > > I have two SCSI disks on raid1.
> > > Since I have lots of reads from that raid, I want to add two more
> > > disks to this raid so that read will be faster.
> > >
> > > How should I add the new disks?
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> > the body of a message to majordomo@xxxxxxxxxxxxxxx
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux