Page 1 of 1
LVM
Posted: Wed Nov 25, 2015 2:18 am
by Fred Kroeger
Is there a reason why the NLS VM isn't built with LVM disks ?
I wanted to reduce the root disk down from the default 100Gb to 50GB and mount /usr/local/logserver on a separate disk.
I've been bitten too many times where the apps have filled the root disk.
But not having LVM makes it *really* hard.
Any ideas on how I can do this ?
Regards... Fred
Re: LVM
Posted: Wed Nov 25, 2015 11:17 am
by jolson
Any ideas on how I can do this ?
The first step is decreasing the size of your physical true root partition. After we have this part handled, adding another disk should be trivial.
Steps shrink your root partition.
0. Backup any data you'd like to save.
1. Boot into a live CD environment. I recommend using a CentOS 6 CD and choosing the 'rescue a system' option.
2. Be sure to use the 'skip' option so that the root filesystem isn't mounted.
3. Resize the root filesystem.
Gparted could also be used as the live boot medium:
http://gparted.org/
After the root partition has been resized appropriately, let me know and we'll get your new partition added and mounted. Thanks!
Re: LVM
Posted: Wed Nov 25, 2015 7:03 pm
by Fred Kroeger
Thanks for that. What I really wanted to know was if there is a reason why LVM isn't used for the default NLS VM. It is used for the NagiosXI VM.
BTW - I successfully reduced the root disk to 50GB used gparted and moved /usr/local/nagios/logserver to a LVM partition I created on the second half of the disk.
Now , if I ever (or when) need to grow the logserver filesystem I can easily add another disk to the VG.
regards
Fred
Re: LVM
Posted: Mon Nov 30, 2015 10:50 am
by jolson
Thanks for that. What I really wanted to know was if there is a reason why LVM isn't used for the default NLS VM. It is used for the NagiosXI VM.
Ultimately the build processes are different internally - XI is the only product of ours that ships with LVM support out of the gate. Of course if you stand up a server manually and run our 'fullinstall' script (from any of our products) you'll have LVM support with little hassle - as for our disk images, getting them all on LVM is something that is being worked toward - but it's going to take some time on our end.
Jesse
Re: LVM
Posted: Sun Dec 06, 2015 9:45 pm
by Fred Kroeger
Thanks for the update Jesse.
I can only encourage Nagios to build all their VMs in a standard & consistent manner, so no matter which Nagios product I use, they all look the same underneath.
regards... Fred
Re: LVM
Posted: Mon Dec 07, 2015 10:11 am
by hsmith
I agree completely. It's been brought up to the developers, and I hope it gets done sooner than later, but right now bugfixes and feature requests take up a lot of the development time. LVM is pretty important, so you have a completely valid suggestion.