Windows
- Connect to your server via RDP
- Open the Server Manager and select Tools then Computer Management
- From Storage in the left pane, select Disk Management. In the left pane of Disk Management you will see the current formatted hard drive for your server
- Select the C: drive and right-click on it. Choose Extend Volume from the drop down menu.
- This will open the Extend Volume Wizard. Click Next to begin
- To add all available space to your C: drive, keep the default selections and press Next
- You will now see the C: drive expand to the maximum available space. To finalize the modifications click Finish.
Ubuntu
** Instructions are for LVM on CeraNet Cloud Servers which is the default configuration **
Basic Ubuntu Instructions
- Connect to your server via SSH
- # sudo growpart /dev/sda 3
- # sudo pvresize /dev/sda3
- # sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
- # sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
Extended Ubuntu Instructions
- Connect to your server via SSH
- Locate partition where LVM is located (ie dev/sda3) using lsblk
- Execute sudo growpart /dev/sda 3 replacing the partition with the LVM partition location found in previous step, including space
- Execute sudo pvresize /dev/sda3 replacing the partition with the LVM partition location found in first step, no space
- Locate the name of the LV (ie /dev/ubuntu-vg/ubuntu-lv) using lvdisplay
- Execute sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv to extend the LV replacing the LV name with the name found in the previous step
- Locate the LV filesystem name (ie /dev/mapper/ubuntu--vg-ubuntu--lv) using df -h
- Execute sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv to resize the LV replacing the LV filesystem name with the name found in the previous step
- Verify the changes with lblk and df -h
