* Possible bug? bcache: error opening /dev/md126: Not enough buckets
@ 2013-06-14 5:34 John Clark
[not found] ` <CABBemb1tZhTC3SreiGHSB4t7GyfMsyhfA4yPYPk8s8u7iOycLw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: John Clark @ 2013-06-14 5:34 UTC (permalink / raw)
To: linux-bcache-u79uwXL29TY76Z2rM5mHXA
Hi there,
I'm new to kernel mailing lists so beg your pardon if I'm asking this
question in the wrong place or in the wrong way.
Anyway, I'm tantalisingly close to getting my bcache-enabled system
up-and-running, but I've hit a brick wall which seems might be a bug
or undocumented performance limit of some kind. I'm hoping Kent or
others on this fine list can help.
I have successfully created the following two RAID1 block devices, as
shown per /proc/mdstat:
Personalities : [raid1]
md126 : active raid1 sdb[0] sdc[1]
1953383360 blocks super 1.2 [2/2] [UU]
md127 : active raid1 sdd[0] sde[1]
117155200 blocks super 1.2 [2/2] [UU]
/dev/md126 comprises two 2.0TB spinning HDD's which I'm intending to
use as a bcache backing device
/dev/md127 comprises two 60GB SSD's which I'm intending to use as a
bcache cache device
So far so good.
Creating the bcache superblock on the md127 appears to go smoothly:
root@bigdata:~# make-bcache -C /dev/md127
UUID: 1736b20f-6b85-4fee-a801-4cf7c1bba009
Set UUID: b2c9e8e2-0606-4d51-bf9a-e9b8a6f150b3
version: 0
nbuckets: 228818
block_size: 8
bucket_size: 1024
nr_in_set: 1
nr_this_dev: 0
first_bucket: 1
Creating the bcache superblock on md126 *appears* to succeed also:
root@bigdata:~# make-bcache -B /dev/md/spinning
UUID: 9e2bd59a-a413-4ad2-a07b-6998dfa3e049
Set UUID: 8c70baad-6941-4550-9fc8-b009e016b00d
version: 1
block_size: 8
data_offset: 16
However, the following is output on syslog when executing the above command:
Jun 14 14:21:37 bigdata kernel: [ 1602.102646] bcache: error opening
/dev/md126: Not enough buckets
Indeed, although I can register the cache device (and the UUID shows
up in /sys/fs/bcache), all attempts to register the backing device
fails as follows:
root@bigdata:~# echo /dev/md126 >/sys/fs/bcache/register
-bash: echo: write error: Invalid argument
And, sure enough, the backing device UUID doesn't appear in
/sys/fs/bcache nor at /dev/bcacheN
I've tried using the make-bcache -b parameter to specify a different
bucket size but I still get the same failure (unless I choose
ridiculously high or low bucket sizes, which results in bucket size
errors to be emitted on syslog).
As I was just finishing up writing this and was about to hit SEND, I
noticed something that I wish I had noticed earlier - specifically
that the "bcache-3.2" section of the bcache git repo was last updated
6 months ago.
The kernel I'm running is built from that tree. I had assumed that it
was the version 3.2 kernel patched with a relatively current version
of bcache, but now I think I may be seriously mistaken and my problems
could be due to the possibility that I'm running an old and buggy
version of bcache. I don't want to get ahead of myself, but it seems a
decent guess that my problems might be stemming from the fact that the
'bcache-3.2' tree uses old version of bcache.
At the risk of getting seriously ahead of myself, assuming that my
problem is due to 'bcache-3.2' being out of date and buggy, I'll ask
this: what is the recommended way to get a current and stable version
of bcache running on a stable linux kernel? I'm wanting to use bcache
on a production system and so I'm a little wary of building the
'bcache-for-3.10' tree. Ideally, I'd like to use bcache on a 3.2
kernel, because that's the kernel version readily available presently
in debian stable/wheezy so I will be less likely to encounter kernel
version incompatibilities with my debian wheezy system.
Many thanks in advance if anyone can help me along here.
John
^ permalink raw reply [flat|nested] 3+ messages in thread[parent not found: <CABBemb1tZhTC3SreiGHSB4t7GyfMsyhfA4yPYPk8s8u7iOycLw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Possible bug? bcache: error opening /dev/md126: Not enough buckets [not found] ` <CABBemb1tZhTC3SreiGHSB4t7GyfMsyhfA4yPYPk8s8u7iOycLw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2013-06-14 14:45 ` Jason Warr [not found] ` <51BB2C79.2090802-/cow75dQlsI@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Jason Warr @ 2013-06-14 14:45 UTC (permalink / raw) To: John Clark; +Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA On 06/14/2013 12:34 AM, John Clark wrote: > Hi there, > > I'm new to kernel mailing lists so beg your pardon if I'm asking this > question in the wrong place or in the wrong way. > > Anyway, I'm tantalisingly close to getting my bcache-enabled system > up-and-running, but I've hit a brick wall which seems might be a bug > or undocumented performance limit of some kind. I'm hoping Kent or > others on this fine list can help. > > I have successfully created the following two RAID1 block devices, as > shown per /proc/mdstat: > > Personalities : [raid1] > md126 : active raid1 sdb[0] sdc[1] > 1953383360 blocks super 1.2 [2/2] [UU] > > md127 : active raid1 sdd[0] sde[1] > 117155200 blocks super 1.2 [2/2] [UU] > > /dev/md126 comprises two 2.0TB spinning HDD's which I'm intending to > use as a bcache backing device > /dev/md127 comprises two 60GB SSD's which I'm intending to use as a > bcache cache device > > So far so good. > > Creating the bcache superblock on the md127 appears to go smoothly: > > root@bigdata:~# make-bcache -C /dev/md127 > UUID: 1736b20f-6b85-4fee-a801-4cf7c1bba009 > Set UUID: b2c9e8e2-0606-4d51-bf9a-e9b8a6f150b3 > version: 0 > nbuckets: 228818 > block_size: 8 > bucket_size: 1024 > nr_in_set: 1 > nr_this_dev: 0 > first_bucket: 1 > > > Creating the bcache superblock on md126 *appears* to succeed also: > > root@bigdata:~# make-bcache -B /dev/md/spinning > > UUID: 9e2bd59a-a413-4ad2-a07b-6998dfa3e049 > Set UUID: 8c70baad-6941-4550-9fc8-b009e016b00d > version: 1 > block_size: 8 > data_offset: 16 > > However, the following is output on syslog when executing the above command: > Jun 14 14:21:37 bigdata kernel: [ 1602.102646] bcache: error opening > /dev/md126: Not enough buckets > > Indeed, although I can register the cache device (and the UUID shows > up in /sys/fs/bcache), all attempts to register the backing device > fails as follows: > > root@bigdata:~# echo /dev/md126 >/sys/fs/bcache/register > -bash: echo: write error: Invalid argument > > And, sure enough, the backing device UUID doesn't appear in > /sys/fs/bcache nor at /dev/bcacheN > > I've tried using the make-bcache -b parameter to specify a different > bucket size but I still get the same failure (unless I choose > ridiculously high or low bucket sizes, which results in bucket size > errors to be emitted on syslog). > > As I was just finishing up writing this and was about to hit SEND, I > noticed something that I wish I had noticed earlier - specifically > that the "bcache-3.2" section of the bcache git repo was last updated > 6 months ago. > > The kernel I'm running is built from that tree. I had assumed that it > was the version 3.2 kernel patched with a relatively current version > of bcache, but now I think I may be seriously mistaken and my problems > could be due to the possibility that I'm running an old and buggy > version of bcache. I don't want to get ahead of myself, but it seems a > decent guess that my problems might be stemming from the fact that the > 'bcache-3.2' tree uses old version of bcache. > > At the risk of getting seriously ahead of myself, assuming that my > problem is due to 'bcache-3.2' being out of date and buggy, I'll ask > this: what is the recommended way to get a current and stable version > of bcache running on a stable linux kernel? I'm wanting to use bcache > on a production system and so I'm a little wary of building the > 'bcache-for-3.10' tree. Ideally, I'd like to use bcache on a 3.2 > kernel, because that's the kernel version readily available presently > in debian stable/wheezy so I will be less likely to encounter kernel > version incompatibilities with my debian wheezy system. > > Many thanks in advance if anyone can help me along here. > > John > -- > To unsubscribe from this list: send the line "unsubscribe linux-bcache" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html Build from the 3.10 RC series. It may not be "stable" yet but should be within a few weeks I think and it has the bcache bits in it. I have been running from the bcache-for3.10 tree on CentOS 6 for a few months without any issues. I will be using the mainline 3.10-RC5 tree sometime over the weekend. ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <51BB2C79.2090802-/cow75dQlsI@public.gmane.org>]
* Re: Possible bug? bcache: error opening /dev/md126: Not enough buckets [not found] ` <51BB2C79.2090802-/cow75dQlsI@public.gmane.org> @ 2013-06-16 3:21 ` John Clark 0 siblings, 0 replies; 3+ messages in thread From: John Clark @ 2013-06-16 3:21 UTC (permalink / raw) To: Jason Warr; +Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA On 15 June 2013 00:45, Jason Warr <jason-/cow75dQlsI@public.gmane.org> wrote: > On 06/14/2013 12:34 AM, John Clark wrote: >> Hi there, >> >> I'm new to kernel mailing lists so beg your pardon if I'm asking this >> question in the wrong place or in the wrong way. >> >> Anyway, I'm tantalisingly close to getting my bcache-enabled system >> up-and-running, but I've hit a brick wall which seems might be a bug >> or undocumented performance limit of some kind. I'm hoping Kent or >> others on this fine list can help. >> >> I have successfully created the following two RAID1 block devices, as >> shown per /proc/mdstat: >> >> Personalities : [raid1] >> md126 : active raid1 sdb[0] sdc[1] >> 1953383360 blocks super 1.2 [2/2] [UU] >> >> md127 : active raid1 sdd[0] sde[1] >> 117155200 blocks super 1.2 [2/2] [UU] >> >> /dev/md126 comprises two 2.0TB spinning HDD's which I'm intending to >> use as a bcache backing device >> /dev/md127 comprises two 60GB SSD's which I'm intending to use as a >> bcache cache device >> >> So far so good. >> >> Creating the bcache superblock on the md127 appears to go smoothly: >> >> root@bigdata:~# make-bcache -C /dev/md127 >> UUID: 1736b20f-6b85-4fee-a801-4cf7c1bba009 >> Set UUID: b2c9e8e2-0606-4d51-bf9a-e9b8a6f150b3 >> version: 0 >> nbuckets: 228818 >> block_size: 8 >> bucket_size: 1024 >> nr_in_set: 1 >> nr_this_dev: 0 >> first_bucket: 1 >> >> >> Creating the bcache superblock on md126 *appears* to succeed also: >> >> root@bigdata:~# make-bcache -B /dev/md/spinning >> >> UUID: 9e2bd59a-a413-4ad2-a07b-6998dfa3e049 >> Set UUID: 8c70baad-6941-4550-9fc8-b009e016b00d >> version: 1 >> block_size: 8 >> data_offset: 16 >> >> However, the following is output on syslog when executing the above command: >> Jun 14 14:21:37 bigdata kernel: [ 1602.102646] bcache: error opening >> /dev/md126: Not enough buckets >> >> Indeed, although I can register the cache device (and the UUID shows >> up in /sys/fs/bcache), all attempts to register the backing device >> fails as follows: >> >> root@bigdata:~# echo /dev/md126 >/sys/fs/bcache/register >> -bash: echo: write error: Invalid argument >> >> And, sure enough, the backing device UUID doesn't appear in >> /sys/fs/bcache nor at /dev/bcacheN >> >> I've tried using the make-bcache -b parameter to specify a different >> bucket size but I still get the same failure (unless I choose >> ridiculously high or low bucket sizes, which results in bucket size >> errors to be emitted on syslog). >> >> As I was just finishing up writing this and was about to hit SEND, I >> noticed something that I wish I had noticed earlier - specifically >> that the "bcache-3.2" section of the bcache git repo was last updated >> 6 months ago. >> >> The kernel I'm running is built from that tree. I had assumed that it >> was the version 3.2 kernel patched with a relatively current version >> of bcache, but now I think I may be seriously mistaken and my problems >> could be due to the possibility that I'm running an old and buggy >> version of bcache. I don't want to get ahead of myself, but it seems a >> decent guess that my problems might be stemming from the fact that the >> 'bcache-3.2' tree uses old version of bcache. >> >> At the risk of getting seriously ahead of myself, assuming that my >> problem is due to 'bcache-3.2' being out of date and buggy, I'll ask >> this: what is the recommended way to get a current and stable version >> of bcache running on a stable linux kernel? I'm wanting to use bcache >> on a production system and so I'm a little wary of building the >> 'bcache-for-3.10' tree. Ideally, I'd like to use bcache on a 3.2 >> kernel, because that's the kernel version readily available presently >> in debian stable/wheezy so I will be less likely to encounter kernel >> version incompatibilities with my debian wheezy system. >> >> Many thanks in advance if anyone can help me along here. >> >> John >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-bcache" in >> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html > Build from the 3.10 RC series. It may not be "stable" yet but should be > within a few weeks I think and it has the bcache bits in it. > > I have been running from the bcache-for3.10 tree on CentOS 6 for a few > months without any issues. I will be using the mainline 3.10-RC5 tree > sometime over the weekend. Jason, Thanks for the advice and vote of confidence in 3.10-rc5. I just want to report that I successfully built and installed kernel 3.10-rc6 (committed by Linus a few hours ago). I chose rc6 because I noticed that some fixes for filesystem-related issues had be added to rc6. I'm happy to report that this has resolved my problem. make-bcache now works. However (in case anyone else runs into this problem) even after deploying kernel 3.10-rc6 make-bcache failed for me initially. This time the error was "device or resource busy" - as though some process had my /dev/md126 and/or /dev/md/127 devices open. Weirder still was that sometimes (after a reboot) make-bcache succeeded only for my SSD raid device and other times only for my spinning HDD raid device. In the course of trying to figure out what the heck was going on I used 'dd' to write zero's to the beginning of both raid devices. From that point on make-bcache worked for both devices. I presume that there might have been some data at the start of these devices that was causing some filesystem monitoring daemon to think there was a valid partition there and try to mount it or otherwise interrogate it and somehow leaving the device open? Clutching at straws here, but anyway after I zeroed out the start of these devices my make-bcache problems went away. This could of course mean that my original attempts (using kernel 3.2 from the bcache-3.2 tree) may have been failing due to this issue rather than an underlying bug in that older version of bcache (and that old version of bcache was just giving an inaccurate reason for failing). Now I have to do some testing to find out whether or not my system (Proxmox 3) can cope with kernel 3.10-rc6. I know the vanilla kernel I've compiled will break the OpenVZ support in Proxmox but I don't use that anyway. But I need the KVM facilities to still work as they should. Fingers crossed! Thanks again John ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-16 3:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-14 5:34 Possible bug? bcache: error opening /dev/md126: Not enough buckets John Clark
[not found] ` <CABBemb1tZhTC3SreiGHSB4t7GyfMsyhfA4yPYPk8s8u7iOycLw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-06-14 14:45 ` Jason Warr
[not found] ` <51BB2C79.2090802-/cow75dQlsI@public.gmane.org>
2013-06-16 3:21 ` John Clark
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox