<?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 lvremove fails with device-mapper ioctl cmd 9 failed: Cannot allocate memory in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/lvremove-fails-with-device-mapper-ioctl-cmd-9-failed-cannot/m-p/4429364#M36790</link>
    <description>Good morning,&lt;BR /&gt;&lt;BR /&gt;I have a RedHat RHEL4 system that I am using to try to get familiar with using LVM Snapshots.&lt;BR /&gt;&lt;BR /&gt;The system has a 15GB LV for /home (/dev/VolGroup00/Home) and 319 unallocated extents (10GB) in VolGroup00&lt;BR /&gt;&lt;BR /&gt;I created the snapshot LV with the command:&lt;BR /&gt;lvcreate -L10G -s -n HomeSnap /dev/VolGroup00/Home&lt;BR /&gt;&lt;BR /&gt;I was able to mount the snapshot volume on /mnt, and verify that I could change files in /home and still see the original contents in /mnt.&lt;BR /&gt;&lt;BR /&gt;I unmounted the snapshot volume without any problem, but then I ran into problems when I tried to remove the snapshot with the command:&lt;BR /&gt;lvremove /dev/VolGroup00/HomeSnap&lt;BR /&gt;[root@linux01 ~]# lvremove /dev/VolGroup00/HomeSnap               &lt;BR /&gt;Do you really want to remove active logical volume "HomeSnap"? [y/n]: y&lt;BR /&gt;  device-mapper ioctl cmd 9 failed: Cannot allocate memory             &lt;BR /&gt;  Couldn't load device 'VolGroup00-HomeSnap'.                          &lt;BR /&gt;  Unable to deactivate logical volume "HomeSnap"                       &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;lvdisplay shows the following for the Home LV:&lt;BR /&gt;--- Logical volume ---                                       &lt;BR /&gt;LV Name                /dev/VolGroup00/Home                  &lt;BR /&gt;VG Name                VolGroup00                            &lt;BR /&gt;LV UUID                6JKEfg-5EfT-59Cp-GjX6-EjSx-k3S1-z0Q5Lo&lt;BR /&gt;LV Write Access        read/write                            &lt;BR /&gt;LV snapshot status     source of                             &lt;BR /&gt;                       /dev/VolGroup00/HomeSnap [active]     &lt;BR /&gt;LV Status              suspended                             &lt;BR /&gt;# open                 1                                     &lt;BR /&gt;LV Size                15.00 GB                              &lt;BR /&gt;Current LE             480                                   &lt;BR /&gt;Segments               1                                     &lt;BR /&gt;Allocation             inherit                               &lt;BR /&gt;Read ahead sectors     0                                     &lt;BR /&gt;Block device           253:5                                 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now any process that tries to access /home hangs (something to do with the Home LV being "Suspended"?)  The shutdown scripts also hang (probably because one of them needs to access something in /home), and when I forced a reboot, the system came back up with the snapshot volume still active.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I tried Googling for the error message, but I'm not coming up with anything useful yet.&lt;BR /&gt;&lt;BR /&gt;Can someone tell me what I did wrong and how to fix it?&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 29 May 2009 13:45:17 GMT</pubDate>
    <dc:creator>Michael W. Burden</dc:creator>
    <dc:date>2009-05-29T13:45:17Z</dc:date>
    <item>
      <title>lvremove fails with device-mapper ioctl cmd 9 failed: Cannot allocate memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/lvremove-fails-with-device-mapper-ioctl-cmd-9-failed-cannot/m-p/4429364#M36790</link>
      <description>Good morning,&lt;BR /&gt;&lt;BR /&gt;I have a RedHat RHEL4 system that I am using to try to get familiar with using LVM Snapshots.&lt;BR /&gt;&lt;BR /&gt;The system has a 15GB LV for /home (/dev/VolGroup00/Home) and 319 unallocated extents (10GB) in VolGroup00&lt;BR /&gt;&lt;BR /&gt;I created the snapshot LV with the command:&lt;BR /&gt;lvcreate -L10G -s -n HomeSnap /dev/VolGroup00/Home&lt;BR /&gt;&lt;BR /&gt;I was able to mount the snapshot volume on /mnt, and verify that I could change files in /home and still see the original contents in /mnt.&lt;BR /&gt;&lt;BR /&gt;I unmounted the snapshot volume without any problem, but then I ran into problems when I tried to remove the snapshot with the command:&lt;BR /&gt;lvremove /dev/VolGroup00/HomeSnap&lt;BR /&gt;[root@linux01 ~]# lvremove /dev/VolGroup00/HomeSnap               &lt;BR /&gt;Do you really want to remove active logical volume "HomeSnap"? [y/n]: y&lt;BR /&gt;  device-mapper ioctl cmd 9 failed: Cannot allocate memory             &lt;BR /&gt;  Couldn't load device 'VolGroup00-HomeSnap'.                          &lt;BR /&gt;  Unable to deactivate logical volume "HomeSnap"                       &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;lvdisplay shows the following for the Home LV:&lt;BR /&gt;--- Logical volume ---                                       &lt;BR /&gt;LV Name                /dev/VolGroup00/Home                  &lt;BR /&gt;VG Name                VolGroup00                            &lt;BR /&gt;LV UUID                6JKEfg-5EfT-59Cp-GjX6-EjSx-k3S1-z0Q5Lo&lt;BR /&gt;LV Write Access        read/write                            &lt;BR /&gt;LV snapshot status     source of                             &lt;BR /&gt;                       /dev/VolGroup00/HomeSnap [active]     &lt;BR /&gt;LV Status              suspended                             &lt;BR /&gt;# open                 1                                     &lt;BR /&gt;LV Size                15.00 GB                              &lt;BR /&gt;Current LE             480                                   &lt;BR /&gt;Segments               1                                     &lt;BR /&gt;Allocation             inherit                               &lt;BR /&gt;Read ahead sectors     0                                     &lt;BR /&gt;Block device           253:5                                 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now any process that tries to access /home hangs (something to do with the Home LV being "Suspended"?)  The shutdown scripts also hang (probably because one of them needs to access something in /home), and when I forced a reboot, the system came back up with the snapshot volume still active.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I tried Googling for the error message, but I'm not coming up with anything useful yet.&lt;BR /&gt;&lt;BR /&gt;Can someone tell me what I did wrong and how to fix it?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 May 2009 13:45:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/lvremove-fails-with-device-mapper-ioctl-cmd-9-failed-cannot/m-p/4429364#M36790</guid>
      <dc:creator>Michael W. Burden</dc:creator>
      <dc:date>2009-05-29T13:45:17Z</dc:date>
    </item>
  </channel>
</rss>

