How to extend logical volumes (RHEL7)

[root@nm-spacewalk ~]# df -h
Filesystem                         Size              Used           Avail         Use%      Mounted on
/dev/mapper/vg_00-root    3.0G              2.9G           48M          99%        /

To extend /, we would of course run (to increase by 5GB)

[root@nm-spacewalk ~]# lvextend -L +5G /dev/mapper/vg_00-root

Now we will resize with,

[root@nm-spacewalk ~]# xfs_growfs  /dev/mapper/vg_00-root

 

Leave a Reply

Your email address will not be published. Required fields are marked *