Re: bcache wont register cache and attempt to access beyond end of device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



no, there is necessary register the block device.
trying to register the cuid:

# bcache-super-show /dev/sdc | grep cset
cset.uuid               4ca0fbc9-d20b-4a3d-bbd1-38d9a5810c27

# echo '4ca0fbc9-d20b-4a3d-bbd1-38d9a5810c27' > /sys/fs/bcache/register

dmesg:
[ 6480.145903] bcache: register_bcache() error opening
4ca0fbc9-d20b-4a3d-bbd1-38d9a5810c27: failed to open device

2015-08-05 16:03 GMT+03:00 Killian De Volder <killian.de.volder@xxxxxxxxxxx>:
> If I am not mistaking you have to register the CUID of the chache device.
> Not the block device. (Or it has been fixed.)
>
> Killian De Volder
>
> On 05-08-15 14:52, Георгий Стариков wrote:
>> Hello,
>> bcache worked fine until i rebooted server. Now, bcache wont register
>> cache device. Backing registered successfully.
>> Is there a way to fix it?
>> Configuration was : cache - sdc, backing - md0 (md raid6)
>>
>> Details:
>>
>> # echo /dev/sdc > /sys/fs/bcache/register
>>
>> dmesg
>> [ 1004.580163] bcache: prio_read() bad csum reading priorities
>> [ 1004.580167] bcache: prio_read() bad magic reading priorities
>> [ 1004.580497] attempt to access beyond end of device
>> [ 1004.580499] sdc: rw=48, want=12989067124903043072, limit=468862128
>> [ 1004.580501] bcache: error on 4ca0fbc9-d20b-4a3d-bbd1-38d9a5810c27:
>> accessing priorities, disabling caching
>> [ 1004.582053] bcache: prio_read() bad csum reading priorities
>> [ 1004.582055] bcache: prio_read() bad magic reading priorities
>> [ 1004.582395] attempt to access beyond end of device
>> [ 1004.582397] sdc: rw=48, want=12989067124903043072, limit=468862128
>> [ 1004.583942] bcache: prio_read() bad csum reading priorities
>> [ 1004.583944] bcache: prio_read() bad magic reading priorities
>> [ 1004.584997] bcache: register_cache() registered cache device sdc
>> [ 1004.585504] bcache: cache_set_free() Cache set
>> 4ca0fbc9-d20b-4a3d-bbd1-38d9a5810c27 unregistered
>>
>> # bcache-super-show /dev/sdc
>> sb.magic                ok
>> sb.first_sector         8 [match]
>> sb.csum                 44826230D24195E8 [match]
>> sb.version              3 [cache device]
>>
>> dev.label               (empty)
>> dev.uuid                cd4241f5-1271-4a1a-a530-58d3ccc2f97e
>> dev.sectors_per_block   1
>> dev.sectors_per_bucket  1024
>> dev.cache.first_sector  1024
>> dev.cache.cache_sectors 468860928
>> dev.cache.total_sectors 468861952
>> dev.cache.ordered       yes
>> dev.cache.discard       yes
>> dev.cache.pos           0
>> dev.cache.replacement   0 [lru]
>>
>> cset.uuid               4ca0fbc9-d20b-4a3d-bbd1-38d9a5810c27
>>
>> # bcache-super-show /dev/md0
>> sb.magic                ok
>> sb.first_sector         8 [match]
>> sb.csum                 F3A7C3593D24C25A [match]
>> sb.version              1 [backing device]
>>
>> dev.label               (empty)
>> dev.uuid                80bdbcce-f1e1-4af9-a2bd-e4be24067fc5
>> dev.sectors_per_block   1
>> dev.sectors_per_bucket  1024
>> dev.data.first_sector   16
>> dev.data.cache_mode     1 [writeback]
>> dev.data.cache_state    1 [clean]
>>
>> cset.uuid               4ca0fbc9-d20b-4a3d-bbd1-38d9a5810c27
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-bcache" in
>> the body of a message to majordomo@xxxxxxxxxxxxxxx
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bcache" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-bcache" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM Kernel]     [Linux Filesystem Development]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux