Re: adding a disk smaller than the array size

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

 



> And failing everything, you could (maybe) clone the array-disk to the empty 
> smaller one, run fsck to fix the partition size (but I'm not totally sure it 
> does, so that remains doubtful), reverse the roles of the two disks and then 
> add the -now free- larger disk to the array. But that would be a last resort.
> I cannot vouch for how md copes with the few missing sectors, and neither how 
> the filesystem reacts, so you'd better not try that without good testing.

Or just do this same thing at the filesystem level.

Right now you have md0 with one missing disk.  Use your new disk to
create md1 with one missing disk.  Create filesystem on md1, and copy
files with e.g. tar, rsync, etc.  Then get rid of md0 and add that
drive to md1.

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