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?
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:
GPT:
Note, that you are dealing with boot partition, so you are not able to umount it when server is up and running.
cheers,
DamianS