Operating System - HP-UX
1831928 Members
3617 Online
110031 Solutions
New Discussion

Removing logical or Volume group

 
Gurusuma
New Member

Removing logical or Volume group

Dear Forum friends,

I have a HPUX server with vg00,01 and 02 created.

Now I dont require vg02 and hence to free up the space I removed all the logical volme groups associated with this VG vg02 and removed vg02.

Now if I issue the command vgdisplay or lvdisplay it is displaying the error that "could find the id xxx ..yy..etc ..system is now up and working but I am not sure If I reboot system will comeup..

COuld some someone suggest how to fix this

Gurumurthy
9 REPLIES 9
Peter Godron
Honored Contributor

Re: Removing logical or Volume group

Hi,
would this not be the normal behaviour?
You have removed the lvols and vg, so if you now try to display the removed vg it says, it can not find them.

Please clarify the error message.
Perhaps a list of your commands may help.

If uncertain about command line use, I always recommend SAM.
Gurusuma
New Member

Re: Removing logical or Volume group

Hi Peter,

Thanks for the response.

I understand that it would be the normal behaviour,but as I said earlier I had three voume groups vg00,01 and 02,I removed only 02 and its LVMs.

Now question is ,it would have displayed other two vgs and lvms assocaited info right?


Guru.
RAC_1
Honored Contributor

Re: Removing logical or Volume group

What are the exact commands that you when you get the error? Do you see vg02 when you do "strings /etc/lvmtab"
There is no substitute to HARDWORK
Gurusuma
New Member

Re: Removing logical or Volume group

I dont see the vg02 with strings command.

I sed lvremove /dev/vg02/lvol1...3

means there were three lvms,since they were mounted I used -f option as switch.

After that I used vgremove /dev/vg02.

Thats all I used,I feel after this it should show the free space added freed up from removing the vg02 .but not happening.

Guru
RAC_1
Honored Contributor

Re: Removing logical or Volume group

Give exact steps that you used. Also, do get anything when you do vgdisplay -v vg02? anything (error messages) in syslog.log and in dmesg command?
There is no substitute to HARDWORK
Ninad_1
Honored Contributor

Re: Removing logical or Volume group

Gurusuma,

Please give exact steps - command syntax followed - step by step.
Also post the following outputs - better to attach.

strings /etc/lvmtab
vgdisplay -v
ls -l /dev/vg*/*
grep vg02 /var/adm/syslog/*syslog.log

Then only we would be able to understand a bit more.

Regards,
Ninad
Josiah Henline
Valued Contributor

Re: Removing logical or Volume group

Please display the exact error message and whether or not that disk is shown in the lvmtab.
If at first you don't succeed, read the man page.
David Bellamy
Respected Contributor

Re: Removing logical or Volume group

You said you had three vg groups and you remove
one. using vgdisplay will not let you view the freed up space because you have remove any reference to the vg group. Do a pvdisplay and see which disk do not belong to a vg and that will be your free space.
Sanjay_6
Honored Contributor

Re: Removing logical or Volume group

Hi,

My guess is that the user removed the lv's while they were still being used / mounted using 'lvremove -f" and then did a vgremove. Now the system is confused about the status of the PV's / LV's that were part of the old VG "vg02".

My suggestion would be to forcibly reboot the server, if necessary.

Hope this helps.

regds