Error when resizing VM Partition

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lccouncil
Posts: 25
Joined: Mon Jun 14, 2010 6:05 pm

Error when resizing VM Partition

Post 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?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Error when resizing VM Partition

Post by sreinhardt »

Is this install from our provided CentOS VM or your own install? We can start with:

Code: Select all

ls -lv /dev/mapper/
df -h
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
lccouncil
Posts: 25
Joined: Mon Jun 14, 2010 6:05 pm

Re: Error when resizing VM Partition

Post 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 ~]#
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Error when resizing VM Partition

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
lccouncil
Posts: 25
Joined: Mon Jun 14, 2010 6:05 pm

Re: Error when resizing VM Partition

Post by lccouncil »

Success! Thanks for your assistance.
Locked