Operating System - HP-UX
1835986 Members
2170 Online
110088 Solutions
New Discussion

lvremove: Can't get minor number of LVOL

 
SOLVED
Go to solution
Billa-User
Regular Advisor

lvremove: Can't get minor number of LVOL

hello,

i tried to remove a LVOL, but i got following error:

lvremove: Can't get minor number of logical volume "/dev/vgatvmovp_db1/OVOP_opc_6_00".

i saw also, the Raw Device doesn't exists.

i don't know, how to remove the LVOL ?

regards,Tom
5 REPLIES 5
BrianDoyle
Trusted Contributor
Solution

Re: lvremove: Can't get minor number of LVOL

This situation has happened to me last year.
But I would ask other members to confirm this method/suggest changes before trying it :)

Make sure the lvol is unmounted.
You should create the block and character device files:
Do ll /dev/vg*/group to see the list of minor numbers currently in use. Choose the next one in sequence. e.g. 0x040001
mknod /dev/vgXXX/lvol1 b 64 0x040001
mknod /dev/vgXXX/rlvol1 c 64 0x040001

(each lvol has a block (b)and char(c) device)

View with "lvdisplay /dev/vgXXX/lvol1"
If both lvol's are accessable you can then you can look at removing the lvol's using lvremove command:

lvremove /dev/vgXXX/lvol1

I again would wait for others to comment on this BEFORE implementing Tom.
rgds,
Brian
Andrew Young_2
Honored Contributor

Re: lvremove: Can't get minor number of LVOL

Hi Tom

I would go with what Brian says.

Just two notes. To find the minor number of the logical volume run the following:

strings /etc/lvmconf/vgatvmovp_db1.mapfile

to pick up the logical volume number.

Also remember that the minor number is in hexidecimal so the 10th lvol will show up as 10 but when running mknod it will be 0xYY000a where YY is your major number.

HTH

Andrew Y
Si hoc legere scis, nimis eruditionis habes
Mridul Shrivastava
Honored Contributor

Re: lvremove: Can't get minor number of LVOL

do you have block device for this lvol ?? If yes that you could create the raw device using the same major and minor no.'s , just change the b with c as mentioned above.

After doing this you should be able to remove the lvol.
Time has a wonderful way of weeding out the trivial
Billa-User
Regular Advisor

Re: lvremove: Can't get minor number of LVOL

hello,

i made the steps of brian and it works. thank's a lot for your helpful informations.

kind regards,Tom
Billa-User
Regular Advisor

Re: lvremove: Can't get minor number of LVOL


i made the steps of brian and it works. thank's a lot for your helpful informations.