Geek Odyssey - Online Filesystem Expansion using the Linux Storage Stack

/dev/mapper/vg01--vol1-storagepool1                      2.7T  2.0T  579G  78% /export

root@localhost:~# mdadm --add /dev/md3 /dev/sdf1
root@localhost:~# mdadm --grow /dev/md3 --raid-devices=4
root@localhost:~# cat /proc/mdstat
Personalities : \[linear\] \[multipath\] \[raid0\] \[raid1\] \[raid6\] \[raid5\] \[raid4\] \[raid10\]
md3 : active raid5 sdf1\[3\] sdi1\[2\] sdg1\[0\] sdh1\[1\]
1953519872 blocks super 0.91 level 5, 64k chunk, algorithm 2 \[4/4\] \[UUUU\]
\[>....................\] reshape = 0.2% (2396040/976759936) finish=1458.9min speed=11130K/sec

md2 : active raid5 sde1\[2\] sdd1\[1\] sdc1\[0\]
976767872 blocks level 5, 64k chunk, algorithm 2 \[3/3\] \[UUU\]

md0 : active raid1 sda2\[0\] sdb2\[1\]
4192896 blocks \[2/2\] \[UU\]

md1 : active raid1 sda1\[0\] sdb1\[1\]
239994880 blocks \[2/2\] \[UU\]

unused devices: <none>

root@localhost:~# lvresize -l +100%FREE /dev/vg01-vol1/storagepool1
 Extending logical volume storagepool1 to 3.64 TiB
 Logical volume storagepool1 successfully resized
root@localhost:~# resize2fs /dev/vg01-vol1/storagepool1
resize2fs 1.41.11 (14-Mar-2010)
Filesystem at /dev/vg01-vol1/storagepool1 is mounted on /export; on-line resizing required
old desc\_blocks = 172, new\_desc\_blocks = 233
Performing an on-line resize of /dev/vg01-vol1/storagepool1 to 976756736 (4k) blocks.

/dev/mapper/vg01--vol1-storagepool1                      3.6T  2.0T  1.5T  57% /export

Hell yeah.