[email protected] wrote:
is it possible to increase the size of a SAN LUN in order to extend a
LVM PV and VG living on that LUN without a reboot? Of course I can
hot-add a new physical disk and extend the VG but for some reasons we
sometimes want to resize an existing LUN so that the number of LUNs
attached to the system remains constant.
Any hints are welcome. Thank you!
Yes, it works, and as of RHEL 5.3 it also works with dm-multipath. Roughly:
1) Increase size of LUN in SAN
2) Check with "multipath -ll" which devices belong to said LUN
3) For each device above, do "echo 1 > /sys/block/sdX/device/rescan"
4) Go to multipath command line with "multipathd -k"
5) For each device, do "del path sdX", "add path sdX" while hoping that
the multipathing functionality works as advertised and fails over properly.
6) "resize map multipath-map-name"
7) Exit multipath command line (Ctrl-D), check with "multipath -ll" that
new size is seen.
8) pvresize, lvextend, resize2fs
9) Profit!
That being said, we've been having problems with resize2fs in online
mode hanging the entire machine, which sort of defeats the purpose of
the above (rh bugzilla #525100). Maybe you have better luck.
--
Janne Blomqvist
_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list