LVM and VxVM

Duplicate minor numbers in one VG

 
Guenter Lehmann
Occasional Contributor

Duplicate minor numbers in one VG

I have a volume group with two logical volumes.
Both LV (lvol1 lvolnsr)and have the same minor number.

cr--r--r-- 1 root sys 64 0x010000 Dec 12 2002 group
brw-r----- 1 root sys 64 0x010001 Dec 18 2002 lvol1
br--r----- 1 root sys 64 0x010001 Dec 12 2002 lvolnsr
crw-r----- 1 root sys 64 0x010001 Dec 18 2002 rlvol1
cr--r----- 1 root sys 64 0x010001 Dec 12 2002 rlvolnsr

How can I remove lvol1 wihout destroying lvolnsr??.
guenter
5 REPLIES 5
James Murtagh
Honored Contributor

Re: Duplicate minor numbers in one VG

Hi Guenter,

You can just use rmsf to remove the unwanted entries. Use vgdisplay after this to make sure all the lv counts tie up.

Cheers,

James.
Geoff Wild
Honored Contributor

Re: Duplicate minor numbers in one VG

You could try:

lvremove /dev/vg??/lvol1

RGds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Armin Feller
Honored Contributor

Re: Duplicate minor numbers in one VG

Hi,

it depends on the order of creation. You can
"lvremove" one of the lvols but not the duplicate. To remove the duplication run "rm" to the /dev/vgXY/lvol1 and .../rlvol1

Regards,
Armin
Sunil Sharma_1
Honored Contributor

Re: Duplicate minor numbers in one VG

Hi,

rmsf will be good option.

do you have data in lvol1 ?

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Guenter Lehmann
Occasional Contributor

Re: Duplicate minor numbers in one VG

Hi,

thanks for your replies.
I have made a rmsf .../lvol1 and .../rlvol1
Neither vgdisplay nor lvdisplay shows the volume. The reserved space for volume lvol1 is available in the volume group.

I think this problem is resolved.


Guenter
guenter