Root Partition Full

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Root Partition Full

Post 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;
Charles Masteller
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

Post by slansing »

Haha it has, it's been mid 70's all week! Perfect for us Minnesnowtan's. What is the output of:

Code: Select all

df -h
The safest way to clear up some space is to remove archived logs from:

Code: Select all

/var/log/
You can remove anything you don't think you will be needing, such as old messages logs, or Apache logs in:

Code: Select all

/var/log/httpd
Simply invoke the remove command like so:

Code: Select all

rm -f messages-20140608
They should have a date stamp after them like the example above.

You can also remove archived nagios logs from:

Code: Select all

/usr/local/nagios/var/archives
Though you may want to keep them around for historical reasons.
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Root Partition Full

Post 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.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Root Partition Full

Post 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.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Root Partition Full

Post by tmcdonald »

Former Nagios employee
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Root Partition Full

Post 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?
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Root Partition Full

Post 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.
Former Nagios employee
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Root Partition Full

Post 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!
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.
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Root Partition Full

Post by toleolu »

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
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Root Partition Full

Post by toleolu »

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
Locked