Step 3: How to Expand a Hard Drive Partition on your Cloud Server

Windows

  1. Connect to your server via RDP
  2. Open the Server Manager and select Tools then Computer Management
  3. 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
  4. Select the C: drive and right-click on it. Choose Extend Volume from the drop down menu.
  5. This will open the Extend Volume Wizard. Click Next to begin
  6. To add all available space to your C: drive, keep the default selections and press Next
  7. 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

  1. Connect to your server via SSH
  2. # sudo growpart /dev/sda 3
  3. # sudo pvresize /dev/sda3 
  4. # sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
  5. # sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv 

Extended Ubuntu Instructions

  1. Connect to your server via SSH
  2. Locate partition where LVM is located (ie dev/sda3) using lsblk
  3. Execute sudo growpart /dev/sda 3 replacing the partition with the LVM partition location found in previous step, including space
  4. Execute sudo pvresize /dev/sda3 replacing the partition with the LVM partition location found in first step, no space
  5. Locate the name of the LV (ie /dev/ubuntu-vg/ubuntu-lv) using lvdisplay
  6. 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
  7. Locate the LV filesystem name (ie /dev/mapper/ubuntu--vg-ubuntu--lv) using df -h
  8. 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
  9. Verify the changes with lblk and df -h

 

 

  • 10 Users Found This Useful
Was this answer helpful?

Related Articles

Purchasing and Allocating Server Resources

Detailed steps for purchasing and allocating resources for Cloud Servers. 1) Purchase Resources...

Step 2: How to Allocate Resources to your Cloud Server

Sign In to our website and complete the following steps:1. Click on Cloud at the top of the...

Deploying New Cloud Servers

1) Sign in at https://www.cera.net 2) Click on Cloud from the main navigation and select the...

Initial Server Configuration

You may use CeraNet Network security or your own firewall solution if you are a collocation...

Reallocating Server Resources

Moving IPs between Servers: Sign in at www.cera.net On the top toolbar, click on the "Cloud"...