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

Upcoming Events (Local Time)

There are no events.

RHCSA7: Task of the day

Allowed time: 5 minutes.
Set up time services pointing to default time servers.

RHCE7: Task of the day

Allowed time: 3 minutes.
Configure your machine to be a router.

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