Skip to content

Instantly share code, notes, and snippets.

@zenxedo
Last active October 5, 2023 01:54
Show Gist options
  • Save zenxedo/1988227c41bd5136fba7b5d0acc78060 to your computer and use it in GitHub Desktop.
Save zenxedo/1988227c41bd5136fba7b5d0acc78060 to your computer and use it in GitHub Desktop.
Peroxmox Notes

Increase size of PBS Datastore Directory, after increasing size of Disk

sgdisk -e /dev/sdb

sgdisk -d 1 /dev/sdb
sgdisk -N 1 /dev/sdb

partprobe /dev/sdb

resize2fs /dev/sdb1

ubuntu machine

1st step: increase/resize disque from GUI console 2nd step : Extend physical drive partition check free space : $sudo fdisk -l $growpart /dev/sda 3 (Extend physical drive partition ) $pvdisplay ( See phisical drive ) $sudo pvresize /dev/sda3 (Instruct LVM that disk size has changed) $ pvdisplay ( check physical drive if has changed )

[U]3rd step: Extend Logical volume [/U] $ lvdisplay (# View starting LV) $ sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv ( # Resize LV) $ lvdisplay (# View changed LV)

4th step : Resize Filesystem $ resize2fs /dev/ubuntu-vg/ubuntu-lv $ fdisk -l (# Confirm results)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment