SYS: Extend existing unencrypted ext4-formatted logical volumes.

Share this link

To extend an unencrypted ext4-formatted logical volume (here /dev/vg/lv_vol) by 1GB, type:

# lvextend --size +1G -r /dev/vg/lv_vol

Note: The file system is automatically extended (-r) without any need to unmount it.

To reduce the size of a logical volume (here by 1GB), you have to follow these steps:
Unmount the file system (here /dev/vg/lv_vol):

# umount /dev/vg/lv_vol

Reduce the logical volume (here /dev/vg/lv_vol) and the associated file system (-r):

# lvreduce --size -1G -r /dev/vg/lv_vol

Mount the file system (here /dev/vg/lv_vol):

# mount /dev/vg/lv_vol /mnt
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...

Leave a Reply

Please Login to comment
  Subscribe  
Notify of

Upcoming Events (Local Time)

  1. Feb
    1
    Fri

    1. 8:30 am - View Details
      CentOS: Dojo, Brussels, Belgium.

RHCSA7: Task of the day

Allowed time: 10 minutes.
Set up a default configuration HTTP server with SELinux in Enforcing mode and active firewalld configuration.

RHCE7: Task of the day

Allowed time: 10 minutes.
Set up a default secure MariaDB database called maria with a user named muser with all privileges.

Follow me on Twitter

Poll for favorite RHEL 7 book

What is your favorite RHEL 7 book to prepare RHCSA & RHCE exams?

View Results

Loading ... Loading ...

Poll for most difficult RHCSA 7 topic

What do you think is the most difficult RHCSA 7 topic?

View Results

Loading ... Loading ...

Poll for most difficult RHCE 7 topic

What do you think is the most difficult RHCE 7 topic?

View Results

Loading ... Loading ...