Page 2 of 3
Re: Root Partition Full
Posted: Mon Jul 07, 2014 1:17 pm
by tmcdonald
toleolu wrote:Thanks, installing GNOME right now, see if that gets me where I need to be. Just not a CLI kind of guy.
Ohhh... Yea. Desktops can sometimes cause issues with XI. We really do try to keep people on a clean, minimal install of CantOS/Redhat. You'll have to edit text files anyway, so a GUI just makes it easier to open the file in the first place. Then when you consider all the commands you absolutely do have to run in a command line, I have never seen any benefit in having a GUI on a Nagios system.
Just be careful with what you install. And be sure to mention in future posts that you have a GUI installed now.
Re: Root Partition Full
Posted: Mon Jul 07, 2014 1:24 pm
by toleolu
using the commands in the pdf I got an error at the end. See the attached jpg, I don't know how to copy and paste text from the console window.
Is this gonna crash if I reboot?
Re: Root Partition Full
Posted: Mon Jul 07, 2014 1:38 pm
by toleolu
Well, it came back up.
The command pvresize seems to have worked, but lvresize failed saying "Volume group "VolGroup00" not found.
Re: Root Partition Full
Posted: Mon Jul 07, 2014 2:19 pm
by belvdr
For the CLI-impaired, I'd recommend grabbing a GParted LiveCD and booting from that. That will get you what you want (a GUI) and save you tons of disk on your Nagios server.
http://gparted.org/livecd.php
Re: Root Partition Full
Posted: Mon Jul 07, 2014 3:52 pm
by toleolu
Thanks, tried that, and even though it looks like it took, when I reboot and do df -h nothing has changed.
Not sure what's up with that, GParted says it completed successfully, so I'm kinda stumped.
(Shocker, right!!!)
Re: Root Partition Full
Posted: Mon Jul 07, 2014 5:03 pm
by lmiltchev
Well that didn't work, install crapped out because not enough disk space. This bites it.
Can you elaborate on that? Did you run out of disk space again? What is the output of the following command?
How much room did you make? You can delete many log files in the "/var/log/" directory and sub-directories. You can also delete files that you don't need in the "/tmp/", old backups in "/store/backups/nagiosxi/", etc.
The "Nagios XI – Resizing the VM Disk Size" document has been proven to work. Let us know if you get stuck on any of the steps, described in the document.
Re: Root Partition Full
Posted: Mon Jul 07, 2014 6:26 pm
by belvdr
toleolu wrote:Thanks, tried that, and even though it looks like it took, when I reboot and do df -h nothing has changed.
Not sure what's up with that, GParted says it completed successfully, so I'm kinda stumped.
(Shocker, right!!!)
It seems like you got the partition resized. Post the output of the command:
Re: Root Partition Full
Posted: Mon Jul 07, 2014 6:48 pm
by toleolu
Output from mount is:
/dev/mapper/VolGroup-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
Re: Root Partition Full
Posted: Mon Jul 07, 2014 6:55 pm
by toleolu
At least now I know why lvresize came back with VolGroup 00 not found. Guess it should be VolGroup-lv_root.
I'm wondering if this is what's causing the problem with GParted, since I started running those commands but never finished since I stopped when I got the error.
Re: Root Partition Full
Posted: Tue Jul 08, 2014 4:15 am
by WillemDH
I recently installed a test Nagios XI system and also saw that the logical volumes had different names than my production system. In the newer Nagios Xi VM images, lv_root and lv_swap is used. It should be added in documentation to avoid problems for people using the newer version.