Operating System - HP-UX
1834454 Members
2503 Online
110067 Solutions
New Discussion

LVs are not getting removed

 
SOLVED
Go to solution
Karthik S S
Honored Contributor

LVs are not getting removed

Hi,
I'm deleting and resetting up a volume group , but I'm getting the following
message on removing the LV.


The logical volume "/dev/vg_rac/rspfile" is not empty;
do you really want to delete the logical volume (y/n) : y
lvremove: Can't get lv number of logical volume "/dev/vg_rac/rspfile".
Volume Group configuration for /dev/acom has been saved in
/etc/lvmconf/vg_rac.conf

The LV does not get removed. I can still run a lvdisplay against it and it
still appears under vgdisplay. Could someone please let me know what wrong & how can I get rid of them ?

All this started when I unsucessfully tried to create a RAC database (Oracle Real Application Cluster). The DBCA gave some error saying that not enough space is alloted to some of the data files (all Data files are Raw LVs) and hence I thought of deleteing all the LVs and recreate them with a new size.

Thanks in advance for your quick response,
Karthik

For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
5 REPLIES 5
Bill McNAMARA_1
Honored Contributor

Re: LVs are not getting removed

ls -laR /etc/lvmconf/

ls -laR /dev/vg_rac/

try vgexport vg_rac
It works for me (tm)
Cheryl Griffin
Honored Contributor

Re: LVs are not getting removed

If you are attempting to remove the entire volume group, use vgexport which will remove all the associated lvols as well:
# vgexport -v /dev/vgXX

Cheryl
"Downtime is a Crime."
Craig Rants
Honored Contributor

Re: LVs are not getting removed

Karthik,
vgexporting vg_rac would be your best bet,

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
S.K. Chan
Honored Contributor
Solution

Re: LVs are not getting removed

This (possibly) explain whay you're getting the error "lvremove .. can't ..". It involves recreating the device file followed by the lvremove.
DocID=KBRC00002441
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063200464
The "vgexport" is the fastest way to get rid of it but I thought you might want to know the explanation to the error you're getting.
Karthik S S
Honored Contributor

Re: LVs are not getting removed

Hi Chan,

Thanks for your great input. I recreated the raw device file using mknod command specifying the corresponding minor number for that LV. And after that I could delete the LV.

PS: Exporting the VG will not solve my purpose since I have data on other LVs.

Thanks
Karthik
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn