Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

resize rockly linux boot partition

I am trying to resize boot partition on rockly linux vm. I resize it in gcp console. then logged into vm via ssh but lvs, pvs, vgs are all showing blank. any idea how to extend it?

1 3 693
3 REPLIES 3

any idea?

Hello,

Any outputs from commands pasted above ? Let me guess, you've installed LVM2 , after server creation, right ? What is showing after execute command "fdisk -l" ? 

cheers,
DamianS

Most probably you have boot partition created at a raw disk. This is not as much elastic as LVM let say. It means, that you cannot ( without risk of data corruption ) to extend or shrink disk live. The fastest way to do it is reboot machine, after disk extension via GCP UI. If you can't reboot machine, follow either  this https://www.alibabacloud.com/help/en/ecs/use-cases/offline-extend-partitions-and-file-systems-on-a-d... or this https://www.alibabacloud.com/help/en/ecs/use-cases/offline-extend-partitions-and-file-systems-on-a-d... guide. Screenshots are providing information how MBR and GPT outputs looks:

MBR: 

DamianS_0-1702882053053.png

GPT:

DamianS_1-1702882082184.png

 


Note, that you are dealing with boot partition, so you are not able to umount it when server is up and running.

cheers,
DamianS