This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
docu:csheet:sysadm:disks:grow_partition [2020/06/04 08:17] admin |
docu:csheet:sysadm:disks:grow_partition [2021/05/05 07:11] 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 | ||
+ | pvresize /dev/vda1 | ||
+ | vgs | ||
+ | lvs # you must see new available space here | ||
+ | lvextend -l +100%FREE / | ||
+ | |||
+ | # resize2fs on the partition | ||
resize2fs /dev/vda1 | resize2fs /dev/vda1 | ||
</ | </ |