[linux-lvm] Invalid new snapshot

Lee Rocky rocky366 at gmail.com
Thu Dec 15 03:02:26 UTC 2005


Kernel =>  2.6.13 (dm-snapshot-bio_list-fix.patch patched)

lvm version =>
  LVM version:     2.02.01 (2005-11-23)
  Library version: 1.02.02 (2005-12-02)
  Driver version:  4.4.0

-bash-3.00# lvcreate -s -L3000 -n test2_1 /dev/VG01/test2
  Rounding up size to full physical extent 2.94 GB
  Logical volume "test2_1" created
-bash-3.00# lvcreate -s -L 3000 -n test2_2 /dev/VG01/test2
  Rounding up size to full physical extent 2.94 GB
  Logical volume "test2_2" created
-bash-3.00# lvcreate -s -L 3000 -n test2_3 /dev/VG01/test2
  Rounding up size to full physical extent 2.94 GB
  Logical volume "test2_3" created


lvs --segment -v
----------------------------------------------------------
    Finding all logical volumes
  /dev/VG01/test2_3: read failed after 0 of 4096 at 0: Input/output error
  LV      VG                       Attr   Start SSize   #Str Type   Stripe
Chunk
  lv1      VG01 -wi-ao    0  256.00M    1 linear     0     0
  lv2      VG01 -wi-ao    0    1.00G    1 linear     0     0
  lv3      VG01 -wi-a-    0   64.00M    1 linear     0     0
  lv4      VG01 -wi-ao    0  512.00M    1 linear     0     0
  lv5      VG01 -wi-ao    0  128.00M    1 linear     0     0
  test2   VG01owi-ao    0   29.31G    1 linear     0     0
  test2_1 VG01 swi-a-    0    2.94G    1 linear     0  8.00K
  test2_2 VG01 swi-a-    0    2.94G    1 linear     0  8.00K
  test2_3 VG01 Swi-I-    0    2.94G    1 linear     0  8.00K


-bash-3.00# lvs -a
  /dev/VG01/test2_3: read failed after 0 of 4096 at 0: Inpu/output error
  LV      VG      Attr   LSize   Origin Snap%  Move Log Copy%
  lv1       VG01  -wi-ao 256.00M
  lv2       VG01  -wi-ao   1.00G
  lv3       VG01  -wi-a-  64.00M
  lv4       VG01  -wi-ao 512.00M
  lv5       VG01  -wi-ao 128.00M
  test2   VG01 owi-ao  29.31G
  test2_1 VG01 swi-a-   2.94G test2   30.00
  test2_2 VG01 swi-a-   2.94G test2   29.99
  test2_3 VG01 Swi-I-   2.94G test2  100.00

 lvscan
----------------------------------------------------------
  /dev/VG01/test2_3: read failed after 0 of 4096 at 0: Input/output error
  ACTIVE                '/dev/VG01/lv1' [256.00 MB] inherit
  ACTIVE                '/dev/VG01/lv2' [1.00 GB] inherit
  ACTIVE                '/dev/VG01/lv3' [64.00 MB] inherit
  ACTIVE                '/dev/VG01/lv4' [512.00 MB] inherit
  ACTIVE                '/dev/VG01lv5' [128.00 MB] inherit
  ACTIVE   Original '/dev/VG01/test2' [29.31 GB] inherit
  ACTIVE   Snapshot '/dev/VG01/test2_1' [2.94 GB] inherit
  ACTIVE   Snapshot '/dev/VG01/test2_2' [2.94 GB] inherit
  ACTIVE   Snapshot '/dev/VG01/test2_3' [2.94 GB] inherit

dmesg after created
----------------------------------------------------------
attempt to access beyond end of device
dm-11: rw=17, want=2271285024, limit=6160384
device-mapper: Error reading/writing snapshot
device-mapper: snapshot is marked invalid

dmesg after tried to mount
----------------------------------------------------------
printk: 1 messages suppressed.
Buffer I/O error on device dm-12, logical block 0
Buffer I/O error on device dm-12, logical block 1
Buffer I/O error on device dm-12, logical block 2
Buffer I/O error on device dm-12, logical block 3
Buffer I/O error on device dm-12, logical block 4
Buffer I/O error on device dm-12, logical block 5
Buffer I/O error on device dm-12, logical block 6
Buffer I/O error on device dm-12, logical block 7
Buffer I/O error on device dm-12, logical block 0
Buffer I/O error on device dm-12, logical block 8
FAT: Unrecognized mount option "nouuid" or missing value


I create snapshot while test2 is busy. (I/O origin volume)
but even I stopped writing data (already got error), sometime it still
happen. 1 out of 3
-bash-3.00# lvs -a
  /dev/VG01/test2_4: read failed after 0 of 4096 at 0: Input/output error
  /dev/VG01/test2_7: read failed after 0 of 4096 at 0: Input/output error
  /dev/VG01/test2_10: read failed after 0 of 4096 at 0: Input/output error
  lv1        VG01 -wi-ao 256.00M
  lv2        VG01 -wi-ao   1.00G
  lv3        VG01 -wi-a-  64.00M
  lv4        VG01 -wi-ao 512.00M
  lv5        VG01 -wi-ao 128.00M
  test2     VG01 owi-ao  29.31G
  test2_1  VG01 swi-a-   2.94G test2   38.28
  test2_10 VG01 Swi-I-   2.94G test2  100.00
  test2_2  VG01 swi-a-   2.94G test2   38.27
  test2_3  VG01 swi-a-   2.94G test2    0.01
  test2_4  VG01 Swi-I-   2.94G test2  100.00
  test2_5  VG01 swi-a-   2.94G test2    0.00
  test2_6  VG01 swi-a-   2.94G test2    0.00
  test2_7  VG01 Swi-I-   2.94G test2  100.00
  test2_8  VG01 swi-a-   2.94G test2    0.00
  test2_9  VG01 swi-a-   2.94G test2    0.00

Rocky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20051215/684d9a79/attachment.htm>


More information about the linux-lvm mailing list