Operating System - HP-UX
1833589 Members
4233 Online
110061 Solutions
New Discussion

Re: lvremove: Can't get lv number of logical volume ......

 
Nick Tarmey_1
Occasional Contributor

lvremove: Can't get lv number of logical volume ......

When I try to use SAM to remove a logical volume I get an error messsage:
lvremove: Can't get lv number of logical volume "/dev/vg01/redo01" how can I work around this?
Don't ask me I'm an Alien!
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor

Re: lvremove: Can't get lv number of logical volume ......

Nick:

See document A4287398:

Chances are you are missing the raw device file; do a:

# ll /dev/dscfgv/

If the raw device file for /dev/dscfgv/rootdv is not there, create
it with a:

# mknod /dev/dscfgv/rrootdv c 64 0x010004

Then the lvremove command should work for you.

...JRF...
Cheryl Griffin
Honored Contributor

Re: lvremove: Can't get lv number of logical volume ......

Nick,

This message can happen for either the raw or block device. Your message is referring to the character device. Here is both commands for character and block.

mknod /dev/vg01/rlvol2 c 64 0x010002
mknod /dev/vg01/lvol2 b 64 0x010002

BTW, This fix is included in the ITRC Knowledge Base, documents KBRC00002441 and A4287398.
"Downtime is a Crime."