proxmox:vm:increase_lvm_1part
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| proxmox:vm:increase_lvm_1part [2023/10/11 14:38] – angelegt max | proxmox:vm:increase_lvm_1part [2025/10/07 23:33] (aktuell) – max | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| + | ===== Vergrößern eines VLMs und einer Partition auf einer HDD ===== | ||
| + | <code bash> | ||
| + | |||
| + | # modify partition size of sdX | ||
| + | fdisk /dev/sdX | ||
| + | |||
| + | Press: | ||
| + | d -> Delete current Partitiontable | ||
| + | n -> Generate new Partitiontable (Set maximum Size if wanted) | ||
| + | w -> Write to partitiontable | ||
| + | |||
| + | sudo partprobe | ||
| + | sudo pvresize /dev/sdXn | ||
| + | |||
| + | |||
| + | # resine partition size of current modified xdX | ||
| + | resize2fs /dev/sdX1 # For ext4 Filesystem | ||
| + | xfs_growfs /dev/sdX1 # For ifs Filesystem | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | # increase PV size | ||
| + | pvresize /dev/sdb1 | ||
| + | |||
| + | # Get the name of the lv and vg for the next command | ||
| + | # Look for LV Name = lv, VG Name = vg | ||
| + | lvdisplay | ||
| + | |||
| + | # increase LV size | ||
| + | lvresize -l +100%FREE VG-Name/ | ||
| + | |||
| + | </ | ||
