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 (No Ratings Yet)
Loading...

Leave a Reply

Be the First to Comment!

Notify of
wpDiscuz

RHCSA7: Task of the day

Allowed time: 8 minutes.
Find all files bigger than 100MB and write their names into the /root/results.txt file.

RHCE7: Task of the day

Allowed time: 15 minutes.
Configure a httpd server with a password protected directory under the /var/www/html/private directory.

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

Recent Comments