Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Resizing LVM

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
vitaliok78
Posts: 18
Joined: 2018-08-19 16:26

Re: Resizing LVM

#16 Post by vitaliok78 »

p.H wrote:Log in directly as root.

Code: Select all

# unmount /home because an ext4 filesystem cannot be reduced while mounted
umount /home

# resize the ext4 filesystem in logical volume zeus-vg/home to 50G
fsck -f /dev/mapper/zeus--vg-home
resize2fs /dev/mapper/zeus--vg-home 50G

# reduce the logical volume zeus-vg/home to 50G
lvreduce -L50G /dev/mapper/zeus--vg-home

# remount /home
mount /home

# extend the logical volume zeus-vg/var by 20G
lvextend -L+20G /dev/mapper/zeus--vg-var

# resize the ext4 filesystem in logical volume zeus-vg/var to the new volume size
resize2fs /dev/mapper/zeus--vg-var
You can of course adjust the indicated sizes. I advise to not allocate all the available space to /var at once and keep some free space for future growth of any logical volume when needed. Extending a logical volume (and its filesystem) is easy : just repeat the above last two commands.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: [Solved] Resizing LVM

#17 Post by p.H »

What is the point of quoting my post without adding any comment ?

vitaliok78
Posts: 18
Joined: 2018-08-19 16:26

Re: [Solved] Resizing LVM

#18 Post by vitaliok78 »

p.H wrote:What is the point of quoting my post without adding any comment ?
I fully resolved the matter regarding resizing the LVM disk without issues.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: [Solved] Resizing LVM

#19 Post by p.H »

Glad to read it, but I already knew from your title change and it does not answer my question.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: [Solved] Resizing LVM

#20 Post by GarryRicketson »

Thanks P.H, for giving the instructions you gave, as for the full quote , with no additional comment, or anything, I don't know :
Please learn to stop misusing "full quoting."
It does not make sense to me either when some one does that.

Post Reply