Page 2 of 3
Re: Can't log into the webpage
Posted: Thu Jan 30, 2014 1:29 pm
by BanditBBS
ancovington wrote:That can't be true. I partitioned the drive to have a 40G hard drive.
Yes, but if you used the image supplied by Nagios, then that is the default space, you actually have to expand the / partition. There is a document somewhere on how to do that. I'll try and find it.
Not sure this is still good, can someone from Nagios confirm -
http://assets.nagios.com/downloads/nagi ... M_Disk.pdf
Re: Can't log into the webpage
Posted: Thu Jan 30, 2014 1:32 pm
by ancovington
Ok, thank you. Is that document on their site?
Re: Can't log into the webpage
Posted: Thu Jan 30, 2014 1:43 pm
by tmcdonald
Since you have a LVM in place you will probably need to resize the volume.
http://www.ibm.com/developerworks/linux ... index.html
It's pretty painless, just make sure you do backups first. A VM snapshot should do it.
Re: Can't log into the webpage
Posted: Thu Jan 30, 2014 2:37 pm
by ancovington
Thank you for your help. I am able to log in now. I followed the directions to increase the LVM, but it is still showing the following:
[root@nagios ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
7.5G 7.1G 12M 100% /
tmpfs 7.8G 0 7.8G 0% /dev/shm
/dev/sda1 485M 50M 410M 11% /boot
[root@nagios ~]# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/VolGroup-lv_root
494832 95274 399558 20% /
tmpfs 2041672 1 2041671 1% /dev/shm
/dev/sda1 128016 44 127972 1% /boot
[root@nagios ~]#
Re: Can't log into the webpage
Posted: Thu Jan 30, 2014 2:41 pm
by tmcdonald
Did you run the resizefs as well? You might have expanded the LVM itself but not the filesystem. Though I would expect that if you did this you would still be unable to log in.
Re: Can't log into the webpage
Posted: Thu Jan 30, 2014 2:46 pm
by BanditBBS
Looks like to me it hasn't been resized. Looks like somehow 12 MEG became available which is just enough for things to seem to work.
Re: Can't log into the webpage
Posted: Thu Jan 30, 2014 3:26 pm
by ancovington
Yes I have run resize2fs command, but reiserfs or the rest of the steps because it wouldn't let me.
Re: Can't log into the webpage
Posted: Thu Jan 30, 2014 3:32 pm
by lmiltchev
I've seen users copying/pasting the commands from the document:
Code: Select all
lvresize /dev/mapper/VolGroup00-LogVol00 /dev/sda2
and
Code: Select all
resize2fs /dev/mapper/VolGroup00-LogVol00
This is just an example. You should probably substitute the "VolGroup00-LogVol00" with "VolGroup-lv_root" in your commands, since you have:
Please, backup before you do anything!
Re: Can't log into the webpage
Posted: Thu Jan 30, 2014 3:44 pm
by ancovington
Yes, I have been substituting with the correctly. Is this the output it should have:
[root@nagios ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
37G 7.1G 29G 21% /
tmpfs 7.8G 0 7.8G 0% /dev/shm
/dev/sda1 485M 50M 410M 11% /boot
/dev/mapper/VolGroup-lv_root
37G 7.1G 29G 21% /home
[root@nagios ~]# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/VolGroup-lv_root
2441712 95927 2345785 4% /
tmpfs 2041672 1 2041671 1% /dev/shm
/dev/sda1 128016 44 127972 1% /boot
/dev/mapper/VolGroup-lv_root
2441712 95927 2345785 4% /home
Re: Can't log into the webpage
Posted: Thu Jan 30, 2014 3:47 pm
by lmiltchev
It looks much better now.

Let me know if you want me to keep this topic still open for a while, or I can lock it as "resolved". Thanks!