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
Root Disk Increase!!!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Root Disk Increase!!!
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
https://assets.nagios.com/downloads/nag ... M-Disk.pdf
Re: Root Disk Increase!!!
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
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!!!
[root@nagiosxi ~]# pvresize /dev/sda5
Failed to find physical volume "/dev/sda5".
0 physical volume(s) resized / 0 physical volume(s) not resized
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!!!
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?
Did you try the "Automated With Script" method from the document above?