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
LVM
-
Fred Kroeger
- Posts: 588
- Joined: Wed Oct 19, 2011 11:36 pm
- Location: Perth, Western Australia
- Contact:
Re: LVM
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.Any ideas on how I can do this ?
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.
Code: Select all
resize2fs -p /dev/sda1 50GAfter the root partition has been resized appropriately, let me know and we'll get your new partition added and mounted. Thanks!
-
Fred Kroeger
- Posts: 588
- Joined: Wed Oct 19, 2011 11:36 pm
- Location: Perth, Western Australia
- Contact:
Re: LVM
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
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
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.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.
Jesse
-
Fred Kroeger
- Posts: 588
- Joined: Wed Oct 19, 2011 11:36 pm
- Location: Perth, Western Australia
- Contact:
Re: LVM
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
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