* [linux-lvm] Invalid new snapshot
@ 2005-12-14 3:37 Lee Rocky
2005-12-14 14:51 ` Alasdair G Kergon
0 siblings, 1 reply; 4+ messages in thread
From: Lee Rocky @ 2005-12-14 3:37 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 1103 bytes --]
Dear All
when I try to create multi snapshot volumes, sometimes the new snapshot
volume will be marked Invalid after created, somtimes remove then recreate
without problem.
is it hard disk problem?
dmesg error
attempt to access beyond end of device
dm-9: rw=17, want=2271285024, limit=8257536
device-mapper: Error reading/writing snapshot
device-mapper: snapshot is marked invalid
printk: 1 messages suppressed.
Buffer I/O error on device dm-10, logical block 0
Buffer I/O error on device dm-10, logical block 1
Buffer I/O error on device dm-10, logical block 2
Buffer I/O error on device dm-10, logical block 3
Buffer I/O error on device dm-10, logical block 4
Buffer I/O error on device dm-10, logical block 5
Buffer I/O error on device dm-10, logical block 6
Buffer I/O error on device dm-10, logical block 7
Buffer I/O error on device dm-10, logical block 0
Buffer I/O error on device dm-10, logical block 8
FAT: Unrecognized mount option "nouuid" or missing value
lvscan
/dev/VG01/test1: read failed after 0 of 4096 at 0: Input/output error
best regards
Rocky
[-- Attachment #2: Type: text/html, Size: 1241 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] Invalid new snapshot
2005-12-14 3:37 [linux-lvm] Invalid new snapshot Lee Rocky
@ 2005-12-14 14:51 ` Alasdair G Kergon
2005-12-15 3:02 ` Lee Rocky
0 siblings, 1 reply; 4+ messages in thread
From: Alasdair G Kergon @ 2005-12-14 14:51 UTC (permalink / raw)
To: LVM general discussion and development
On Wed, Dec 14, 2005 at 11:37:22AM +0800, Lee Rocky wrote:
> when I try to create multi snapshot volumes, sometimes the new snapshot
> volume will be marked Invalid after created, somtimes remove then recreate
> without problem.
> dmesg error
> attempt to access beyond end of device
> dm-9: rw=17, want=2271285024, limit=8257536
> device-mapper: Error reading/writing snapshot
> device-mapper: snapshot is marked invalid
What kernel?
What software version?
(e.g. output of 'lvm version')
What lvcreate -s command parameters? (After how many existing snapshots?)
What configuration of original LV?
('lvs --segments -v')
Any I/O happening to any of the devices involved at around the same time?
Alasdair
--
agk@redhat.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] Invalid new snapshot
2005-12-14 14:51 ` Alasdair G Kergon
@ 2005-12-15 3:02 ` Lee Rocky
2005-12-15 6:19 ` Lee Rocky
0 siblings, 1 reply; 4+ messages in thread
From: Lee Rocky @ 2005-12-15 3:02 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 4662 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 7546 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] Invalid new snapshot
2005-12-15 3:02 ` Lee Rocky
@ 2005-12-15 6:19 ` Lee Rocky
0 siblings, 0 replies; 4+ messages in thread
From: Lee Rocky @ 2005-12-15 6:19 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 269 bytes --]
if volume with jounal file system (xfs,ext3) is mounted (no I/O)
the invalid error sometime happens when create snapshot. (sometimes but easy
to reproduce)
create snapshot has no invalid error if volume is not mounted.
hope this information helps.
Rocky
[-- Attachment #2: Type: text/html, Size: 327 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-12-15 6:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-14 3:37 [linux-lvm] Invalid new snapshot Lee Rocky
2005-12-14 14:51 ` Alasdair G Kergon
2005-12-15 3:02 ` Lee Rocky
2005-12-15 6:19 ` Lee Rocky
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).