Operating System - HP-UX
1833589 Members
3976 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!
3 REPLIES 3
Stefan Farrelly
Honored Contributor

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


it sounds like this lvol does not exist, or someone has not used the correct commands to make changes to its major/minor number. Can you give us the output from an lvdisplay command on this lvol, and an ls -l /dev/vgxx this will help to diagnose.
Im from Palmerston North, New Zealand, but somehow ended up in London...
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...
Andy Monks
Honored Contributor

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

You could always remove the lvol from the command line

lvremove /dev/vgXX/lvolYY

that should work