- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Removing a LV 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
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
тАО06-01-2004 07:15 AM
тАО06-01-2004 07:15 AM
Removing a LV with lvremove
I tried to remove some LV's from my vg01, I got this error for each lv:
[jcaplett@morpheus]$ sudo /usr/sbin/lvremove -f /dev/vg01/lvl89rw1
Current path "/dev/dsk/c24t0d0" is an alternate link, skip.
Current path "/dev/dsk/c26t0d3" is an alternate link, skip.
lvremove: Couldn't delete logical volume "/dev/vg01/lvl89rw1":
The specified logical volume is open, or
a sparing operation is in progress.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
I check they're not mount on a FS, they have no open file or process using these LV's, they're all part of a PV, and I have some data on my vg01 that I don't wanna lose!!
Own can I remove my LV's???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2004 07:30 AM
тАО06-01-2004 07:30 AM
Re: Removing a LV with lvremove
If this is HPUX11.0 try this patch PHKL_30553 or superceeded .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2004 07:32 AM
тАО06-01-2004 07:32 AM
Re: Removing a LV with lvremove
vgdisplay -v vg01
lvdisplay /dev/vg01/lvl89rw1
pvdisplay -v (all volumes in vg01 here one by one until the line :
--- Physical extents ---
encountered)
if you can post this info, it can be a great help understanding your disk topology.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2004 07:33 AM
тАО06-01-2004 07:33 AM
Re: Removing a LV with lvremove
Try issuing the command "umount /dev/vg01/lvol90rw1" and see. Also recreate /etc/mnttab by
#mv /etc/mnttab /etc/mnttab.sav
#bdf
#umount /dev/vg01/lvol90rw1
If that doesn't work, try
#fuser /dev/vg01/lvol90rw1
#fuser /dev/vg01/rlvol90rw1
And see if they are being opened. You can also try "lsof" and see if this logical volume is in use.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2004 09:56 AM
тАО06-01-2004 09:56 AM
Re: Removing a LV with lvremove
fuser -ck /file_sys_name
then do lvremove on those Lvs.
thanks,
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2004 08:08 PM
тАО06-01-2004 08:08 PM
Re: Removing a LV with lvremove
Try using lsof ,
you will see which file is open by who ...
Bye.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2004 03:39 AM
тАО06-02-2004 03:39 AM
Re: Removing a LV with lvremove
ps -ef | grep
to see if there's anything runs on it. If they are not mounted, check if the logical volume is used for mirror or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2004 01:25 AM
тАО06-29-2004 01:25 AM
Re: Removing a LV with lvremove
Sorry!! but thanks for the answer!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2004 04:49 AM
тАО07-14-2004 04:49 AM
Re: Removing a LV with lvremove
How did you get the logical volume to delete?