Page 3 of 3
Re: Root Partition Full
Posted: Tue Jul 08, 2014 9:19 am
by lmiltchev
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.
Right, I've seen this issue a number of times. The examples in our documentation are just examples though. Users need to adjust the commands, according to the actual LVM name they are using. I guess it is somewhat confusing for people not familiar with Linux.
Re: Root Partition Full
Posted: Tue Jul 08, 2014 12:58 pm
by toleolu
Thanks to everyone, so to make sure that I'm thinking outside the Windows box

where the documentation states:
# lvresize /dev/mapper/VolGroup00-LogVol00 /dev/sda2
I should enter:
# lvresize /dev/mapper/VolGrouplv_root-VolGrouplv_swap /dev/sda2
And then use the same for resize2fs?
Mahalo
Re: Root Partition Full
Posted: Tue Jul 08, 2014 2:08 pm
by lmiltchev
You need to run:
Code: Select all
lvresize /dev/mapper/VolGroup-lv_root /dev/sda2
resize2fs /dev/mapper/VolGroup-lv_root
Re: Root Partition Full
Posted: Tue Jul 08, 2014 2:22 pm
by toleolu
Well blow my dress up, it worked. Thanks.
Now I guess I'll install the new update. Are you guys working late tonight??

Re: Root Partition Full
Posted: Tue Jul 08, 2014 4:32 pm
by abrist
I suspect we may wish to leave this thread open until you report back the "all clear" . . .
Best 'o' Luck!
Re: Root Partition Full
Posted: Tue Jul 08, 2014 6:20 pm
by toleolu
Thanks Andy, you can close this. As we say on the islands "Got choke disk space now brah!!!"
Mahalo