----- "Antonio da Silva Martins Junior" asmartins@uem.br escreveu:
De: "Antonio da Silva Martins Junior" asmartins@uem.br Para: centos@centos.org Enviadas: Quinta-feira, 13 de Outubro de 2011 15:58:34 (GMT-0300) Auto-Detected Assunto: [CentOS] pvresize on a cLVM
Hi,
I'm needing to expand a LUN on my EMC CX4-120 SAN. (Well I already had done it).
On this LUN I had a PV of a cLVM VG. Know I need to run pvresize on it.
Has anybody done this on a cLVM PV ?
I'm trying to rescan the devices, but I can't "see" the new size. And, googling on it I can only find RHEL5.2 responses.
Well, I did it :D
After more search I found this: http://serverfault.com/questions/66638/how-to-extend-a-san-based-vdisk-in-re...
With this instructions:
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!
Well, to do steps 4, 5 and 6 on a 10 node cluster will be a litte slow... then I did:
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) service multipathd restart 5) pvresize, lvextend, resize2fs
The steps on 3, 4 and 5 where did with cexec (from C3 package).
Works!! Solved!!
Thanks,
Antonio.