[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

SOLVED: LVM operations block


a quick note so that it will get indexed :)

I'm on a plain debian/etch (no backports or other "unofficial"
packages not originally included in etch)

Whenever I do operations on lvm (pvdisplay, vgdisplay, lvdisplay) it
just sits there and blocks. It does look like it's waiting for some

The last lines of strace show this:

stat("/dev/etherd/e0.1", {st_mode=S_IFBLK|0660, st_rdev=makedev(152,
16), ...}) = 0
stat("/dev/etherd/e0.1", {st_mode=S_IFBLK|0660, st_rdev=makedev(152,
16), ...}) = 0
open("/dev/etherd/e0.1", O_RDONLY|O_DIRECT|O_NOATIME) = 3
fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(152, 16), ...}) = 0
ioctl(3, BLKBSZGET, 0x593430)           = 0
lseek(3, 0, SEEK_SET)                   = 0
<hangs around lazily>

/dev/etherd/e0.1 is a deactivated aoe device. It was at some point in
time exported on the server but now it isn't anymore and with plain
etch packages it is not possible to get rid of it.

The way to get around this is to remove such devices from the cache
and use the filter = [....] expression in /etc/lvm/lvm.conf

For me the solution was:

in /etc/lvm/lvm.conf:
filter = [ "r|/dev/cdrom|", "r|/dev/etherd/*|" ]
vgscan # to rebuild the cache (which devices should be scanned)
lvdisplay; vgdisplay; pvdisplay

works again as a excpected :)

hope you don't mind that I abuse the list as a note archive for this,
it took me 2 days before I remembered the config file since lvm "just
works"(tm) under normal circumstances



You are not free to read this message,
by doing so, you have violated my licence
and are required to urinate publicly. Thank you.

Reply to: