This message was deleted.
# vsphere
a
This message was deleted.
h
Could you explain a little on this script? Where are the partition numbers your using coming from? with the lsblk output below would my partnum be 3? sdb 8:16 0 117.2G 0 disk ├─sdb1 8:17 0 1M 0 part ├─sdb2 8:18 0 2G 0 part /boot └─sdb3 8:19 0 115.2G 0 part └─ubuntu--vg-ubuntu--lv 253:0 0 19G 0 lvm /var/lib/kubelet/pods/14c0faa9-1ce0-4647-b0ab-6bdaf2b2d466/volume-subpaths/awx-settings/init-database/2 /
b
yes, 3 looks correct, and is the default for ubuntu. sdb is your drive, sdb1 is a 1meg partition, sdb2 is 2g for the /boot volume, and sdb3 is 115.3g for the lvm filesystem that eventually has / on it
you can run each command by had if you want to see it's output on your system
h
I will do that now. Thanks for the help.
b
np, like I said, not sure if thats the official way to do it but it's been working for us
it basically gets the current size for the current size for the partition number, finds the max size for the drive, then resizes the partition to the max size. then resizes the physical volume in lvm, then extends the filesystem to fill the new physical volume