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
已提問 3 年前檢視次數 201 次
2 個答案
0
MJ102
已回答 3 年前
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
已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南