confusing error message from lvm2
I'm confused about an error message I'm seeing from LVM2. The message is:
+ /usr/bin/sudo /sbin/vgs --noheadings --units g --nosuffix --separator : -o name,size,free,extent_size,extent_count,free_count,max_lv,lv_count,snap_count v4c Path /dev/ACTION=_change_ no longer valid for device(252,7)
Path /dev/DEVTYPE=_disk_ no longer valid for device(252,7)
Path /dev/PWD=_/_ no longer valid for device(252,7)
Path /dev/DM_STATE_ACTIVE=_1_ no longer valid for device(252,7)
v4c:8.00:4.00:0.00:2047:1023:0:4:2
I'll attach a copy of a script that exhibits the problem consistently and in only a few seconds. The script presupposes that a volume group named "v4c" exists. Mine is 8G and is located on a physical disk. (Well, really a vmware virtual disk, but I doubt that the kernel running in the virtual machine really cares.)
I'm seeing this on amd64 ubuntu-9.10 updated current as of this posting.
Can anyone explain to me what this means or why I'm getting it?
--rich
#!/bin/sh
### This script presumes that a volume group named "v4c" exists. Mine is 8G.
set -x
/usr/bin/sudo /sbin/lvremove -f v4c/usr/bin/sudo /sbin/lvremove -f v4c/usr/bin/sudo /sbin/lvremove -f v4c/usr/bin/sudo /sbin/lvs --noheadings --units g --nosuffix --separator : -o name,origin,size,snap_percent,copy_percent v4c /usr/bin/sudo /sbin/lvcreate --size 1.0g --name lv-test.0 v4c/usr/bin/sudo /sbin/mkfs -t ext4 -L lv-test.0 /dev/v4c/lv-test.0/usr/bin/sudo /sbin/tune2fs -c 0 /dev/v4c/lv-test.0/usr/bin/sudo /sbin/vgs --noheadings --units g --nosuffix --separator : -o name,size,free,extent_size,extent_count,free_count,max_lv,lv_count,snap_count v4c /usr/bin/sudo /sbin/lvs --noheadings --units g --nosuffix --separator : -o name,origin,size,snap_percent,copy_percent v4c /usr/bin/sudo /sbin/lvcreate --snapshot --size 1.0g --name ss-test.0.0 v4c/lv-test.0/usr/bin/sudo /sbin/vgs --noheadings --units g --nosuffix --separator : -o name,size,free,extent_size,extent_count,free_count,max_lv,lv_count,snap_count v4c /usr/bin/sudo /sbin/lvs --noheadings --units g --nosuffix --separator : -o name,origin,size,snap_percent,copy_percent v4c /usr/bin/sudo /sbin/lvremove -f v4c/ss-test.0.0/usr/bin/sudo /sbin/vgs --noheadings --units g --nosuffix --separator : -o name,size,free,extent_size,extent_count,free_count,max_lv,lv_count,snap_count v4c /usr/bin/sudo /sbin/lvs --noheadings --units g --nosuffix --separator : -o name,origin,size,snap_percent,copy_percent v4c /usr/bin/sudo /sbin/lvcreate --snapshot --size 1.0g --name ss-test.0.1 v4c/lv-test.0/usr/bin/sudo /sbin/vgs --noheadings --units g --nosuffix --separator : -o name,size,free,extent_size,extent_count,free_count,max_lv,lv_count,snap_count v4c /usr/bin/sudo /sbin/lvs --noheadings --units g --nosuffix --separator : -o name,origin,size,snap_percent,copy_percent v4c /usr/bin/sudo /sbin/lvremove -f v4c/ss-test.0.1/usr/bin/sudo /sbin/vgs --noheadings --units g --nosuffix --separator : -o name,size,free,extent_size,extent_count,free_count,max_lv,lv_count,snap_count v4c /usr/bin/sudo /sbin/lvs --noheadings --units g --nosuffix --separator : -o name,origin,size,snap_percent,copy_percent v4c /usr/bin/sudo /sbin/lvremove -f v4c/lv-test.0/usr/bin/sudo /sbin/vgs --noheadings --units g --nosuffix --separator : -o name,size,free,extent_size,extent_count,free_count,max_lv,lv_count,snap_count v4c /usr/bin/sudo /sbin/lvs --noheadings --units g --nosuffix --separator : -o name,origin,size,snap_percent,copy_percent v4c /usr/bin/sudo /sbin/lvcreate --size 1.0g --name lv-test.1 v4c/usr/bin/sudo /sbin/mkfs -t ext4 -L lv-test.1 /dev/v4c/lv-test.1/usr/bin/sudo /sbin/tune2fs -c 0 /dev/v4c/lv-test.1/usr/bin/sudo /sbin/vgs --noheadings --units g --nosuffix --separator : -o name,size,free,extent_size,extent_count,free_count,max_lv,lv_count,snap_count v4c /usr/bin/sudo /sbin/lvs --noheadings --units g --nosuffix --separator : -o name,origin,size,snap_percent,copy_percent v4c /usr/bin/sudo /sbin/lvcreate --snapshot --size 1.0g --name ss-test.1.0 v4c/lv-test.1/usr/bin/sudo /sbin/vgs --noheadings --units g --nosuffix --separator : -o name,size,free,extent_size,extent_count,free_count,max_lv,lv_count,snap_count v4c
Quoted 1 line · K. Richard Pixley
Path /dev/ACTION=_change_ no longer valid for
device(252,7)
Have you customised any udev rules?
Monitor /dev carefully and investigate where those entries are coming from.
Aladsair
Quoted 7 lines · Alasdair G Kergon
Quoted 2 lines · K. Richard Pixley
Path /dev/ACTION=_change_ no longer valid for
device(252,7)Have you customised any udev rules?
No.
Quoted 1 line
Monitor /dev carefully and investigate where those entries are coming from.
You've lost me. What entries? lvm?
--rich
Quoted 4 lines · K. Richard Pixley
Quoted 2 lines · Alasdair G Kergon
Quoted 1 line · K. Richard Pixley
Path /dev/ACTION=_change_ no longer valid for
device(252,7)You've lost me. What entries? lvm?
ls /dev
Alasdair