I've just come across a bug in lvm tools when not using /proc/partitions. lvm_add_dir_cache adds an entry, but checks for duplicates with lvm_dir_cache_hit. The problem is simple: lrwxrwxrwx 1 root root 9 May 8 1999 /dev/cdrom -> /dev/hdd If you have that symbolic link around, it will show up in the cache as /dev/cdrom, so if you try to pvcreate /dev/hdd, /dev/hdd never makes it into the cache. Either the duplicate mechanism should be taken out, or ignore symlinks and have things that check the cache dereference the symlinks... -- Ryan Murray, (rmurray cyberhqz com, rmurray stormix com) Programmer, Stormix Technologies Inc. The opinions expressed here are my own.
Attachment:
pgp00004.pgp
Description: PGP signature