2012/1/24 Bob Peterson <rpeterso@xxxxxxxxxx>
Hello,
To add extra space to your VG, you can either map a new RDM (or vdisk), rescan your adapter and create a PV on this new disk and extend your FS as described above.
Or extend the existing RDM, but you'll have to umount all FS using this RDM before being able to use the new extra space (rescan then pvresize).
Regards,
--Seb Roy
In order to make the volume bigger, you need to lvresize or lvextend it.----- Original Message -----
| 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@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@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@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@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
In order to do that, you need to make the volume group bigger. If your
volume group has no more space, you can add storage devices to it with
a command like this:
vgextend gdcache_vg /dev/sdt /dev/sdu /dev/sdv
(assuming you want to add those devices to the vg)
Once you've done that, you can extend the lv with lvresize or lvextend.
So something like:
vgextend gdcache_vg /dev/sdt /dev/sdu /dev/sdv
lvresize -L+1T /dev/gdcache_vg/gdcache_lv
mount -t gfs2 /dev/gdcache_vg/gdcache_lv /mnt/gfs2
gfs2_grow /mnt/gfs2
Regards,
Bob Peterson
Red Hat File Systems
Hello,
To add extra space to your VG, you can either map a new RDM (or vdisk), rescan your adapter and create a PV on this new disk and extend your FS as described above.
Or extend the existing RDM, but you'll have to umount all FS using this RDM before being able to use the new extra space (rescan then pvresize).
Regards,
--Seb Roy
-- Linux-cluster mailing list Linux-cluster@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/linux-cluster