Re: question: no-bitmap RAID1 with off-site drive

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

 



Would like to have the option to zero the
superblock of an incoming drive and have
it treated as a virgin replacement.

I tried this (I think) by running

   mdadm --add /dev/md2 /dev/sde

It worked, but assigned the new drive
as device number [2], which seems
incorrect.  I tried failing/removing the
drive followed by a

   mdadm --remove /dev/md2 detached

and repeated the --add with a zero-superblock
drive but it does the same thing every time.
Only way to get it to reuse drive slot 1
was to do a 

   mdadm --grow --raid-devices=1 --force /dev/md2

followed by a

   mdadm --grow --add --raid-devices=2 /dev/md2 /dev/sde

Is this the expected behavior?  I find it
confusing and probably don't understand
it properly.

Kernel is 3.1.8.

--
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