[Linux-cluster] Expanding a LUN and a GFS2 filesystem

Bob Peterson rpeterso at redhat.com
Tue Jan 24 21:24:12 UTC 2012


----- Original Message -----
| I am running CentOS with a GFS2 filesystem on a Dell EqualLogic SAN.
|  I
| created the filesystem by mapping an RDM through VMWare to the guest
| OS.  I used pvcreate, vgcreate, lvcreate, and mkfs.gfs2 to create the
| filesystem and the underlying architecture.  I've included the log I
| created to document the process below.
| 
| I've already increased the size of the LUN on the SAN.  Now, how do I
| increase the size of the GFS2 filesystem and the LVM beneath it?  Do
| I
| need to do something with the PV and VG as well?
| 
| Thanks in advance for your help.
| 
| Wes

Hi Wes,

Yep, you do need to start cman service before clvmd.

If you've already extended the volume with lvresize or lvextend,
then the procedure to expand the GFS2 file system to use that
extra space is simple:

1. mount it on both nodes
2. gfs2_grow /mnt/point (your mount point)

If it was my file system, I'd umount it at that point and do sync
just to be on the safe side. Some older versions of the software
didn't always sync the statfs information correctly, etc.
It shouldn't be necessary, but it doesn't hurt to do it, right?
Then mount it again.

Regards,

Bob Peterson
Red Hat File Systems




More information about the Linux-cluster mailing list