This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| docu:csheet:sysadm:disks:grow_partition [2020/06/04 08:17] – admin | docu:csheet:sysadm:disks:grow_partition [2021/05/05 07:12] (current) – admin | ||
|---|---|---|---|
| Line 26: | Line 26: | ||
| growpart /dev/vda 1 | growpart /dev/vda 1 | ||
| - | # need reboot | + | # it MIGHT need reboot, but maybe not |
| shutdown -r now | shutdown -r now | ||
| - | # resize2fs on the root ext4 partition, and done! | + | # if you HAVE AN LVM ext4 you must |
| + | pvs # PFree must show new space | ||
| + | pvresize /dev/vda1 | ||
| + | vgs # same as pvs | ||
| + | lvs # you must see new available space here too | ||
| + | lvextend -l +100%FREE / | ||
| + | |||
| + | # resize2fs on the partition | ||
| resize2fs /dev/vda1 | resize2fs /dev/vda1 | ||
| </ | </ | ||