Can't resize Linux volume

0

Hi there

I have an EC2 instance that uses xen that has run out of disc space. I successfully resized the storage volume, but I'm stuck trying to increase the partition size. The command sudo growpart /dev/xvda1 1 returns FAILED: unable to determine partition type

Any ideas?

Kieran
已提問 9 個月前檢視次數 400 次
2 個答案
0
已接受的答案

I see your issue.. You are using the partition in the grow command instead of the disk..

Try this

sudo growpart /dev/xvda 1

profile picture
專家
已回答 9 個月前
profile picture
專家
已審閱 1 個月前
  • Of course! Thanks so much

  • Happy to be of assistance

0

Follow these instructions. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html

It looks like you are trying to resize the AWS disk device than what the Linux OS sees it as..

sudo lsblk

Will display the volumes from Linux point of view

profile picture
專家
已回答 9 個月前
profile picture
專家
已審閱 1 個月前
  • Thanks - but I thought I had already done that. The output from the lsblk command is NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT xvda 202:0 0 50G 0 disk └─xvda1 202:1 0 30G 0 part /

    So my understanding is that the partition is xvda1...

  • I see your issue.. You are using the partition in the grow command instead of the disk.. Try this sudo growpart /dev/xvda 1

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

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

回答問題指南