[Linux-cluster] What is the proper way to grow LVM/GFS volumes

Scott Wilson swilson at uchicago.edu
Tue Nov 18 21:15:57 UTC 2008


I think you need:

lvextend  -l+100%FREE  /dev/nuvg4/nulv4
             ^

Without the +, you were trying to set the logical volume size to the size 
of your free space, not adding the free space to the size.


Scott Wilson                    Lead System Administrator
swilson at uchicago.edu            NSIT - DCS - SeaUnix

On Tue, 18 Nov 2008, Alan A wrote:

> I tried a few times to grow LVM by adding additional PV to VG, and then
> executing 'lvextend' command. I am not sure what I am doing wrong but I get
> the message that there is error locking on one of the nodes, and then the
> GFS hangs.
>
> Here are some of the details:
>
> [root at fenmrdev03 ~]# vgs
>  VG         #PV #LV #SN Attr   VSize  VFree
>  VolGroup00   2   2   0 wz--n- 50.75G    0
>  gfs_sda1     1   1   0 wz--nc 10.00G 5.00G
>  gfs_sdb1     1   1   0 wz--nc 10.00G 3.00G
>  nuvg4        2   1   0 wz--nc 10.00G 5.00G
> [root at fenmrdev03 ~]# lvs
>  LV       VG         Attr   LSize  Origin Snap%  Move Log Copy%  Convert
>  LogVol00 VolGroup00 -wi-ao 40.81G
>  LogVol01 VolGroup00 -wi-ao  9.94G
>  gfs_sda1 gfs_sda1   -wi-ao  5.00G
>  gfs_sdb1 gfs_sdb1   -wi-ao  7.00G
>  nulv4    nuvg4      -wi-ao  5.00G
> [root at fenmrdev03 ~]# pvs
>  PV                VG         Fmt  Attr PSize  PFree
>  /dev/cciss/c0d0p2 VolGroup00 lvm2 a-   33.81G    0
>  /dev/cciss/c0d1p1 VolGroup00 lvm2 a-   16.94G    0
>  /dev/sda1         gfs_sda1   lvm2 a-   10.00G 5.00G
>  /dev/sdb1         gfs_sdb1   lvm2 a-   10.00G 3.00G
>  /dev/sdc          nuvg4      lvm2 a-    5.00G    0
>  /dev/sdd          nuvg4      lvm2 a-    5.00G 5.00G
>
>
> Command I tried:
> [root at fenmrdev03 ~]# lvextend  -l100%FREE  /dev/nuvg4/nulv4
>
>
>
>
> -- 
> Alan A.
>




More information about the Linux-cluster mailing list