Expanding an xen instance partition fails due to missing "growpart"?!

0

Hello, I would like to expand a partitation on an instance, but for some reason the command growpart does not exist on this instance? I am proceeding as usual according to https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html, and this has also worked for the other instances in the past, only with the current one I fail at point 2c, as the command "growpart" obviously does not exist on my instance?!?

This is the current situation at this instance:

sudo lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT xvda 202:0 0 8G 0 disk -xvda1 202:1 0 5G 0 part / xvdb 202:16 0 15G 0 disk -xvdb1 202:17 0 15G 0 part /IOL

So the xvda drive has already been increased from 5 to 8 GB.

But when I try to enlarge it using growpart, the result looks like this:

sudo growpart /dev/xvda 1 sudo: growpart: command not found

And indeed, there is obviously none:

which growpart /usr/bin/which: no growpart in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/ec2-user/bin)

Maybe you can imagine the look on my face when I saw this message? 8:o Where did that go?! Are there alternative ways to increase the partitation to the full drive size without growpart?

gefragt vor einem Jahr627 Aufrufe
1 Antwort
1

Hello growpart command come with package cloud-utils-growpart . Ensure you have package installed on installed.

$sudo yum list cloud-utils-growpart

===> If missing rpm

$ sudo yum install cloud-utils-growpart

==> if installed, just reinstall will help to reinstate file /usr/bin/growpart

$sudo yum reinstall cloud-utils-growpart

Hitesh
beantwortet vor einem Jahr
  • Thanks for naming the appropriate installation package, that was a very helpful hint.

    Filesystem Type Size Used Avail Use% Mounted on /dev/xvda1 ext4 8.9G 3.0G 5.5G 36% / (yes, 9 GB, added another GB since my initial post) tmpfs tmpfs 1.8G 0 1.8G 0% /dev/shm /dev/xvdb1 ext4 15G 5.5G 9.3G 38% /IOL

    :-)

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen