1833863 Members
2421 Online
110063 Solutions
New Discussion

Re: lvremove

 
Brian Pyle
Frequent Advisor

lvremove

When I try and remove one of my logical volumes, I get an error saying that the lv's # can't be found, and it stays put ???

Any clues ??

TIA
Brian
Follow The Path With Heart
7 REPLIES 7
Edward Sedgemore
Trusted Contributor

Re: lvremove


Whats the exact command you are attempting ?

What does an ls -l /dev/ produce ? (to help confirm the Volume group and its logical volumes are aok)

What does lvdisplay /dev// produce ?
Terja
Frequent Advisor

Re: lvremove

Ccan you check the following:

vgdisplay -v

does the lvm appear

ls -l /dev/vg00/lvmname
is it there, ( i am assuming its vg00)

It is possible that you have a corrupt lvmtab
file, if the above information all exists.
if so, you can try the following (in quet mode,

mv /etc/lvmtab /etc/lvmtab.original
/usr/sbin/vgscan -pv

this tells you what its going to do.

then

/usr/sbin/vgscan -av
UNIX - Live free or Die
Brian Pyle
Frequent Advisor

Re: lvremove

ls -l /dev/vg01/lvjunk
brw-r----- 1 root sys 64 0x010019 Mar 8 18:15 /dev/vg01/lvjunk

lvdisplay /dev/vg01/lvjunk
--- Logical volumes ---
LV Name /dev/vg01/lvjunk
VG Name /dev/vg01
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 4
Current LE 1
Allocated PE 1
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation PVG-strict
IO Timeout (Seconds) default


This is the output I get. Looks pretty reasonable. I was able to shrinks it down so it wasn't taking up much room, and I was able to create the ones I wanted anyhow. Would just like to know how to clean this up.

TIA
Brian


Follow The Path With Heart
Edward Sedgemore
Trusted Contributor

Re: lvremove


Youve got a physical volume group setup for it (PVG). Can you check its in the /etc/lvmpvg file (strings /etc/lvmpvg).

Also, which physical volume is this lvol on (do an> lvdisplay -v /dev/vg01/lvjunk and it will display the physical volume its on, which should also be in the lvmpvg file above)
Printaporn_1
Esteemed Contributor

Re: lvremove

Hi,

Do you have lv raw device ?
/dev/vg../rlvol... for these lvol.
enjoy any little thing in my life
Vincenzo Restuccia
Honored Contributor

Re: lvremove

You can test with SAM.
Brian Pyle
Frequent Advisor

Re: lvremove

Well after a little more research, I realized that there wasn't a raw disk for it. Thanx PrintaPorn. I tracked down the missing rlvol that had been negelected in a lvol renaming. Renamed it to match, and removed it no problemo :) I am a happy camper once again :) Thanx to all, and how the heck do I assign points now ?
Follow The Path With Heart