Page 1 of 1
Error when resizing VM Partition
Posted: Thu Nov 28, 2013 10:23 pm
by lccouncil
After following the Nagios XI - Resizing the VM Disk Size documentation step by step, we have come to a halt at resizing the logical volume (LV).
With the following command:
Code: Select all
# lvresize /dev/mapper/VolGroup00-LogVol00 /dev/sda2
The following error appears and the partition has not been resized.
Volume group "VolGroup00" not found
We are unable to the continuing steps to complete resize after this. Can you please assist?
Re: Error when resizing VM Partition
Posted: Sat Nov 30, 2013 10:54 am
by sreinhardt
Is this install from our provided CentOS VM or your own install? We can start with:
Re: Error when resizing VM Partition
Posted: Sun Dec 01, 2013 5:43 pm
by lccouncil
Yes this is from your provided CentOS VM. I want to resize to the partition to 25GB
I have the following after starting the instructions again:
Code: Select all
[root@issmonitor ~]# lvresize /dev/mapper/volgroup00-logvol00 /dev/sda2
Volume group "volgroup00" not found
[root@issmonitor ~]# ls -lv /dev/mapper/
total 0
lrwxrwxrwx 1 root root 7 Dec 1 17:33 VolGroup-lv_root -> ../dm-0
lrwxrwxrwx 1 root root 7 Dec 1 17:33 VolGroup-lv_swap -> ../dm-1
crw-rw---- 1 root root 10, 58 Dec 1 17:33 control
[root@issmonitor ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
7.5G 2.3G 4.9G 32% /
tmpfs 498M 0 498M 0% /dev/shm
/dev/sda1 485M 50M 410M 11% /boot
[root@issmonitor ~]#
Re: Error when resizing VM Partition
Posted: Mon Dec 02, 2013 11:38 am
by lmiltchev
Replace all instances of "/dev/mapper/VolGroup00-LogVol00" with "/dev/mapper/VolGroup-lv_root" in the document's commands.
Code: Select all
lvresize /dev/mapper/VolGroup-lv_root /dev/sda2
resize2fs /dev/mapper/VolGroup-lv_root
Re: Error when resizing VM Partition
Posted: Mon Dec 02, 2013 9:37 pm
by lccouncil
Success! Thanks for your assistance.