[Solved] Resizing LVM

If none of the more specific forums is the right place to ask

Re: Resizing LVM

Postby vitaliok78 » 2018-09-05 12:25

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.
vitaliok78
 
Posts: 18
Joined: 2018-08-19 16:26

Re: [Solved] Resizing LVM

Postby p.H » 2018-09-06 10:29

What is the point of quoting my post without adding any comment ?
p.H
 
Posts: 631
Joined: 2017-09-17 07:12

Re: [Solved] Resizing LVM

Postby vitaliok78 » 2018-09-06 10:45

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.
vitaliok78
 
Posts: 18
Joined: 2018-08-19 16:26

Re: [Solved] Resizing LVM

Postby p.H » 2018-09-06 13:12

Glad to read it, but I already knew from your title change and it does not answer my question.
p.H
 
Posts: 631
Joined: 2017-09-17 07:12

Re: [Solved] Resizing LVM

Postby GarryRicketson » 2018-09-06 18:04

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.
User avatar
GarryRicketson
 
Posts: 5167
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Previous

Return to General Questions

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable