1836579 Members
1518 Online
110102 Solutions
New Discussion

Re: lvm problem

 
SOLVED
Go to solution
JOHN TURNER_2
Frequent Advisor

lvm problem

We have a problem relating to lvm on a hp 11.00 system, someone has managed to create two logical volumes on the same physical extentents, We have tried to remove one of the logical volumes which has worked but it now won't let us remove the second logical volume that was sharing it's extents.

can anyone advise

john
GUI's are for wimps!
10 REPLIES 10
Muthukumar_5
Honored Contributor

Re: lvm problem

umount the file system first.
lvremove -f

what it is saying.

hth.
Easy to suggest when don't know about the problem!
RAC_1
Honored Contributor

Re: lvm problem

What is error message?? How does lvdisplay and vgdisplay look like??
There is no substitute to HARDWORK
Luk Vandenbussche
Honored Contributor

Re: lvm problem

If it is the only volume in the volumegroup you can remove it with vgexport

vgchange -a n /dev/vgxx
vgexport /dev/vgxx
JOHN TURNER_2
Frequent Advisor

Re: lvm problem

the error that i get when i try to remove the logical volume is:


sn9c:/var/tmp# lvremove -f /dev/vg00/servicenode
lvremove: Couldn't delete logical volume "/dev/vg00/servicenode":
The specified logical volume is open, or
a sparing operation is in progress.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

GUI's are for wimps!
Bharat Katkar
Honored Contributor

Re: lvm problem

HI John,
Try doing:
# lvchnage -a n /dev/vg00/servicenode
# lvchnage -a y /dev/vg00/servicenode
# lvremove -f ...
See if that works.
Regards,
You need to know a lot to actually know how little you know
JOHN TURNER_2
Frequent Advisor

Re: lvm problem

when i try and lvchange the lvol, i get the following error msg

sn9c:/var/tmp# lvchange -a n /dev/vg00/debuglogs
lvchange: Logical volume "/dev/vg00/debuglogs" could not be changed:
The supplied lv number refers to a non-existent logical volume.


also when i lvdisplay the said volume group i get

LV Name /dev/vg00/debuglogs
LV Status available/syncd
LV Size (Mbytes) 0
Current LE 0
Allocated PE 0
Used PV 0
GUI's are for wimps!
Muthukumar_5
Honored Contributor
Solution

Re: lvm problem

For this,

# lvchnage -a y /dev/vg00/debuglogs
# lvremove -f /dev/vg00/debuglogs

hth.
Easy to suggest when don't know about the problem!
Mahesh Kumar Malik
Honored Contributor

Re: lvm problem

Hi John

1. lvremove should remove volume.

2. If there is only one volume in VG then vgexoprt can also be used

Regards
Mahesh
VIKAS AGRAWAL
Frequent Advisor

Re: lvm problem

hi John ,

if you don't mind please send us the full output of the following commands , attach in a file

1. vgdisplay -v /dev/vg00
2. lvdisplay -v /dev/vg00/debuglogs
3. cd /dev/vg00 , ls -il



vikas


Devender Khatana
Honored Contributor

Re: lvm problem

Hi John,

As of now your LV exists with Zero PE's. Only problem what you are having is that you are not able to remove the LV. It should be fine by creating another LV with some different name.

But apparently it apears as if your system is not patched properly. Are latest LVM patches applied ?

HTH,
Devender
Impossible itself mentions "I m possible"