Skip to contentSkip to conversation

Adding net cache device to existing bcache

DISCUSSION Vlad 2 participants 3 messages Dec 18, 2013 bcache (block layer cache)

lore
Share & tools
lore

Vlad

author
#0 lore raw

Hello,

I'm trying to add new cache device to an existing bcache, but unsuccessfully... I thought it should as simple as formating the new cache device (make-bcache) and then attaching it to an existing bcache device. However, this procedure won't work.
Is there any useful howto or another info about this subject.

Regards,
Vlad.

#1 lore raw

Can you list the commands you were using?

Quoted 14 lines · Vlad

Hello,

I'm trying to add new cache device to an existing bcache, but unsuccessfully... I thought it should as simple as formating the new cache device (make-bcache) and then attaching it to an existing bcache device. However, this procedure won't work.
Is there any useful howto or another info about this subject.

Regards,
Vlad.
--
To unsubscribe from this list: send the line "unsubscribe linux-bcache" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#2 lore raw

After I issue "make-bcache --cache /dev/sdf3" instantly the new bcache without backing device is registered. This could be fixed by echoing to /sys/fs/bcache/<NEW_DEV_UUID>/stop. But I still can't attach the new device by doing "echo UUID >/sys/block/bcache0/bcache/attach". I've tried to use "make-bcache --cset-uuid <EXISTING_UUID> --cache --wipe-bcache /dev/sdf3", but kernel complains that the device already exists.

Regards,
Vlad.

Quoted 17 lines · Kent Overstreet

Can you list the commands you were using?

Quoted 14 lines · Vlad

Hello,

I'm trying to add new cache device to an existing bcache, but unsuccessfully... I thought it should as simple as formating the new cache device (make-bcache) and then attaching it to an existing bcache device. However, this procedure won't work.
Is there any useful howto or another info about this subject.

Regards,
Vlad.
--
To unsubscribe from this list: send the line "unsubscribe linux-bcache" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html