Root Partition Full
Root Partition Full
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;
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;
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Root Partition Full
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.
Code: Select all
df -h
Code: Select all
/var/log/Code: Select all
/var/log/httpdCode: Select all
rm -f messages-20140608
You can also remove archived nagios logs from:
Code: Select all
/usr/local/nagios/var/archivesRe: Root Partition Full
Mid 70's!!! We start putting on the thermal grass skirts here when it gets that cold around here.
That's the result of df -h
Ran it after restarting the server.
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 50MRan it after restarting the server.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Re: Root Partition Full
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.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Re: Root Partition Full
That's a 10G disk? Bump that up to 40, minimum:
http://assets.nagios.com/downloads/nagi ... ements.pdf
http://assets.nagios.com/downloads/nagi ... M_Disk.pdf
http://assets.nagios.com/downloads/nagi ... ements.pdf
http://assets.nagios.com/downloads/nagi ... M_Disk.pdf
Former Nagios employee
Re: Root Partition Full
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?
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?
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Re: Root Partition Full
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.
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.
Former Nagios employee
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Root Partition Full
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!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Root Partition Full
Thanks, installing GNOME right now, see if that gets me where I need to be. Just not a CLI kind of guy.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Re: Root Partition Full
Well that didn't work, install crapped out because not enough disk space. This bites it.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates