User Tools

Site Tools


lvm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
lvm [2021/03/23 13:25] ssm2017lvm [2022/02/07 13:29] (current) – external edit 127.0.0.1
Line 6: Line 6:
 resize2fs /dev/system-zjrak/assets resize2fs /dev/system-zjrak/assets
 </sxh> </sxh>
 +
 +==== Reduce lvm ====
 +  * use rescue mode and select ubuntu 14.04
 +  * connect and use sudo
 +  * find the volume group using lvscan (exemple : /dev/system-uwslj/root)
 +  * check the disk with <sxh bash>e2fsck -fy /dev/system-uwslj/root</sxh>
 +  * resize the disk to 4G (only 2G are used by default) <sxh bash>resize2fs /dev/system-uwslj/root 4G</sxh>
 +  * reduce the lvm volume <sxh bash>lvreduce -L 5G /dev/system-uwslj/root</sxh>
 +  * resize the partition with the empty space <sxh bash>resize2fs /dev/system-uwslj/root</sxh>
 +  * disconnect from the rescue mode and restart in normal mode
 +
 +==== Add the storage to proxmox ====
 +  * got to "Datacenter" then "Storage"
 +  * add a "lvm" volume and select the group
lvm.1616502327.txt.gz · Last modified: (external edit)