Linux 2.4.20 devmapper + userland utilities issue
First, thanks for the work on devmapper, LVM, and whatnot. Can't say as I use it yet, but I hope to ;)
Right, anyhoo. I'd like to sub-partition a Linux MD device. Obviously it can contain a partition table, but there's no way for me to reference its segments. Enter devmapper.
Attached is the entire log, from creation of the MD device to the error I get with 'lvcreate'. In short, 'lvcreate -L400M -n src willow-1' works fine if it isn't "on top of" my Linux MD array; I get the following error:
Aborting. Failed to wipe snapshot exception store. Remove new LV and
retry.
Hopefully the log isn't too much. :) I ran the problem by Patrick Caulfield in #lvm on irc.openprojects.net, he and I went through some basic debugging (nothing I hadn't done, but just double-checking). Nothing obvious was apparent.
Thanks again, and please feel free to ask for more information, if you need it.
Quoted 2 lines · David B Harris
Aborting. Failed to wipe snapshot exception store. Remove new LV and
retry.
I've glanced at the code and the error message here is misleading: I'll change it.
The error occurred when it was trying to use device-mapper to activate the new LV for the first time. (The LV already exists in the VG metadata at this point.)
Quoted 1 line
Hopefully the log isn't too much. :)
I can't see it - please email the full debug log(*) from the lvcreate directly to me and I'll investigate on Monday.
Also send the version numbers:
lvcreate --version
Alasdair
Signature · 9 lines
[email protected] (*) e.g. run with -vvv and capture all output incl. stderr, or use following config file section and send /tmp/lvm2.log log { file="/tmp/lvm2.log" level=6 }
Quoted 2 lines · Alasdair Kergon
please email the full debug
log(*)from the lvcreate directly to me and I'll investigate on Monday.
For the record, the problem was LVM2 with new-format metadata seeing the same PV on both /dev/md1 and /dev/hda6. The fix was to add a filter line to the config file to tell LVM2 only to look at md1. LVM2 with old-format metadata handles the situation OK without the filter line (displays a warning message) and I've changed LVM2 with new-format metadata to do the same - will go into CVS shortly.
Alasdair
Signature · 1 line
[email protected]
Quoted 6 lines · Alasdair Kergon
For the record, the problem was LVM2 with new-format metadata seeing the same PV on both
/dev/md1and/dev/hda6. The fix was to add a filter line to the config file to tell LVM2 only to look at md1. LVM2 with old-format metadata handles the situation OK without the filter line (displays a warning message) and I've changed LVM2 with new-format metadata to do the same - will go into CVS shortly.
This and some other recent minor modifications are included in
ftp://ftp.sistina.com/pub/LVM2/tools/LVM2.1.95.13.tgz
(generated from today's CVS HEAD).
* When activating an LV, remove any stray LVM1 /dev nodes and group file.
* Also lock memory during LV updates.
* When there are device name aliases, choose the "nicest" to display.
* Correct error message for non-snapshot activation failure.
* More docn for filter changes.
* Ignore filter cache at startup if config file is newer than cache.
* Detect duplicate PV uuids with new metadata format - select the one on an md device if appropriate.
* Default stripesize 64k & config file setting for it
* Clear many compiler warnings (i386) & associated bugs - hopefully without introducing too many new bugs:-)
* Default compilation has optimisation - or else use ./configure --enable-debug
Alasdair
Signature · 1 line
[email protected]