Re: cant mount bcachefs

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

 



thank you! it's working!

2015-07-30 2:09 GMT+03:00 Ming Lin <mlin@xxxxxxxxxx>:
> On Wed, Jul 29, 2015 at 3:36 PM, Георгий Стариков <gstarikov@xxxxxxxxx> wrote:
>> there is no messages in dmesg in case of mount attempt.
>> after reboot dmesg contain many messages like this one:
>
> I just tried to boot old bcache device with bcachefs kernel and it locked too.
> If you just want to have a try bcachefs, you can do below to disable
> register the old bcache device.
>
> root@bee:/lib/udev/rules.d# ls *bcache*
> 69-bcache.rules
> root@bee:/lib/udev/rules.d# mv 69-bcache.rules 69-bcache.rules.bak
> root@bee:/lib/udev/rules.d# ls *bcache*
> 69-bcache.rules.bak
>
>
>> [Пт. июля 17 13:11:50 2015] INFO: task bcache-register:340 blocked for
>> more than 120 seconds.
>> [Пт. июля 17 13:11:50 2015]       Tainted: G            E   4.1.0+ #1
>> [Пт. июля 17 13:11:50 2015] "echo 0 >
>> /proc/sys/kernel/hung_task_timeout_secs" disables this message.
>> [Пт. июля 17 13:11:50 2015] bcache-register D ffff88005fa0fbf8     0
>> 340      1 0x00000004
>> [Пт. июля 17 13:11:50 2015]  ffff88005fa0fbf8 ffffffff81c14580
>> ffff88002d961420 ffff88005fa0fc28
>> [Пт. июля 17 13:11:50 2015]  ffff88005fa10000 ffffffffc02536a4
>> ffff88002d961420 00000000ffffffff
>> [Пт. июля 17 13:11:50 2015]  ffffffffc02536a8 ffff88005fa0fc18
>> ffffffff817d9367 ffff88006d260010
>> [Пт. июля 17 13:11:50 2015] Call Trace:
>> [Пт. июля 17 13:11:50 2015]  [<ffffffff817d9367>] schedule+0x37/0x90
>> [Пт. июля 17 13:11:50 2015]  [<ffffffff817d96fe>]
>> schedule_preempt_disabled+0xe/0x10
>> [Пт. июля 17 13:11:50 2015]  [<ffffffff817db4f5>]
>> __mutex_lock_slowpath+0x95/0x110
>> [Пт. июля 17 13:11:50 2015]  [<ffffffff817d5487>] ? printk+0x46/0x48
>> [Пт. июля 17 13:11:50 2015]  [<ffffffff817db593>] mutex_lock+0x23/0x40
>> [Пт. июля 17 13:11:50 2015]  [<ffffffffc01f70bc>]
>> bch_backing_dev_register+0x3ac/0x430 [bcache]
>> [Пт. июля 17 13:11:50 2015]  [<ffffffffc022d0e5>]
>> bch_register_one+0xf5/0x310 [bcache]
>> [Пт. июля 17 13:11:50 2015]  [<ffffffffc022d362>]
>> register_bcache+0x62/0xd0 [bcache]
>> [Пт. июля 17 13:11:50 2015]  [<ffffffff81278c57>] kernfs_fop_write+0x127/0x180
>> [Пт. июля 17 13:11:50 2015]  [<ffffffff811fc6f8>] __vfs_write+0x28/0xf0
>> [Пт. июля 17 13:11:50 2015]  [<ffffffff811ff3ac>] ? __sb_start_write+0x4c/0x100
>> [Пт. июля 17 13:11:50 2015]  [<ffffffff81322343>] ?
>> security_file_permission+0x23/0xa0
>> [Пт. июля 17 13:11:50 2015]  [<ffffffff811fce29>] vfs_write+0xa9/0x1b0
>> [Пт. июля 17 13:11:50 2015]  [<ffffffff811fdbf6>] SyS_write+0x46/0xb0
>> [Пт. июля 17 13:11:50 2015]  [<ffffffff81066f3f>] ? do_page_fault+0x2f/0x80
>> [Пт. июля 17 13:11:50 2015]  [<ffffffff817dd932>] system_call_fastpath+0x16/0x75
>>
>>
>> root@bcache:~# ps -ax | grep mount
>>   999 ?        D      0:00 mount /dev/sdb /test_bcachefs/
>>  1731 ?        S      0:00 strace -v mount /dev/sdd /test_bcachefs
>>  1734 ?        D      0:00 mount /dev/sdd /test_bcachefs
>>  1746 ?        S      0:00 strace -v -o bcache_mount_strace.txt mount
>> /dev/sdd /test_bcachefs
>>  1749 ?        D      0:00 mount /dev/sdd /test_bcachefs
>>  2062 ?        D      0:00 mount -t bcache /dev/sdd /test_bcachefs
>>  2197 pts/3    D+     0:00 mount /dev/sdd /test_bcachefs
>>
>> root@bcache:~# cat /proc/999/stack
>> [<ffffffffc0229f01>] read_super+0x2d1/0x420 [bcache]
>> [<ffffffffc022ce24>] bch_register_cache_set+0x104/0x2d0 [bcache]
>> [<ffffffffc02146b3>] bch_mount+0x123/0x330 [bcache]
>> [<ffffffff81200c78>] mount_fs+0x38/0x190
>> [<ffffffff8121d65b>] vfs_kern_mount+0x6b/0x120
>> [<ffffffff81220654>] do_mount+0x204/0xb60
>> [<ffffffff812212cb>] SyS_mount+0x8b/0xd0
>> [<ffffffff817dd932>] system_call_fastpath+0x16/0x75
>> [<ffffffffffffffff>] 0xffffffffffffffff
>>
>>
>> root@bcache:~# cat /proc/2197/stack
>> [<ffffffffc0229f01>] read_super+0x2d1/0x420 [bcache]
>> [<ffffffffc022ce24>] bch_register_cache_set+0x104/0x2d0 [bcache]
>> [<ffffffffc02146b3>] bch_mount+0x123/0x330 [bcache]
>> [<ffffffff81200c78>] mount_fs+0x38/0x190
>> [<ffffffff8121d65b>] vfs_kern_mount+0x6b/0x120
>> [<ffffffff81220654>] do_mount+0x204/0xb60
>> [<ffffffff812212cb>] SyS_mount+0x8b/0xd0
>> [<ffffffff817dd932>] system_call_fastpath+0x16/0x75
>> [<ffffffffffffffff>] 0xffffffffffffffff
>>
>> 2015-07-29 23:16 GMT+03:00 Ming Lin <mlin@xxxxxxxxxx>:
>>> On Wed, Jul 29, 2015 at 10:36 AM, Георгий Стариков <gstarikov@xxxxxxxxx> wrote:
>>>> Hello,
>>>> I followed instruction at http://bcache.evilpiepirate.org/ and it cant mount...
>>>> What I'm doing wrong?
>>>>
>>>>
>>>> I make:
>>>>
>>>> git clone -b bcache-dev http://evilpiepirate.org/git/linux-bcache.git
>>>> git clone -b dev http://evilpiepirate.org/git/bcache-tools.git
>>>>
>>>> cd bcache-tools/linux-bcache/
>>>> make oldconfig
>>>> make -j6 deb-pkg
>>>> make -j6 modules_install
>>>> make -j6 install
>>>> reboot
>>>>
>>>> wipefs -a /dev/sdd
>>>>
>>>> Then, just run
>>>>
>>>> bcacheadm format -C /dev/sdd
>>>> strace -v -o bcache_mount_strace.txt mount /dev/sdd /test_bcachefs
>>>>
>>>> and it hangup....
>>>
>>> Any message in dmesg?
>>>
>>> Could you do:
>>>
>>> cat  /proc/`pidof mount`/stack
>>>
>>>>
>>>> root@bcache:~# tail bcache_mount_strace.txt
>>>> geteuid()                               = 0
>>>> getgid()                                = 0
>>>> getegid()                               = 0
>>>> prctl(PR_GET_DUMPABLE)                  = 1
>>>> stat("/run", {st_dev=makedev(0, 18), st_ino=2625,
>>>> st_mode=S_IFDIR|0755, st_nlink=23, st_uid=0, st_gid=0,
>>>> st_blksize=4096, st_blocks=0, st_size=740,
>>>> st_atime=2015/07/17-13:07:47, st_mtime=2015/07/29-14:20:25,
>>>> st_ctime=2015/07/29-14:20:25}) = 0
>>>> lstat("/etc/mtab", {st_dev=makedev(8, 1), st_ino=131233,
>>>> st_mode=S_IFLNK|0777, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096,
>>>> st_blocks=0, st_size=12, st_atime=2015/07/29-06:40:34,
>>>> st_mtime=2015/07/12-10:40:12, st_ctime=2015/07/12-10:40:12}) = 0
>>>> lstat("/run/mount/utab", {st_dev=makedev(0, 18), st_ino=1968,
>>>> st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096,
>>>> st_blocks=0, st_size=0, st_atime=2015/07/17-13:10:49,
>>>> st_mtime=2015/07/17-13:10:49, st_ctime=2015/07/17-13:10:49}) = 0
>>>> open("/run/mount/utab", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 3
>>>> close(3)                                = 0
>>>> mount("/dev/sdd", "/test_bcachefs", "bcache", MS_MGC_VAL, NULL
--
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