wiki:lvm_commands
Differences
This shows you the differences between two versions of the page.
| wiki:lvm_commands [2025/11/21 13:26] – created antisa | wiki:lvm_commands [2026/05/11 11:52] (current) – add VM instructions antisa | ||
|---|---|---|---|
| Line 13: | Line 13: | ||
| Checking with '' | Checking with '' | ||
| - | ====== Tested on ====== | + | ==== Tested on ==== |
| * AlmaLinux 9 | * AlmaLinux 9 | ||
| + | ===== Increasing disk of virtual machine ===== | ||
| + | On base host (add 50 GB of space) | ||
| + | lvextend -L +50G / | ||
| + | |||
| + | |||
| + | Restart VM then inside VM run (install '' | ||
| + | |||
| + | |||
| + | growpart /dev/sda 1 | ||
| + | pvresize /dev/sda1 | ||
| + | lvextend -l +100%FREE / | ||
| + | |||
| + | For ext4 FS | ||
| + | resize2fs / | ||
| + | | ||
| + | For XFS FS | ||
| + | xfs_growfs / | ||
| + | |||
| + | ==== Tested on ==== | ||
| + | * CentOS Linux 7 (Core) host and guest | ||
| + | |||
| ====== See also ====== | ====== See also ====== | ||
| Line 20: | Line 41: | ||
| ====== References ====== | ====== References ====== | ||
| * http:// | * http:// | ||
| + | * https:// | ||
| + | * https:// | ||
wiki/lvm_commands.txt · Last modified: by antisa
