Page 1 of 1

Disk Full, Resizing VM results in server not booting

Posted: Mon Aug 19, 2024 10:16 am
by sawdusty
My disk was nearly full. I increased my vm storage in VMWare from 40G to 80G and then followed this document (https://support.nagios.com/kb/article.php?id=814) to resize the disk. I completed all the steps via fdisk, I noticed no errors and rebooted per directions and now my machine doesn't see '/dev/mapper/cs-root' and fails to boot up. After failing boot up the server enters emergency mode. From there I'm at a loss. I'm running CentOS9. My knowledge of linux cli is pretty limited.

Re: Disk Full, Resizing VM results in server not booting

Posted: Mon Aug 19, 2024 12:06 pm
by DoubleDoubleA
Hi @sawdusty,

Sorry to hear you are having that trouble.

There are a couple of very important notes included in the link you shared.

First:
These examples are provided for demonstration and edification purposes, and we do not provide support outside of these instructions for current, future, or different Linux distributions. Maintenance and support of underlying operating system or virtual machine architecture is the responsibility of the customer.

Second:
We strongly recommend backing up your system.

Did you snapshot or otherwise backup your system prior to attempting to resize the disk?

Aaron

Re: Disk Full, Resizing VM results in server not booting

Posted: Mon Aug 19, 2024 1:25 pm
by sawdusty
Unfortunately I don't have a snapshot. I thought I had a snapshot of the VM, turns out it was a different VM. Hindsight I should have just deleted log files to regain some space.

Re: Disk Full, Resizing VM results in server not booting

Posted: Mon Aug 19, 2024 2:51 pm
by jmichaelson
Can you provide the output of fdisk's p command? We can start by having a look at your file system information. You should be able to get to it from emergency mode. If not you may have to use a live system from a USB stick.

Re: Disk Full, Resizing VM results in server not booting

Posted: Wed Aug 21, 2024 8:47 am
by sawdusty
jmichaelson wrote: Mon Aug 19, 2024 2:51 pm Can you provide the output of fdisk's p command?
Here is the "p" output of fdisk /dev/sda2

DIsk /dev/sda2: 79GiB, 84824555520 bytes, 165672960 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector Size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x5c151775