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

Randy Zagar zagar at arlut.utexas.edu
Wed Jan 25 15:07:06 UTC 2012


pvresize

On Wed, 2012-01-25 at 04:40 -0500, linux-cluster-request at redhat.com
wrote:

> Message: 2
> Date: Tue, 24 Jan 2012 14:19:58 -0800
> From: Wes Modes <wmodes at ucsc.edu>
> To: linux-cluster at redhat.com
> Subject: Re: [Linux-cluster] Expanding a LUN and a GFS2 filesystem
> Message-ID: <4F1F2E8E.4010308 at ucsc.edu>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> I have not extended the volume.  That was precisely my question.  I
> already understand how to grow the GFS2 filesystem (conceptually).  As
> per https://alteeve.com/w/Grow_a_GFS2_Partition. 
> 
> I've tried to increase the size of the volume with lvextend, but it's
> not having it. 
> 
>     [root at test03]# lvextend -L +2T /dev/sdb
>       Path required for Logical Volume "sdb"
>       Please provide a volume group name
>       Run `lvextend --help' for more information.
>     [root at test03]# lvextend -L +2T  /dev/mapper/gdcache_vg-gdcache_lv /dev/sdb
>       Extending logical volume gdcache_lv to 4.00 TB
>       Insufficient free space: 524288 extents needed, but only 3 available
>     [root at test03]# lvextend -L +2000G  /dev/mapper/gdcache_vg-gdcache_lv /dev/sdb  
>       Extending logical volume gdcache_lv to 3.95 TB
>       Insufficient free space: 512000 extents needed, but only 3 available
>     [root at test03]# lvextend -L +1999G  /dev/mapper/gdcache_vg-gdcache_lv /dev/sdb    
>       Extending logical volume gdcache_lv to 3.95 TB
>       Insufficient free space: 511744 extents needed, but only 3 available
> 
> I assume I need to expand the underlying PV or VG.  But how?
> 
> Wes




More information about the Linux-cluster mailing list