- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Can't remove a logical volume with lvremove
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2009 08:47 AM
тАО04-23-2009 08:47 AM
Current path "/dev/dsk/c7t9d0" is an alternate link, skip.
lvremove: Couldn't delete logical volume "/dev/vgcm3/homjun":
The supplied lv number refers to a non-existent logical volume.
Volume Group configuration for /dev/vgcm3 has been saved in /etc/lvmconf/vgcm3.conf
# vgdisplay -v /dev/vgcm3
--- Volume groups ---
VG Name /dev/vgcm3
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 3
Open LV 4
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4331
VGDA 2
PE Size (Mbytes) 4
Total PE 3472
Alloc PE 359
Free PE 3113
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vgcm3/anlg
LV Status available/syncd
LV Size (Mbytes) 4
Current LE 1
Allocated PE 1
Used PV 1
LV Name /dev/vgcm3/94coun
LV Status available/syncd
LV Size (Mbytes) 1400
Current LE 350
Allocated PE 350
Used PV 1
LV Name /dev/vgcm3/homjun
LV Status available/syncd
LV Size (Mbytes) 0
Current LE 0
Allocated PE 0
Used PV 0
LV Name /dev/vgcm3/apa13
LV Status available/syncd
LV Size (Mbytes) 32
Current LE 8
Allocated PE 8
Used PV 1
--- Physical volumes ---
PV Name /dev/dsk/c4t9d0
PV Name /dev/dsk/c7t9d0 Alternate Link
PV Status available
Total PE 3472
Free PE 3113
Autoswitch On
# cat /etc/lvmconf/vgcm3.map
VGID 77f1d47e3c1f6e9a
10 anlg
157 94coun
207 homjun
1 apa13
# lvdisplay -v /dev/vgcm3/homjun
--- Logical volumes ---
LV Name /dev/vgcm3/homjun
VG Name /dev/vgcm3
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 0
Current LE 0
Allocated PE 0
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation non-strict
IO Timeout (Seconds) default
# ll /dev/vgcm3
total 0
brw------- 1 root sys 64 0x10009d May 17 2007 94coun
brw------- 1 root sys 64 0x10000a May 17 2007 anlg
brw------- 1 root sys 64 0x100001 May 17 2007 apa13
crw-r--r-- 1 root sys 64 0x100000 May 17 2007 group
brw------- 1 root sys 64 0x1000cf May 17 2007 homjun
crw------- 1 root sys 64 0x10009d May 17 2007 r94coun
crw------- 1 root sys 64 0x10000a May 17 2007 ranlg
crw------- 1 root sys 64 0x100001 May 17 2007 rapa13
crw------- 1 root sys 64 0x1000cf May 17 2007 rhomjun
Any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2009 09:09 AM
тАО04-23-2009 09:09 AM
Re: Can't remove a logical volume with lvremove
Try the lvremove on the primary path, not the alternate path.
Get a diagnostic code.
lvremove logical_volme_name
rc=$?
echo $rc
Lets see why this happens on a lower level.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2009 09:15 AM
тАО04-23-2009 09:15 AM
Re: Can't remove a logical volume with lvremove
Current path "/dev/dsk/c7t9d0" is an alternate link, skip.
lvremove: Couldn't delete logical volume "/dev/vgcm3/homjun":
The supplied lv number refers to a non-existent logical volume.
Volume Group configuration for /dev/vgcm3 has been saved in /etc/lvmconf/vgcm3.conf
# rc=$?
# echo $rc
2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2009 09:24 AM
тАО04-23-2009 09:24 AM
Re: Can't remove a logical volume with lvremove
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2009 09:27 AM
тАО04-23-2009 09:27 AM
Re: Can't remove a logical volume with lvremove
Cur LV 3
Open LV 4
Does this change after extending?
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2009 09:30 AM
тАО04-23-2009 09:30 AM
Re: Can't remove a logical volume with lvremove
lvextend: Logical volume "/dev/vgcm3/homjun" could not be changed:
The supplied lv number refers to a non-existent logical volume.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2009 09:31 AM
тАО04-23-2009 09:31 AM
Re: Can't remove a logical volume with lvremove
Should Torsten's suggestion fail to remove the lv then I would try again via sam and see if this succeeds in removing it.
Regards,
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2009 09:57 AM
тАО04-23-2009 09:57 AM
Solutionrhomjun
and
homjun
in
/dev/vgcm3
After this check again with vgdisplay.
Now open lv must be = cur lv.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2009 10:01 AM
тАО04-23-2009 10:01 AM
Re: Can't remove a logical volume with lvremove
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2009 10:10 AM
тАО04-23-2009 10:10 AM
Re: Can't remove a logical volume with lvremove
I don't know what was happen before, but now you have this scenario.
I get **exactly** the same if I simply create (with mknod) the lvol_X and rlvol_X files in one of my VGs.
"rm" this away and everything is normal again.
It's up to you ...
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!