[arch-general] Device or ressource busy
arnaud gaboury
arnaud.gaboury at gmail.com
Fri Apr 10 13:17:26 UTC 2015
On Fri, Apr 10, 2015 at 2:58 PM, arnaud gaboury
<arnaud.gaboury at gmail.com> wrote:
> On Fri, Apr 10, 2015 at 2:38 PM, arnaud gaboury
> <arnaud.gaboury at gmail.com> wrote:
>> Below is part of $ lsblk return:
>>
>> -----------------------------------------
>> sdb sdb 8:16
>> ├─sdb1 sdb1 8:17 btrfs poppy-root
>> └─sdb2 sdb2 8:18
>> --------------------------------------------------
>>
>> /dev/sdb2 has no filesystem yet, and is not mounted anywhere.
>>
>> Now running this command:
>> ------------------------------------------------------
>> # make-bcache --block 4k --bucket 2M -B /dev/sdd4 -C /dev/sdb2 --discard
>> Can't open dev /dev/sdb2: Device or resource busy
>> -----------------------------------------------------------
>>
>> I can't find any reason for /dev/sdb2 to be busy.
>
> looking more carefully in /dev, I couldn't find any mapper or loop
> device be the culprite
> Running # mount | column -t did not show the device anywhere
-------------------------------------------------------
$ journalctl -k
..............................
Apr 10 14:18:32 hortensia kernel: bcache: register_cache() registered
cache device sdb2
................................................
# echo 1 > /sys/fs/bcache/2f01de58-8645-44e6-820e-13d6580b8d5b/stop
# make-bcache --block 4k --bucket 2M -B /dev/sdd4 -C /dev/sdb2 --discard
UUID: c205843b-127a-46e4-81d6-cee3dc6c587e
Set UUID: 02afb25f-d9a4-47f3-9a0c-b84f071dfff6
version: 0
nbuckets: 13891
block_size: 8
bucket_size: 4096
nr_in_set: 1
nr_this_dev: 0
first_bucket: 1
UUID: 91771811-4f40-4e67-b2df-7baf0df3229a
Set UUID: 02afb25f-d9a4-47f3-9a0c-b84f071dfff6
version: 1
block_size: 8
data_offset: 16
$ lsblk
└─sdb2 sdb2 8:18 bcache
└─bcache0 bcache0 254:0
.........................................................
└─sdd4 sdd4 8:52 bcache
└─bcache0 bcache0 254:0
--------------------------------------------------------------------
Thank you journalctl.
Everything is under control
>
>>
>> Thank you for hint.
>>
>> --
>>
>> google.com/+arnaudgabourygabx
>
>
>
> --
>
> google.com/+arnaudgabourygabx
--
google.com/+arnaudgabourygabx
More information about the arch-general
mailing list