Need Larger HD, made snapshot, redeployed to new instance Size Drive Size!

0

Hi:

We went from 40gb to 60gb drive size, I made a snapshot and upgraded with a new larger instance with 60gb hard drive but when I log in it seems the new instance just imaged an exact 40gb copy from the snapshot and did not leave 20gb available.

The new specs for the instance are all correct except HD size so can anyone help me out with this issue?

thanks in advance,

MJ

  • I have the same problem on Linux.

    For anyone else who stumbles across this post ..

    Case:

    • You have upgraded you instance in lightsail by using a snapshot of a smaller plan into a larger plan
    • You are on a linux based system

    Solution

    1. log into your instance with SSH, or terminal from dashboard
    2. install the required tools (make sure you haven't reached your HDD capacity or else these tools can't be install.. you'll have to delete something else first)

    sudo apt-get install -y cloud-utils fdisk

    1. get the name of your main partition

    df -h

    1. the partition name concatenates the partition number after the name, starting with 'p', eg. /dev/acoden1p1. In this case, the partition name is /dev/acoden1, and it is partition 1.
    2. resize the drive

    sudo resize2fs /dev/acoden1p1

    1. expand the partition (name, space, partition number)

    sudo growpart /dev/acoden1 1

    1. reboot the drive

    reboot

    Then after reboot, check the partition values

    df -h

    Your partition should now hopefully be the correct value

MJ102
asked 3 years ago186 views
2 Answers
0
MJ102
answered 3 years ago
0

FWIW: You should always indicate what OS you are using ... the instructions to expand a windows volume are radically different than linux.

profile picture
David G
answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions