Re: pvresize on a cLVM [SOLVED]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



----- "Antonio da Silva Martins Junior" <asmartins@xxxxxx> escreveu:
> De: "Antonio da Silva Martins Junior" <asmartins@xxxxxx>
> Para: centos@xxxxxxxxxx
> Enviadas: Quinta-feira, 13 de Outubro de 2011 15:58:34 (GMT-0300) Auto-Detected
> Assunto:  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-red-hat-without-rebooting

   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.

         






-- 
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Antonio S. Martins Jr. - Support Analyst | "Only The Shadow Knows     |
| Universidade Estadual de Maringá - Brasil|   what evil lurks in the   |
| NPD - Núcleo de Processamento de Dados   |       Heart of Men!"       |
| E-Mail: asmartins@xxxxxx / shadow@xxxxxx | !!! Linux User: 52392 !!!  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     "Real Programmers don’t need comments — the code is obvious."

-- 
Esta mensagem foi verificada pelo sistema de antivirus e
 acredita-se estar livre de perigo.

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux