Re: Expanding a LUN and a GFS2 filesystem

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

 



----- 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

--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster


[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux