Root Disk Increase!!!

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

Root Disk Increase!!!

Post by ponnpr7 »

Hi,

Could give me some direction how to go about root partition increase and still growing I'm taking a step ahead to extend the root filesystem.

Please advice.
Linux nagiosxi.ntvs.vzwnet.com 2.6.32-696.20.1.el6.x86_64 #1 SMP Fri Jan 26 17:51:45 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
CentOS release 6.9 (Final)

Available Updates
Your Nagios XI installation is up to date.
Latest Available Version: 5.4.13
Installed Version: 5.4.13
Last Update Check: 2018-04-05 13:49:02
Last Updated: 2018-04-06 10:30:59


[root@nagiosxi /]# df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
37G 29G 6.4G 82% /
tmpfs 4.2G 0 4.2G 0% /dev/shm
/dev/sda1 477M 137M 315M 31% /boot
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Root Disk Increase!!!

Post by scottwilkerson »

Here is a doc we have about resizing the disk on one of our VM's
https://assets.nagios.com/downloads/nag ... M-Disk.pdf
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

Re: Root Disk Increase!!!

Post by ponnpr7 »

I have this root filesystem getting full, do I need to do any kind of permission change to the file system once I do the disk resize
df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
37G 34G 1.3G 97% /
tmpfs 4.2G 0 4.2G 0% /dev/shm
/dev/sda1 477M 137M 315M 31% /boot
[root@nagiosxi scripts]# fdisk -l

Disk /dev/sda: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0001c6ca

Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 5221 41424658+ 8e Linux LVM
/dev/sda3 5222 26108 167774827+ 8e Linux LVM

Disk /dev/mapper/VolGroup-lv_root: 40.3 GB, 40303067136 bytes
255 heads, 63 sectors/track, 4899 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/VolGroup-lv_swap: 2113 MB, 2113929216 bytes
255 heads, 63 sectors/track, 257 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Thanks,
Ravi
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Root Disk Increase!!!

Post by scottwilkerson »

Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ponnpr7
Posts: 90
Joined: Fri Jul 28, 2017 3:55 pm

Re: Root Disk Increase!!!

Post by ponnpr7 »

[root@nagiosxi ~]# pvresize /dev/sda5
Failed to find physical volume "/dev/sda5".
0 physical volume(s) resized / 0 physical volume(s) not resized
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Root Disk Increase!!!

Post by scottwilkerson »

Based on the info above, why are you doing something to /dev/sda5 ?

Did you try the "Automated With Script" method from the document above?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked