I'm also seeing this bug when removing snapshot LVs in my backup script, although I'd be tempted to reassign it to lvm2. It looks like there's actually a race going on between lvm and udev. If I stick sleeps in between the lvremove calls, the problem doesn't appear. I think that subsequent lvremove calls are getting the list of available LVs before udev has dealt with the previous lvremove. It's then trying to access the LV device AFTER udev has dealt with it, causing the error messages.
On my system, the following LVs were present before my script ran: LV VG Attr LSize Origin Snap% Move Log Copy% Convert backup-home vg swi-ao 4.00G home 2.10 backup-root vg swi-ao 4.00G root 2.68 backup-srv vg swi-ao 4.00G srv 0.01 backup-usr vg swi-ao 4.00G usr 0.97 backup-var vg swi-ao 4.00G var 7.48 home vg owi-ao 30.00G root vg owi-ao 2.00G srv vg owi-ao 10.00G swap vg -wi-ao 4.00G tmp vg -wi-ao 1.00G usr vg owi-ao 4.00G var vg owi-ao 20.00G And the following errors are generated by my 'finish-backup' script, I've annotated the commands that are running with '##': ## lvremove backup-root Logical volume "backup-root" successfully removed ## lvremove backup-home /dev/dm-8: stat failed: No such file or directory Path /dev/dm-8 no longer valid for device(253,8) /dev/disk/by-id/dm-name-vg-root-real: stat failed: No such file or directory Path /dev/disk/by-id/dm-name-vg-root-real no longer valid for device(253,8) /dev/disk/by-id/dm-uuid-LVM-gIMf6wdSW3u7EiJzFuCMFjPvlTQFh1EvioOfezFOq2IX1i5SqrswIvj3sJJBf8Os-real: stat failed: No such file or directory Path /dev/disk/by-id/dm-uuid-LVM-gIMf6wdSW3u7EiJzFuCMFjPvlTQFh1EvioOfezFOq2IX1i5SqrswIvj3sJJBf8Os-real no longer valid for device(253,8) Logical volume "backup-home" successfully removed ## lvremove backup-usr /dev/dm-11: stat failed: No such file or directory Path /dev/dm-11 no longer valid for device(253,11) /dev/disk/by-id/dm-name-vg-home-real: stat failed: No such file or directory Path /dev/disk/by-id/dm-name-vg-home-real no longer valid for device(253,11) /dev/disk/by-id/dm-uuid-LVM-gIMf6wdSW3u7EiJzFuCMFjPvlTQFh1EvCcfSZdt4ZXmZnN4gkrGgdYN3M1gm4kBi-real: stat failed: No such file or directory Path /dev/disk/by-id/dm-uuid-LVM-gIMf6wdSW3u7EiJzFuCMFjPvlTQFh1EvCcfSZdt4ZXmZnN4gkrGgdYN3M1gm4kBi-real no longer valid for device(253,11) Logical volume "backup-usr" successfully removed ## lvremove backup-var Logical volume "backup-var" successfully removed ## lvremove backup-srv /dev/dm-17: stat failed: No such file or directory Path /dev/dm-17 no longer valid for device(253,17) /dev/disk/by-id/dm-name-vg-var-real: stat failed: No such file or directory Path /dev/disk/by-id/dm-name-vg-var-real no longer valid for device(253,17) /dev/disk/by-id/dm-uuid-LVM-gIMf6wdSW3u7EiJzFuCMFjPvlTQFh1EvwUfn5ka1vT9tOKOJmMnMwAGPPKDB383y-real: stat failed: No such file or directory Path /dev/disk/by-id/dm-uuid-LVM-gIMf6wdSW3u7EiJzFuCMFjPvlTQFh1EvwUfn5ka1vT9tOKOJmMnMwAGPPKDB383y-real no longer valid for device(253,17) Logical volume "backup-srv" successfully removed -- Chris Butler <[email protected]> GnuPG Key ID: 1024D/D097A261 -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

