Tuesday, March 30, 2010

How To Resize RAID Partitions (Shrink & Grow) (Software RAID) | HowtoForge - Linux Howtos and Tutorials

How To Resize RAID Partitions (Shrink & Grow) (Software RAID) | HowtoForge - Linux Howtos and Tutorials: "2.2 Growing An Intact Array

Boot into your rescue system and activate all needed modules:

modprobe md
modprobe linear
modprobe multipath
modprobe raid0
modprobe raid1
modprobe raid5
modprobe raid6
modprobe raid10

Then activate your RAID arrays:

cp /etc/mdadm/mdadm.conf /etc/mdadm/mdadm.conf_orig
mdadm --examine --scan >> /etc/mdadm/mdadm.conf

mdadm -A --scan

Now we can grow /dev/md2 as follows:

mdadm --grow /dev/md2 --size=max

--size=max means the largest possible value. You can as well specify a size in KiBytes (see previous chapter)."

No comments: