Disk Full, Resizing VM results in server not booting

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
sawdusty
Posts: 23
Joined: Thu Sep 14, 2023 8:14 am

Disk Full, Resizing VM results in server not booting

Post 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.
DoubleDoubleA
Posts: 286
Joined: Thu Feb 09, 2017 5:07 pm

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

Post 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
sawdusty
Posts: 23
Joined: Thu Sep 14, 2023 8:14 am

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

Post 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.
User avatar
jmichaelson
Posts: 383
Joined: Wed Aug 23, 2023 1:02 pm

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

Post 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.
Please let us know if you have any other questions or concerns.

-Jason
sawdusty
Posts: 23
Joined: Thu Sep 14, 2023 8:14 am

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

Post 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
Post Reply