Page 1 of 3
Root Partition Full
Posted: Thu Jul 03, 2014 12:38 pm
by toleolu
Hey Nagios Team, has it stopped snowing there yet???
I'm getting critical alerts that the root partition on our Nagios XI server is full, not being real strong with Linux, I was hoping you might be able to give me some help on how to free up some space on that partition. Probably explains why config changes take so long to update.
Mahalo;
Re: Root Partition Full
Posted: Thu Jul 03, 2014 12:46 pm
by slansing
Haha it has, it's been mid 70's all week! Perfect for us Minnesnowtan's. What is the output of:
The safest way to clear up some space is to remove archived logs from:
You can remove anything you don't think you will be needing, such as old messages logs, or Apache logs in:
Simply invoke the remove command like so:
They should have a date stamp after them like the example above.
You can also remove archived nagios logs from:
Though you may want to keep them around for historical reasons.
Re: Root Partition Full
Posted: Thu Jul 03, 2014 1:18 pm
by toleolu
Mid 70's!!! We start putting on the thermal grass skirts here when it gets that cold around here.
Code: Select all
/dev/mapper/VolGroup-lc_root size is 7.5G used is 6.7G
tmpfs is 498 M with 0 used
/dev/sda1 485M used 50M
That's the result of df -h
Ran it after restarting the server.
Re: Root Partition Full
Posted: Thu Jul 03, 2014 1:51 pm
by toleolu
Looks like we're still sitting at the original 10G of disk space from the original VM install. I'll double that see what it does.
Re: Root Partition Full
Posted: Thu Jul 03, 2014 1:52 pm
by tmcdonald
Re: Root Partition Full
Posted: Mon Jul 07, 2014 12:57 pm
by toleolu
OK, we expanded the available disk space on the VM to 40 G, I looked at the attached pdf on how to use that unallocated space, and I have no clue what it's talking about. Like I said, not a Linux guy.
In the instructions, it says it first deletes the partition then expands it. Probably a dumb question, but if I delete the partition, don't I lose everything on that partition?
Re: Root Partition Full
Posted: Mon Jul 07, 2014 1:08 pm
by tmcdonald
There's a reason the documentation says we "delete" it (note the quotes) because there is a difference between delete and erase. We are basically just removing the partition information but the data remains, then we create new partition information that increases the size. If you follow the documentation as it is written you will be fine.
As for what to do with that extra space, that is up to you. Logs and backups will take some of that up, but the main issue here was the alerts for low free space.
Re: Root Partition Full
Posted: Mon Jul 07, 2014 1:10 pm
by sreinhardt
You would think so! Actually removing the partition and resizing is just fine since the files are still there, and so are the indexes. Once the drive is resized, the indexes should fall at the same offsets and be picked right back up, then the resize will finalize all the filesystem level changes. Of course please backup prior to do this!
Re: Root Partition Full
Posted: Mon Jul 07, 2014 1:11 pm
by toleolu
Thanks, installing GNOME right now, see if that gets me where I need to be. Just not a CLI kind of guy.
Re: Root Partition Full
Posted: Mon Jul 07, 2014 1:16 pm
by toleolu
Well that didn't work, install crapped out because not enough disk space. This bites it.