Skip to ContentSkip to Footer
Start of content
- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- System Administration
- >
- lvremove fails with device-mapper ioctl cmd 9 fail...
System Administration
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
Topic Options
- 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
- Email to a Friend
- Report Inappropriate Content
05-29-2009 06:45 AM
05-29-2009 06:45 AM
lvremove fails with device-mapper ioctl cmd 9 failed: Cannot allocate memory
Good morning,
I have a RedHat RHEL4 system that I am using to try to get familiar with using LVM Snapshots.
The system has a 15GB LV for /home (/dev/VolGroup00/Home) and 319 unallocated extents (10GB) in VolGroup00
I created the snapshot LV with the command:
lvcreate -L10G -s -n HomeSnap /dev/VolGroup00/Home
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.
I unmounted the snapshot volume without any problem, but then I ran into problems when I tried to remove the snapshot with the command:
lvremove /dev/VolGroup00/HomeSnap
[root@linux01 ~]# lvremove /dev/VolGroup00/HomeSnap
Do you really want to remove active logical volume "HomeSnap"? [y/n]: y
device-mapper ioctl cmd 9 failed: Cannot allocate memory
Couldn't load device 'VolGroup00-HomeSnap'.
Unable to deactivate logical volume "HomeSnap"
lvdisplay shows the following for the Home LV:
--- Logical volume ---
LV Name /dev/VolGroup00/Home
VG Name VolGroup00
LV UUID 6JKEfg-5EfT-59Cp-GjX6-EjSx-k3S1-z0Q5Lo
LV Write Access read/write
LV snapshot status source of
/dev/VolGroup00/HomeSnap [active]
LV Status suspended
# open 1
LV Size 15.00 GB
Current LE 480
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:5
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.
I tried Googling for the error message, but I'm not coming up with anything useful yet.
Can someone tell me what I did wrong and how to fix it?
I have a RedHat RHEL4 system that I am using to try to get familiar with using LVM Snapshots.
The system has a 15GB LV for /home (/dev/VolGroup00/Home) and 319 unallocated extents (10GB) in VolGroup00
I created the snapshot LV with the command:
lvcreate -L10G -s -n HomeSnap /dev/VolGroup00/Home
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.
I unmounted the snapshot volume without any problem, but then I ran into problems when I tried to remove the snapshot with the command:
lvremove /dev/VolGroup00/HomeSnap
[root@linux01 ~]# lvremove /dev/VolGroup00/HomeSnap
Do you really want to remove active logical volume "HomeSnap"? [y/n]: y
device-mapper ioctl cmd 9 failed: Cannot allocate memory
Couldn't load device 'VolGroup00-HomeSnap'.
Unable to deactivate logical volume "HomeSnap"
lvdisplay shows the following for the Home LV:
--- Logical volume ---
LV Name /dev/VolGroup00/Home
VG Name VolGroup00
LV UUID 6JKEfg-5EfT-59Cp-GjX6-EjSx-k3S1-z0Q5Lo
LV Write Access read/write
LV snapshot status source of
/dev/VolGroup00/HomeSnap [active]
LV Status suspended
# open 1
LV Size 15.00 GB
Current LE 480
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:5
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.
I tried Googling for the error message, but I'm not coming up with anything useful yet.
Can someone tell me what I did wrong and how to fix it?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
End of content
United States
Hewlett Packard Enterprise International
Communities
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP