Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attempt to access beyond end of device #53

Open
andrei-trybukhouski opened this issue Oct 10, 2019 · 3 comments
Open

attempt to access beyond end of device #53

andrei-trybukhouski opened this issue Oct 10, 2019 · 3 comments

Comments

@andrei-trybukhouski
Copy link

data corruption with new formatted partition
окт 09 22:26:26 homepc kernel: sdb5: rw=2049, want=3585370432, limit=102400000 окт 09 22:26:26 homepc kernel: attempt to access beyond end of device окт 09 22:26:26 homepc kernel: sdb5: rw=2049, want=3585373296, limit=102400000 окт 09 22:26:26 homepc kernel: io_callback: io error -5 block 1354872 action 4 prev_count 2 окт 09 22:26:26 homepc kernel: io_callback: io error -5 block 1368384 action 4 prev_count 1 окт 09 22:26:26 homepc kernel: EXT4-fs warning (device sdb5): ext4_end_bio:323: I/O error 10 writing to inode 657155 (offset 4096 size 83845 окт 09 22:26:26 homepc kernel: buffer_io_error: 1413 callbacks suppressed окт 09 22:26:26 homepc kernel: Buffer I/O error on device sdb5, logical block 169359 окт 09 22:26:26 homepc kernel: Buffer I/O error on device sdb5, logical block 169360 окт 09 22:26:26 homepc kernel: attempt to access beyond end of device
there is 16Gb ssd partition and 50Gb home partition. kernel 5.2 amd64
command eio_cli create -d /dev/sdb5 -s /dev/sda4 -p lru -m wt -c sdb5_cache
behavior is the same with wt or with ro.
in the upstream it seems that similar error was fixed.

@lanconnected
Copy link
Owner

Could you please provide #parted -l /dev/sdb and #cat /proc/enhanceio/sdb5_cache/config? Thanks.

@andrei-trybukhouski
Copy link
Author

I migrated to bcache, but it works noticeably worse. I will try now to reproduce the problem again at a new partition

@andrei-trybukhouski
Copy link
Author

homepc cache0 # eio_cli create -d /dev/sdc3 -s /dev/sdd1 -p lru -m wt -c sdc3_cache 
Cache Name       : sdc3_cache
Source Device    : /dev/sdc3
SSD Device       : /dev/sdd1
Policy           : lru
Mode             : Write Through
Block Size       : 4096
Associativity    : 256
ENV{ID_SERIAL}=="Hitachi_HDS721050DLE630_MSK4215H12YV3G", ATTR{partition}=="3"
ENV{ID_SERIAL}=="SSD_16G_AA180315000003084962", ATTR{partition}=="1"
Cache created successfully

[ 8350.789997] enhanceio_lru: eio_lru_instance_init: created new instance of LRU
[ 8350.789998] enhanceio: Setting replacement policy to lru (2)
[ 8350.790425] Not enough sets to use small metadata
[ 8350.790437] enhanceio: Allocate 30086KB (8B per) mem for 3851008-entry cache (capacity:15101MB, associativity:256, block size:4096 bytes)

 copied firefox profile and rebooted = data corrupted

`  34.100728] EXT4-fs (sdd1): recovery complete
[   34.111625] EXT4-fs (sdd1): mounted filesystem with ordered data mode. Opts: (null)
[   38.424073] EXT4-fs (sdd3): mounted filesystem with ordered data mode. Opts: (null)
[  107.884218] attempt to access beyond end of device
[  107.884223] sdd3: rw=524288, want=904109888, limit=819521536
[  107.896467] io_callback: io error -5 block 746855744 action 3 prev_count 0
[  199.265361] attempt to access beyond end of device
[  199.265370] sdd3: rw=1, want=944671984, limit=819521536
[  199.267912] io_callback: io error -5 block 787417600 action 4 prev_count 1
[  199.304742] io_callback: io error -5 block 630163456 action 4 prev_count 1
[  199.304876] io_callback: io error -5 block 472909312 action 4 prev_count 2
[  199.305066] io_callback: io error -5 block 315655168 action 4 prev_count 3
[  199.305311] io_callback: io error -5 block 158401024 action 4 prev_count 4
[  199.305598] io_callback: io error -5 block 1146880 action 4 prev_count 5
[  199.305966] EXT4-fs warning (device sdd3): ext4_end_bio:323: I/O error 10 writing to inode 23332290 (offset 0 size 8388608 starting block 143360)
`
`Модель: ATA SSD 16G (scsi)
Диск /dev/sdc: 15.8GB
Размер сектора (логич./физич.): 512B/512B
Таблица разделов: msdos
Флаги диска: 

Номер  Начало  Конец   Размер  Тип      Файловая система  Флаги
 1     1049kB  15.8GB  15.8GB  primary


Модель: ATA Hitachi HDS72105 (scsi)
Диск /dev/sdd: 500GB
Размер сектора (логич./физич.): 512B/4096B
Таблица разделов: msdos
Флаги диска: 

Номер  Начало  Конец   Размер  Тип      Файловая система  Флаги
 2     30.0GB  38.0GB  8000MB  primary  linux-swap(v1)
 1     38.0GB  80.5GB  42.5GB  primary  ext4              загрузочный
 3     80.5GB  500GB   420GB   primary  ext4
`
`homepc ~ # cat /proc/enhanceio/sdc3_cache/config 
src_name   /dev/sdd3
ssd_name   /dev/sdc1
src_size   819521536
ssd_size   3851008
set_size          256
block_size       4096
mode                3
eviction            2
num_sets        15043
num_blocks    3851008
metadata        large
state        normal
flags      0x00000020
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants