If you don't see any open file locks run the following:
Code:
Code:
|
Is LogVol01 mounted by any chance?
Code:
# lvcreate -L100M -n test /dev/vg0 |
It shouldnt be mounted, from the discussion we had this new lv got created. Unless it got mounted, which I can't see it from the steps the issue here is likely a file lock or the dmsetup.
|
Quote:
Code:
bash: lsof : command not found Quote:
Code:
Can't remove open logical volume "LogVol01" |
Quote:
Code:
#mm/memlock.c:389 Unlock : Memlock counters: locked:0 critical:0 daemon:0 suspended:0 |
Quote:
When I run df -h, I don't have LogVol01, I only have LogVol00, along with some other partitions. LogVol00 is still at 9.5G in size and is at 100% use. Also, /dev/loop0 is at 100% of 130M in use. I'm not sure if that matters? Thank you again for all of the help. |
Did you run the dmsetup commands I provided? What was the output of those? I think that is the issue here preventing the LV from being removed.
|
Quote:
I'll take a step back and allow the thread to continue with Kustom42. Regards |
Quote:
Code:
Name Maj Min Stat Open Targ Event UUID Quote:
Code:
device-mapper: remove ioctl failed: Device or resource busy |
Well, this is interesting...
That should allow you to remove it, add the -f option to the remove command. dmsetup remove -f VolGroup00-LogVol01 |
result as follows:
Code:
device-mapper: remove ioctl failed: Device or resource busy |
Ok, well since you don't have access to lsof try this:
Code:
ps auxww | grep -i LogVol01 |
Code:
root 1618 0.0 0.1 4328 784 tty1 S+ 21:02 0:00 grep -i LogVol01 if I do the following: Code:
ps ax | grep 1618 Code:
1624 tty1 S+ 0:00 grep 1618 When I do 'df -H', I don't see LogVol01 listed, only LogVol00?? |
The ps output you are getting is for the grep process you are running. This is very odd, there are no processes with a file open so you should have no issue removing the logical volume.
I have seen this is in wierd situation before where the device was suspended, not sure if thats the case but its something to try. Code:
|
result as follows:
Code:
device-mapper: remove ioctl failed: Device or resource busy |
All times are GMT -5. The time now is 04:57 PM. |