On 22/11/11 05:31, Justin Rush wrote:
I am running into the same issue with LVM, using the entire raid device, and 
using a single plain disk... I must be doing something wrong here.

You are.

  ~ # pvcreate /dev/md127
   Physical volume "/dev/md127" successfully created

~ # vgcreate vg_500s_bcache /dev/md127
   Volume group "vg_500s_bcache" successfully created

~ # lvcreate -L50G -nlv_bcache_test vg_500s_bcache
   Logical volume "lv_bcache_test" created

  ~ # make-bcache -B /dev/vg_500s_bcache/lv_bcache_test
UUID:                   0847db15-4d6b-4271-a052-4338752a704f
Set UUID:               06fa14ab-cbbe-4e10-ac5c-f48f92ffea39
nbuckets:               102400
block_size:             8
bucket_size:            1024
nr_in_set:              1
nr_this_dev:            0
first_bucket:           1

  ~ # echo /dev/vg_500s_bcache/lv_bcache_test>/sys/fs/bcache/register
  ~ # echo /dev/sdk1>/sys/fs/bcache/register

~ # echo "d5cadc1d-0fb6-4be5-bb32-f649c540c03d">/sys/block/bcache0/bcache/attach
-bash: echo: write error: No such file or directory


You are trying to attach a cache device directly to a backing device. That won't work.

When you register the devices, do :
ls /sys/fs/bcache/

You will see a directory name in there. That is the UUID of the "cache-set" you need to attach to your backing device. It is different from the cache device itself.

Regards,
Brad
--
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

Reply via email to