linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] confusing error message from lvm2
@ 2010-04-02 20:29 K. Richard Pixley
  2010-04-03 14:29 ` Alasdair G Kergon
  0 siblings, 1 reply; 4+ messages in thread
From: K. Richard Pixley @ 2010-04-02 20:29 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 990 bytes --]

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

[-- Attachment #2: fail.sh --]
[-- Type: text/plain, Size: 3193 bytes --]

#!/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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-04-05 11:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-02 20:29 [linux-lvm] confusing error message from lvm2 K. Richard Pixley
2010-04-03 14:29 ` Alasdair G Kergon
2010-04-04 22:28   ` K. Richard Pixley
2010-04-05 11:40     ` Alasdair G Kergon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).