1826331 Members
3436 Online
109692 Solutions
New Discussion

lvremove error

 
krizevac
Advisor

lvremove error

When I try to remove an lvol I got this error:
lvremove: Couldn't delete logical volume "/dev/vgdb/lvol1":
The supplied lv number refers to a non-existent logical volume.
vgcfgbackup: Invalid LVMREC on Physical Volume /dev/rdsk/c8t0d0

Any suggestion
Krizevac
-*-
12 REPLIES 12
Holger Knoppik
Valued Contributor

Re: lvremove error

Hi !

check out this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x48e7f9beca68d511abcd0090277a778c,00.html

HTH
RGDS, Holger
Live long and prosper!
Christopher McCray_1
Honored Contributor

Re: lvremove error

Hello,

Does this lvol show up on your bdf output, or is it only listed in /dev/vg##?

have you tried rmsf to remore the device files associated with the lvol?

hope this helps.

Chris
It wasn't me!!!!
Steven Gillard_2
Honored Contributor

Re: lvremove error

Can you also try to run:

# vgdisplay -v /dev/vgdb
# lvdisplay -v /dev/vgdb/lvol1
# pvdisplay -v /dev/dsk/c8t0d0

Do they report errors? Is the lvol listed correctly?

Regards,
Steve
krizevac
Advisor

Re: lvremove error

This lvol doesn't appear in the bdf list
-*-
Sanjay_6
Honored Contributor

Re: lvremove error

Hi,

does this lv seen on the vgdisplay output. Do a "vgdisplay -v /dev/vg_name" . check and make sure the lv is seen as available and synced. If It is not seen over there, the lv does not exist.

Hope this helps.

Regds
krizevac
Advisor

Re: lvremove error

I've removed and recreated the vgdb.
The lvol1 still appears!
And If I try to remove it this is the message:

lvremove /dev/vgdb/lvol1
Current path "/dev/dsk/c10t1d7" is an alternate link, skip.
lvremove: Couldn't delete logical volume "/dev/vgdb/lvol1":
The supplied lv number refers to a non-existent logical volume.
Volume Group configuration for /dev/vgdb has been saved in /etc/lvmconf/vgdb.conf
-*-
Christopher McCray_1
Honored Contributor

Re: lvremove error

Hello again,

I have to ask the question: Where are you seeing the reference to /dev/vgdb/lvol1? ( I refer you to my first response)

Since you indicated that it did not appear in bdf , i.e:

# bdf |grep /dev/vgdb/lvol1

My guess is that you are seeing the character and block files in the /dev/vgdb directory.

Use rmsf to delete these files.

I hope this helps

Chris
It wasn't me!!!!
Patrick Wallek
Honored Contributor

Re: lvremove error

You said you removed and recreated /dev/vgdb. How did you do that? If you removed /dev/vgdb then /dev/vgdb/lvol1 should have gone away.

If you really want to remove /dev/vgdb and start from scratch with the vg, then do this:

# vgexport /dev/vgdb

This will completely wipe out /dev/vgdb. If you do an 'll -d /dev/vg*' after the vgexport you should NOT see any references to vgdb. You should now be able to recreate this VG from scratch without any problems.
Roger Baptiste
Honored Contributor

Re: lvremove error

hi,

do an lvdisplay -v on the lvol and check the output to see what PV's they correspond to. Then do a diskinfo on the PVs to see whether those disks are visible.

HTH
raj
Take it easy.
Darrell Allen
Honored Contributor

Re: lvremove error

Hi,

"vgcfgbackup: Invalid LVMREC on Physical Volume /dev/rdsk/c8t0d0" bothers me. Since you have already deleted vgdb, I presume there's no data to worry about. I'd vgexport vgdb, pvcreate the disks for that VG, then re-create the VG.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Sandip Ghosh
Honored Contributor

Re: lvremove error

I think that your disks are having alternate link and you are using the wrong disk during the creation of the vgdb. I woul suggest that first see which are the disks configured as alternate pvlink. Then accordingly create the Volume Group.

Sandip
Good Luck!!!
pap
Respected Contributor

Re: lvremove error

Hi do following This and I am sure it will solve your problem :


1. #vgdisplay -v /dev/vgdb
Note down the disks present in vgdb volume group.

2.# vgexport /dev/vgdb

3.#vgimport /dev/vgdb /dev/dsk/cxtydz.......

-pap
"Winners don't do different things , they do things differently"