* label devices got removed after format
@ 2013-07-11 9:43 Stefan Priebe - Profihost AG
[not found] ` <51DE7E3A.5070709-2Lf/h1ldwEHR5kwTpVNS9A@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Stefan Priebe - Profihost AG @ 2013-07-11 9:43 UTC (permalink / raw)
To: linux-bcache-u79uwXL29TY76Z2rM5mHXA; +Cc: kmo-PEzghdH756F8UrSeD/g0lQ
Hi,
after doing mkfs.xfs -f /dev/bcache/by-label/mybcachelabel
/dev/bcache/by-label/mybcachelabel gots removed...
Only a reboot brings it back.
Stefan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: label devices got removed after format
[not found] ` <51DE7E3A.5070709-2Lf/h1ldwEHR5kwTpVNS9A@public.gmane.org>
@ 2013-07-12 1:28 ` Kent Overstreet
2013-07-12 5:15 ` Stefan Priebe - Profihost AG
2013-07-12 10:33 ` Gabriel de Perthuis
0 siblings, 2 replies; 8+ messages in thread
From: Kent Overstreet @ 2013-07-12 1:28 UTC (permalink / raw)
To: Stefan Priebe - Profihost AG, Gabriel de Perthuis
Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA
On Thu, Jul 11, 2013 at 11:43:22AM +0200, Stefan Priebe - Profihost AG wrote:
> Hi,
>
> after doing mkfs.xfs -f /dev/bcache/by-label/mybcachelabel
>
> /dev/bcache/by-label/mybcachelabel gots removed...
>
> Only a reboot brings it back.
>
> Stefan
Gabriel - I bet the uevent bcache is emitting is conflicting with the
name of an existing label uevent; there'll be a symlink for the
filesystem's label - for the same block device - so the mkfs could be
causing another uevent to be emitted overwriting our label.
Or maybe the conflict is a bit more subtle - anyways, you added the
label uevent code, think you might be able to figure it out?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: label devices got removed after format
2013-07-12 1:28 ` Kent Overstreet
@ 2013-07-12 5:15 ` Stefan Priebe - Profihost AG
2013-07-12 10:33 ` Gabriel de Perthuis
1 sibling, 0 replies; 8+ messages in thread
From: Stefan Priebe - Profihost AG @ 2013-07-12 5:15 UTC (permalink / raw)
To: Kent Overstreet
Cc: Gabriel de Perthuis,
linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Am 12.07.2013 um 03:28 schrieb Kent Overstreet <kmo-PEzghdH756F8UrSeD/g0lQ@public.gmane.org>:
> On Thu, Jul 11, 2013 at 11:43:22AM +0200, Stefan Priebe - Profihost AG wrote:
>> Hi,
>>
>> after doing mkfs.xfs -f /dev/bcache/by-label/mybcachelabel
>>
>> /dev/bcache/by-label/mybcachelabel gots removed...
>>
>> Only a reboot brings it back.
>>
>> Stefan
>
> Gabriel - I bet the uevent bcache is emitting is conflicting with the
> name of an existing label uevent; there'll be a symlink for the
> filesystem's label - for the same block device - so the mkfs could be
> causing another uevent to be emitted overwriting our label.
No it always seems to happen if udev gets triggered. It also happens on manually executing udevadm trigger.
Stefan--
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: label devices got removed after format
2013-07-12 1:28 ` Kent Overstreet
2013-07-12 5:15 ` Stefan Priebe - Profihost AG
@ 2013-07-12 10:33 ` Gabriel de Perthuis
2013-07-12 10:44 ` Stefan Priebe - Profihost AG
1 sibling, 1 reply; 8+ messages in thread
From: Gabriel de Perthuis @ 2013-07-12 10:33 UTC (permalink / raw)
To: linux-bcache-u79uwXL29TY76Z2rM5mHXA
On Thu, 11 Jul 2013 18:28:06 -0700, Kent Overstreet wrote:
> On Thu, Jul 11, 2013 at 11:43:22AM +0200, Stefan Priebe - Profihost AG wrote:
>> Hi,
>>
>> after doing mkfs.xfs -f /dev/bcache/by-label/mybcachelabel
>>
>> /dev/bcache/by-label/mybcachelabel gots removed...
>>
>> Only a reboot brings it back.
>>
>> Stefan
>
> Gabriel - I bet the uevent bcache is emitting is conflicting with the
> name of an existing label uevent; there'll be a symlink for the
> filesystem's label - for the same block device - so the mkfs could be
> causing another uevent to be emitted overwriting our label.
The uevent property is CACHED_LABEL, a name that shouldn't interfere
with the cached device's filesystem label.
> Or maybe the conflict is a bit more subtle - anyways, you added the
> label uevent code, think you might be able to figure it out?
I actually can't reproduce this; the link doesn't disappear.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: label devices got removed after format
2013-07-12 10:33 ` Gabriel de Perthuis
@ 2013-07-12 10:44 ` Stefan Priebe - Profihost AG
2013-07-12 11:40 ` Gabriel de Perthuis
0 siblings, 1 reply; 8+ messages in thread
From: Stefan Priebe - Profihost AG @ 2013-07-12 10:44 UTC (permalink / raw)
To: Gabriel de Perthuis; +Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA
Am 12.07.2013 12:33, schrieb Gabriel de Perthuis:
> On Thu, 11 Jul 2013 18:28:06 -0700, Kent Overstreet wrote:
>> On Thu, Jul 11, 2013 at 11:43:22AM +0200, Stefan Priebe - Profihost AG wrote:
>>> Hi,
>>>
>>> after doing mkfs.xfs -f /dev/bcache/by-label/mybcachelabel
>>>
>>> /dev/bcache/by-label/mybcachelabel gots removed...
>>>
>>> Only a reboot brings it back.
>>>
>>> Stefan
>>
>> Gabriel - I bet the uevent bcache is emitting is conflicting with the
>> name of an existing label uevent; there'll be a symlink for the
>> filesystem's label - for the same block device - so the mkfs could be
>> causing another uevent to be emitted overwriting our label.
>
> The uevent property is CACHED_LABEL, a name that shouldn't interfere
> with the cached device's filesystem label.
>
>> Or maybe the conflict is a bit more subtle - anyways, you added the
>> label uevent code, think you might be able to figure it out?
>
> I actually can't reproduce this; the link doesn't disappear.
To me it happens alays when a udev event is triggered. It seems the
label isn't republished. To me the whole Folder /dev/bcache gets removed.
May i've used the wrong kernel patches on top of 3.10?
I have 2cd508a73e7f02b6d30bdbf9322d0b9c6e11a58e and
74ba1d388deb5d064414696f83578b0aade4685a
Stefan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: label devices got removed after format
2013-07-12 10:44 ` Stefan Priebe - Profihost AG
@ 2013-07-12 11:40 ` Gabriel de Perthuis
2013-07-16 21:37 ` Kent Overstreet
0 siblings, 1 reply; 8+ messages in thread
From: Gabriel de Perthuis @ 2013-07-12 11:40 UTC (permalink / raw)
To: linux-bcache-u79uwXL29TY76Z2rM5mHXA
On Fri, 12 Jul 2013 12:44:49 +0200, Stefan Priebe - Profihost AG wrote:
> Am 12.07.2013 12:33, schrieb Gabriel de Perthuis:
>> On Thu, 11 Jul 2013 18:28:06 -0700, Kent Overstreet wrote:
>>> On Thu, Jul 11, 2013 at 11:43:22AM +0200, Stefan Priebe - Profihost AG wrote:
>>>> Hi,
>>>>
>>>> after doing mkfs.xfs -f /dev/bcache/by-label/mybcachelabel
>>>>
>>>> /dev/bcache/by-label/mybcachelabel gots removed...
>>>>
>>>> Only a reboot brings it back.
>>>>
>>>> Stefan
>>>
> To me it happens alays when a udev event is triggered. It seems the
> label isn't republished. To me the whole Folder /dev/bcache gets removed.
>
> May i've used the wrong kernel patches on top of 3.10?
After discussing this on IRC:
The Squeeze version of udev chokes on newlines in labels, to the point
that all the device's symlinks are removed; the uuid symlinks aren't
even involved in label uevents.
As a workaround, the latest commit in [1] strips endlines when setting
the label.
[1] https://github.com/g2p/linux/commits/v3.10%2Bbcache-for-3.11
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: label devices got removed after format
2013-07-12 11:40 ` Gabriel de Perthuis
@ 2013-07-16 21:37 ` Kent Overstreet
2013-07-16 22:16 ` Gabriel de Perthuis
0 siblings, 1 reply; 8+ messages in thread
From: Kent Overstreet @ 2013-07-16 21:37 UTC (permalink / raw)
To: Gabriel de Perthuis; +Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA
On Fri, Jul 12, 2013 at 11:40:56AM +0000, Gabriel de Perthuis wrote:
> On Fri, 12 Jul 2013 12:44:49 +0200, Stefan Priebe - Profihost AG wrote:
> > Am 12.07.2013 12:33, schrieb Gabriel de Perthuis:
> >> On Thu, 11 Jul 2013 18:28:06 -0700, Kent Overstreet wrote:
> >>> On Thu, Jul 11, 2013 at 11:43:22AM +0200, Stefan Priebe - Profihost AG wrote:
> >>>> Hi,
> >>>>
> >>>> after doing mkfs.xfs -f /dev/bcache/by-label/mybcachelabel
> >>>>
> >>>> /dev/bcache/by-label/mybcachelabel gots removed...
> >>>>
> >>>> Only a reboot brings it back.
> >>>>
> >>>> Stefan
> >>>
> > To me it happens alays when a udev event is triggered. It seems the
> > label isn't republished. To me the whole Folder /dev/bcache gets removed.
> >
> > May i've used the wrong kernel patches on top of 3.10?
>
> After discussing this on IRC:
>
> The Squeeze version of udev chokes on newlines in labels, to the point
> that all the device's symlinks are removed; the uuid symlinks aren't
> even involved in label uevents.
> As a workaround, the latest commit in [1] strips endlines when setting
> the label.
>
> [1] https://github.com/g2p/linux/commits/v3.10%2Bbcache-for-3.11
Thanks, applied.
Gabriel, would you mind sending me these patches with git format-patch
or git send-email? I didn't see this until last night :)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: label devices got removed after format
2013-07-16 21:37 ` Kent Overstreet
@ 2013-07-16 22:16 ` Gabriel de Perthuis
0 siblings, 0 replies; 8+ messages in thread
From: Gabriel de Perthuis @ 2013-07-16 22:16 UTC (permalink / raw)
To: linux-bcache-u79uwXL29TY76Z2rM5mHXA
On Tue, 16 Jul 2013 14:37:56 -0700, Kent Overstreet wrote:
> On Fri, Jul 12, 2013 at 11:40:56AM +0000, Gabriel de Perthuis wrote:
>> The Squeeze version of udev chokes on newlines in labels, to the point
>> that all the device's symlinks are removed; the uuid symlinks aren't
>> even involved in label uevents.
>> As a workaround, the latest commit in [1] strips endlines when setting
>> the label.
>>
>> [1] https://github.com/g2p/linux/commits/v3.10%2Bbcache-for-3.11
>
> Thanks, applied.
Thanks.
> Gabriel, would you mind sending me these patches with git format-patch
> or git send-email? I didn't see this until last night :)
Ah, sorry. I iterated those pushes a bit, so I didn't mind you
not picking it up right away, but I'll try to switch to more visible
email next time.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-07-16 22:16 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-11 9:43 label devices got removed after format Stefan Priebe - Profihost AG
[not found] ` <51DE7E3A.5070709-2Lf/h1ldwEHR5kwTpVNS9A@public.gmane.org>
2013-07-12 1:28 ` Kent Overstreet
2013-07-12 5:15 ` Stefan Priebe - Profihost AG
2013-07-12 10:33 ` Gabriel de Perthuis
2013-07-12 10:44 ` Stefan Priebe - Profihost AG
2013-07-12 11:40 ` Gabriel de Perthuis
2013-07-16 21:37 ` Kent Overstreet
2013-07-16 22:16 ` Gabriel de Perthuis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox