- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Can't remove logical volume RHEL5.2
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-13-2009 08:05 AM
тАО04-13-2009 08:05 AM
Can't remove logical volume RHEL5.2
We're trying to remove a logical volume, but it claims it is in use. Here are the details:
$ grep lvol21 /etc/fstab
/dev/vg01/lvol21 /system_backups ext3 defaults 1 2
$ sudo umount /dev/mapper/vg01-lvol21
$ sudo lvremove /dev/mapper/vg01-lvol21
Can't remove open logical volume "lvol21"
$ sudo lvchange -an /dev/mapper/vg01-lvol21
LV vg01/lvol21 in use: not deactivating
$ sudo dmsetup remove vg01-lvol21
device-mapper: remove ioctl failed: Device or resource busy
Command failed
$ sudo lsof /system_backups/
$
$ sudo fuser /system_backups/
$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2009 08:15 AM
тАО04-13-2009 08:15 AM
Re: Can't remove logical volume RHEL5.2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2009 08:17 AM
тАО04-13-2009 08:17 AM
Re: Can't remove logical volume RHEL5.2
Try lvremove first
You may need to vgchange -a n vg01
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-13-2009 09:19 AM
тАО04-13-2009 09:19 AM
Re: Can't remove logical volume RHEL5.2
Here are the command results:
$ sudo lsof /dev/mapper/vg01-lvol21
$ sudo lsof /dev/vg01/lvol21
$ cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 rw,data=ordered 0 0
/dev /dev tmpfs rw 0 0
/proc /proc proc rw 0 0
/sys /sys sysfs rw 0 0
/proc/bus/usb /proc/bus/usb usbfs rw 0 0
devpts /dev/pts devpts rw 0 0
/dev/vg00/lvol5 /usr ext3 rw,data=ordered 0 0
/dev/vg00/lvol4 /opt ext3 rw,data=ordered 0 0
/dev/vg00/lvol9 /oarchive ext3 rw,data=ordered 0 0
/dev/vg00/lvol6 /usr/local ext3 rw,data=ordered 0 0
/dev/vg00/lvol3 /tmp ext3 rw,data=ordered 0 0
/dev/vg00/lvol8 /oracle ext3 rw,data=ordered 0 0
/dev/vg00/lvol7 /var ext3 rw,data=ordered 0 0
/dev/vg00/lvol2 /home ext3 rw,data=ordered 0 0
/dev/cciss/c0d0p1 /boot ext3 rw,data=ordered 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/vg01/lvol20 /u01 ext3 rw,data=ordered 0 0
/dev/vg01/lvol22 /db_backups ext3 rw,data=ordered 0 0
/dev/vg00/lvol10 /tmp1_mnt ext3 rw,data=ordered 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
/etc/auto.misc /misc autofs rw,fd=6,pgrp=4746,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,fd=12,pgrp=4746,timeout=300,minproto=5,maxproto=5,indirect 0 0
nfsd /proc/fs/nfsd nfsd rw 0 0
aspt5db1:/oarchive_nfs /oarchive_nfs nfs rw,vers=3,rsize=32768,wsize=32768,hard,proto=tcp,timeo=600,retrans=2,sec=sys,addr=aspt5db1 0 0
$ mount
/dev/mapper/vg00-lvol1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/mapper/vg00-lvol5 on /usr type ext3 (rw)
/dev/mapper/vg00-lvol4 on /opt type ext3 (rw)
/dev/mapper/vg00-lvol9 on /oarchive type ext3 (rw)
/dev/mapper/vg00-lvol6 on /usr/local type ext3 (rw)
/dev/mapper/vg00-lvol3 on /tmp type ext3 (rw)
/dev/mapper/vg00-lvol8 on /oracle type ext3 (rw)
/dev/mapper/vg00-lvol7 on /var type ext3 (rw)
/dev/mapper/vg00-lvol2 on /home type ext3 (rw)
/dev/cciss/c0d0p1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/mapper/vg01-lvol20 on /u01 type ext3 (rw)
/dev/mapper/vg01-lvol22 on /db_backups type ext3 (rw)
/dev/mapper/vg00-lvol10 on /tmp1_mnt type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
aspt5db1:/oarchive_nfs on /oarchive_nfs type nfs (rw,rsize=32768,wsize=32768,hard,addr=209.82.230.121)
$ grep -i lvol21 /etc/mtab /proc/mounts
$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2009 12:49 PM
тАО04-14-2009 12:49 PM
Re: Can't remove logical volume RHEL5.2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2009 07:29 AM
тАО04-15-2009 07:29 AM
Re: Can't remove logical volume RHEL5.2
$ sudo lvremove --force /dev/mapper/vg01-lvol21
Can't remove open logical volume "lvol21"
$ sudo lvremove /dev/vg01/lvol21
Can't remove open logical volume "lvol21"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2009 07:32 AM
тАО04-15-2009 07:32 AM
Re: Can't remove logical volume RHEL5.2
$ sudo lvremove --force /dev/mapper/vg01-lvol21
Can't remove open logical volume "lvol21"
$ sudo lvremove --force /dev/vg01/lvol21
Can't remove open logical volume "lvol21"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2009 11:30 AM
тАО04-15-2009 11:30 AM
Re: Can't remove logical volume RHEL5.2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2009 11:30 AM
тАО04-15-2009 11:30 AM
Re: Can't remove logical volume RHEL5.2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2009 11:33 AM
тАО06-05-2009 11:33 AM
Re: Can't remove logical volume RHEL5.2
fuser -km /system_backups