- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- lvremove fails with device-mapper ioctl cmd 9 fail...
Operating System - Linux
1752796
Members
5902
Online
108789
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
- 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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP