Loading...
 
[Zobrazit/Skrýt nabídky vlevo]
[Zobrazit/Skrýt nabídky vpravo]

ResizeMDRaid0

Assume we will change the size of /dev/md0. md0 is RAID 0 with two member disks, /dev/sda1 and /dev/sdb1.

1) Stop the raid:

> mdadm --stop /dev/md0


2) Assemble the raid again, tell mdadm to recalculate member disk metadata (this works only for raids with metadata 1.1 and above):

> mdadm --assemble --update=devicesize /dev/md0 /dev/sda1 /dev/sdb1.
Size was 104792064
Size is 146735104
Size was 104792064
Size is 146735104
mdadm: /dev/md0 has been started with 2 drives.


Created by dfabian. Last Modification: Čtvrtek 29 of říjen, 2015 14:38:08 CET by dfabian.