Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
storage:lvm [2019/08/07 17:00] eServices Greece created |
storage:lvm [2019/08/07 17:11] (current) eServices Greece |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | === LVM === | + | ====== |
+ | |||
+ | ===== Resize ===== | ||
+ | ==== Logical Volume ==== | ||
+ | === Increase Logical Volume Size === | ||
+ | Increase by 1GB | ||
+ | <sxh bash> | ||
+ | |||
+ | |||
+ | === Decrease Logical Volume Size === | ||
+ | Decrease by 1GB | ||
+ | <sxh bash> | ||
+ | |||
+ | === Filesystem Resize === | ||
+ | For ext3 & ext4 | ||
+ | <sxh bash> | ||
+ | |||
+ | For xfs | ||
+ | <sxh bash> | ||
+ | |||
+ | ===== VM Related ===== | ||
+ | === mount lvm disk on partition === | ||
+ | |||
+ | <sxh bash> | ||
+ | kpartx -av / | ||
+ | mount / | ||
+ | </ | ||
+ | |||
+ | === unmount lvm disk === | ||
+ | <sxh bash> | ||
+ | umount /mnt | ||
+ | kpartx -dv / | ||
+ | </ |