<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can't remove logical volume RHEL5.2 in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/can-t-remove-logical-volume-rhel5-2/m-p/5169319#M50598</link>
    <description>Rebooting with the hung filesystem commented out in /etc/fstab.</description>
    <pubDate>Wed, 15 Apr 2009 18:30:54 GMT</pubDate>
    <dc:creator>Steven McCoy</dc:creator>
    <dc:date>2009-04-15T18:30:54Z</dc:date>
    <item>
      <title>Can't remove logical volume RHEL5.2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-remove-logical-volume-rhel5-2/m-p/5169311#M50590</link>
      <description>Hey guys,&lt;BR /&gt;&lt;BR /&gt;We're trying to remove a logical volume, but it claims it is in use. Here are the details:&lt;BR /&gt;&lt;BR /&gt;$ grep lvol21 /etc/fstab&lt;BR /&gt;/dev/vg01/lvol21        /system_backups         ext3    defaults        1 2&lt;BR /&gt;&lt;BR /&gt;$ sudo umount /dev/mapper/vg01-lvol21&lt;BR /&gt;&lt;BR /&gt;$ sudo lvremove /dev/mapper/vg01-lvol21&lt;BR /&gt;  Can't remove open logical volume "lvol21"&lt;BR /&gt;&lt;BR /&gt;$ sudo lvchange -an /dev/mapper/vg01-lvol21&lt;BR /&gt;  LV vg01/lvol21 in use: not deactivating&lt;BR /&gt;&lt;BR /&gt;$ sudo dmsetup remove vg01-lvol21&lt;BR /&gt;device-mapper: remove ioctl failed: Device or resource busy&lt;BR /&gt;Command failed&lt;BR /&gt;&lt;BR /&gt;$ sudo lsof /system_backups/&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;$ sudo fuser /system_backups/&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Apr 2009 15:05:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-remove-logical-volume-rhel5-2/m-p/5169311#M50590</guid>
      <dc:creator>Steven McCoy</dc:creator>
      <dc:date>2009-04-13T15:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can't remove logical volume RHEL5.2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-remove-logical-volume-rhel5-2/m-p/5169312#M50591</link>
      <description>Post the ouput of the mount command, check /proc/mounts, also, run lsof or fuser over the device itself, not the mount point.</description>
      <pubDate>Mon, 13 Apr 2009 15:15:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-remove-logical-volume-rhel5-2/m-p/5169312#M50591</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2009-04-13T15:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can't remove logical volume RHEL5.2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-remove-logical-volume-rhel5-2/m-p/5169313#M50592</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Try lvremove first&lt;BR /&gt;&lt;BR /&gt;You may need to vgchange -a n vg01&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 13 Apr 2009 15:17:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-remove-logical-volume-rhel5-2/m-p/5169313#M50592</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-04-13T15:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can't remove logical volume RHEL5.2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-remove-logical-volume-rhel5-2/m-p/5169314#M50593</link>
      <description>Thank you for the replies, guys. That vgchange command makes all logical volumes within the Volume Group (vg01) unavailable, correct? There is a live/production filesystem within vg01, unfortunately.&lt;BR /&gt;&lt;BR /&gt;Here are the command results:&lt;BR /&gt;&lt;BR /&gt;$ sudo lsof /dev/mapper/vg01-lvol21&lt;BR /&gt;$ sudo lsof /dev/vg01/lvol21&lt;BR /&gt;$ cat /proc/mounts&lt;BR /&gt;rootfs / rootfs rw 0 0&lt;BR /&gt;/dev/root / ext3 rw,data=ordered 0 0&lt;BR /&gt;/dev /dev tmpfs rw 0 0&lt;BR /&gt;/proc /proc proc rw 0 0&lt;BR /&gt;/sys /sys sysfs rw 0 0&lt;BR /&gt;/proc/bus/usb /proc/bus/usb usbfs rw 0 0&lt;BR /&gt;devpts /dev/pts devpts rw 0 0&lt;BR /&gt;/dev/vg00/lvol5 /usr ext3 rw,data=ordered 0 0&lt;BR /&gt;/dev/vg00/lvol4 /opt ext3 rw,data=ordered 0 0&lt;BR /&gt;/dev/vg00/lvol9 /oarchive ext3 rw,data=ordered 0 0&lt;BR /&gt;/dev/vg00/lvol6 /usr/local ext3 rw,data=ordered 0 0&lt;BR /&gt;/dev/vg00/lvol3 /tmp ext3 rw,data=ordered 0 0&lt;BR /&gt;/dev/vg00/lvol8 /oracle ext3 rw,data=ordered 0 0&lt;BR /&gt;/dev/vg00/lvol7 /var ext3 rw,data=ordered 0 0&lt;BR /&gt;/dev/vg00/lvol2 /home ext3 rw,data=ordered 0 0&lt;BR /&gt;/dev/cciss/c0d0p1 /boot ext3 rw,data=ordered 0 0&lt;BR /&gt;tmpfs /dev/shm tmpfs rw 0 0&lt;BR /&gt;/dev/vg01/lvol20 /u01 ext3 rw,data=ordered 0 0&lt;BR /&gt;/dev/vg01/lvol22 /db_backups ext3 rw,data=ordered 0 0&lt;BR /&gt;/dev/vg00/lvol10 /tmp1_mnt ext3 rw,data=ordered 0 0&lt;BR /&gt;none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0&lt;BR /&gt;sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0&lt;BR /&gt;/etc/auto.misc /misc autofs rw,fd=6,pgrp=4746,timeout=300,minproto=5,maxproto=5,indirect 0 0&lt;BR /&gt;-hosts /net autofs rw,fd=12,pgrp=4746,timeout=300,minproto=5,maxproto=5,indirect 0 0&lt;BR /&gt;nfsd /proc/fs/nfsd nfsd rw 0 0&lt;BR /&gt;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&lt;BR /&gt;$ mount&lt;BR /&gt;/dev/mapper/vg00-lvol1 on / type ext3 (rw)&lt;BR /&gt;proc on /proc type proc (rw)&lt;BR /&gt;sysfs on /sys type sysfs (rw)&lt;BR /&gt;devpts on /dev/pts type devpts (rw,gid=5,mode=620)&lt;BR /&gt;/dev/mapper/vg00-lvol5 on /usr type ext3 (rw)&lt;BR /&gt;/dev/mapper/vg00-lvol4 on /opt type ext3 (rw)&lt;BR /&gt;/dev/mapper/vg00-lvol9 on /oarchive type ext3 (rw)&lt;BR /&gt;/dev/mapper/vg00-lvol6 on /usr/local type ext3 (rw)&lt;BR /&gt;/dev/mapper/vg00-lvol3 on /tmp type ext3 (rw)&lt;BR /&gt;/dev/mapper/vg00-lvol8 on /oracle type ext3 (rw)&lt;BR /&gt;/dev/mapper/vg00-lvol7 on /var type ext3 (rw)&lt;BR /&gt;/dev/mapper/vg00-lvol2 on /home type ext3 (rw)&lt;BR /&gt;/dev/cciss/c0d0p1 on /boot type ext3 (rw)&lt;BR /&gt;tmpfs on /dev/shm type tmpfs (rw)&lt;BR /&gt;/dev/mapper/vg01-lvol20 on /u01 type ext3 (rw)&lt;BR /&gt;/dev/mapper/vg01-lvol22 on /db_backups type ext3 (rw)&lt;BR /&gt;/dev/mapper/vg00-lvol10 on /tmp1_mnt type ext3 (rw)&lt;BR /&gt;none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)&lt;BR /&gt;sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)&lt;BR /&gt;nfsd on /proc/fs/nfsd type nfsd (rw)&lt;BR /&gt;aspt5db1:/oarchive_nfs on /oarchive_nfs type nfs (rw,rsize=32768,wsize=32768,hard,addr=209.82.230.121)&lt;BR /&gt;&lt;BR /&gt;$ grep -i lvol21 /etc/mtab /proc/mounts&lt;BR /&gt;$&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Apr 2009 16:19:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-remove-logical-volume-rhel5-2/m-p/5169314#M50593</guid>
      <dc:creator>Steven McCoy</dc:creator>
      <dc:date>2009-04-13T16:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can't remove logical volume RHEL5.2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-remove-logical-volume-rhel5-2/m-p/5169315#M50594</link>
      <description>How about the "--force" option for lvremove?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Apr 2009 19:49:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-remove-logical-volume-rhel5-2/m-p/5169315#M50594</guid>
      <dc:creator>Tony Cicone</dc:creator>
      <dc:date>2009-04-14T19:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can't remove logical volume RHEL5.2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-remove-logical-volume-rhel5-2/m-p/5169316#M50595</link>
      <description>Unfortunately, '--force' does not work, either:&lt;BR /&gt;&lt;BR /&gt;$ sudo lvremove --force /dev/mapper/vg01-lvol21&lt;BR /&gt;  Can't remove open logical volume "lvol21"&lt;BR /&gt;$ sudo lvremove /dev/vg01/lvol21&lt;BR /&gt;  Can't remove open logical volume "lvol21"&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Apr 2009 14:29:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-remove-logical-volume-rhel5-2/m-p/5169316#M50595</guid>
      <dc:creator>Steven McCoy</dc:creator>
      <dc:date>2009-04-15T14:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can't remove logical volume RHEL5.2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-remove-logical-volume-rhel5-2/m-p/5169317#M50596</link>
      <description>Sorry, I meant to paste:&lt;BR /&gt;&lt;BR /&gt;$ sudo lvremove --force /dev/mapper/vg01-lvol21&lt;BR /&gt;  Can't remove open logical volume "lvol21"&lt;BR /&gt;$ sudo lvremove --force /dev/vg01/lvol21&lt;BR /&gt;  Can't remove open logical volume "lvol21"&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Apr 2009 14:32:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-remove-logical-volume-rhel5-2/m-p/5169317#M50596</guid>
      <dc:creator>Steven McCoy</dc:creator>
      <dc:date>2009-04-15T14:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can't remove logical volume RHEL5.2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-remove-logical-volume-rhel5-2/m-p/5169318#M50597</link>
      <description>Well, we ended up taking the box out of production, rebooting it (with that filesystem commented out in /etc/fstab), and were able to delete the logical volume. Not the solution I was really wanting, but had to do what we could. Thanks everyone for all your replies and help.</description>
      <pubDate>Wed, 15 Apr 2009 18:30:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-remove-logical-volume-rhel5-2/m-p/5169318#M50597</guid>
      <dc:creator>Steven McCoy</dc:creator>
      <dc:date>2009-04-15T18:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can't remove logical volume RHEL5.2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-remove-logical-volume-rhel5-2/m-p/5169319#M50598</link>
      <description>Rebooting with the hung filesystem commented out in /etc/fstab.</description>
      <pubDate>Wed, 15 Apr 2009 18:30:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-remove-logical-volume-rhel5-2/m-p/5169319#M50598</guid>
      <dc:creator>Steven McCoy</dc:creator>
      <dc:date>2009-04-15T18:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can't remove logical volume RHEL5.2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-remove-logical-volume-rhel5-2/m-p/5169320#M50599</link>
      <description>FYI, this command works very well for situations like that above:&lt;BR /&gt;&lt;BR /&gt;fuser -km /system_backups</description>
      <pubDate>Fri, 05 Jun 2009 18:33:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-remove-logical-volume-rhel5-2/m-p/5169320#M50599</guid>
      <dc:creator>Steven McCoy</dc:creator>
      <dc:date>2009-06-05T18:33:29Z</dc:date>
    </item>
  </channel>
</rss>

