All of lore.kernel.org
 help / color / mirror / Atom feed
* Client can't reboot when rbd volume is mounted.
@ 2013-02-11  5:25 Roman Alekseev
  2013-02-11  5:36 ` Sage Weil
  0 siblings, 1 reply; 5+ messages in thread
From: Roman Alekseev @ 2013-02-11  5:25 UTC (permalink / raw)
  To: ceph-devel

Hi,

When I try to reboot a client server  without unmounting of rbd volume 
manually
its services stop working but server doesn't reboot completely and show 
the following logs in KVM console:

[235618.0202207] libceph: connect 192.168.0.19:6789 error -101

I understand that it wait for IO operation but we don't need every time 
unmount/unmap rbd volume manually to accomplish restarting operation.

OS: Debian Wheezy kernel 3.6.10
ceph version 0.56.1

Please point me how to resolve this situation.

Thanks in advance.

-- 
Kind regards,

R. Alekseev


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Client can't reboot when rbd volume is mounted.
  2013-02-11  5:25 Client can't reboot when rbd volume is mounted Roman Alekseev
@ 2013-02-11  5:36 ` Sage Weil
  2013-02-11 12:24   ` Roman Alekseev
  0 siblings, 1 reply; 5+ messages in thread
From: Sage Weil @ 2013-02-11  5:36 UTC (permalink / raw)
  To: Roman Alekseev; +Cc: ceph-devel

On Mon, 11 Feb 2013, Roman Alekseev wrote:
> Hi,
> 
> When I try to reboot a client server  without unmounting of rbd volume
> manually
> its services stop working but server doesn't reboot completely and show the
> following logs in KVM console:
> 
> [235618.0202207] libceph: connect 192.168.0.19:6789 error -101

That is 

#define        ENETUNREACH     101     /* Network is unreachable */

Note that that (or any other) socket error is not necessarily fatal; the 
kernel client will retry and eventually connect to that or another OSD 
to complete the IO.  Are you observing that the RBD image hangs or 
something?

You can peek at in-flight IO (and other state) with

 cat /sys/kernel/debug/ceph/*/osdc

unmount/unmap should not be necessarily in any case unless there is a bug.  
We backported a bunch of stuff to 3.6.6, so 3.6.10 ought to be okay.  You 
might try a newer 3.6.x kernel too; I forget if there was a second batch 
of fixes..

sage

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Client can't reboot when rbd volume is mounted.
  2013-02-11  5:36 ` Sage Weil
@ 2013-02-11 12:24   ` Roman Alekseev
  2013-02-11 13:52     ` Sage Weil
  0 siblings, 1 reply; 5+ messages in thread
From: Roman Alekseev @ 2013-02-11 12:24 UTC (permalink / raw)
  To: Sage Weil; +Cc: ceph-devel

On 11.02.2013 09:36, Sage Weil wrote:
> On Mon, 11 Feb 2013, Roman Alekseev wrote:
>> Hi,
>>
>> When I try to reboot a client server  without unmounting of rbd volume
>> manually
>> its services stop working but server doesn't reboot completely and show the
>> following logs in KVM console:
>>
>> [235618.0202207] libceph: connect 192.168.0.19:6789 error -101
> That is
>
> #define        ENETUNREACH     101     /* Network is unreachable */
>
> Note that that (or any other) socket error is not necessarily fatal; the
> kernel client will retry and eventually connect to that or another OSD
> to complete the IO.  Are you observing that the RBD image hangs or
> something?
>
> You can peek at in-flight IO (and other state) with
>
>   cat /sys/kernel/debug/ceph/*/osdc
>
> unmount/unmap should not be necessarily in any case unless there is a bug.
> We backported a bunch of stuff to 3.6.6, so 3.6.10 ought to be okay.  You
> might try a newer 3.6.x kernel too; I forget if there was a second batch
> of fixes..
>
> sage

Hi Sage,

 > #define ENETUNREACH 101 /* Network is unreachable */

The reason of this error is that networking stop working after 
performing server reset request.

 > Are you observing that the RBD image hangs or something?

the RBD works properly. It is just mapped and mounted on the client server.

# /dev/rbd1              99G  616M   93G   1% /home/test

The "/sys/kernel/debug" folder is empty, how to put 'ceph/*/osdc' 
content into it?

I've update kernel to 3.7.4 version but problem is still persist.

Thanks

-- 
Kind regards,

R. Alekseev


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Client can't reboot when rbd volume is mounted.
  2013-02-11 12:24   ` Roman Alekseev
@ 2013-02-11 13:52     ` Sage Weil
  2013-02-12  7:39       ` Roman Alekseev
  0 siblings, 1 reply; 5+ messages in thread
From: Sage Weil @ 2013-02-11 13:52 UTC (permalink / raw)
  To: Roman Alekseev; +Cc: ceph-devel

On Mon, 11 Feb 2013, Roman Alekseev wrote:
> On 11.02.2013 09:36, Sage Weil wrote:
> > On Mon, 11 Feb 2013, Roman Alekseev wrote:
> > > Hi,
> > > 
> > > When I try to reboot a client server  without unmounting of rbd volume
> > > manually
> > > its services stop working but server doesn't reboot completely and show
> > > the
> > > following logs in KVM console:
> > > 
> > > [235618.0202207] libceph: connect 192.168.0.19:6789 error -101
> > That is
> > 
> > #define        ENETUNREACH     101     /* Network is unreachable */
> > 
> > Note that that (or any other) socket error is not necessarily fatal; the
> > kernel client will retry and eventually connect to that or another OSD
> > to complete the IO.  Are you observing that the RBD image hangs or
> > something?
> > 
> > You can peek at in-flight IO (and other state) with
> > 
> >   cat /sys/kernel/debug/ceph/*/osdc
> > 
> > unmount/unmap should not be necessarily in any case unless there is a bug.
> > We backported a bunch of stuff to 3.6.6, so 3.6.10 ought to be okay.  You
> > might try a newer 3.6.x kernel too; I forget if there was a second batch
> > of fixes..
> > 
> > sage
> 
> Hi Sage,
> 
> > #define ENETUNREACH 101 /* Network is unreachable */
> 
> The reason of this error is that networking stop working after performing
> server reset request.
> 
> > Are you observing that the RBD image hangs or something?
> 
> the RBD works properly. It is just mapped and mounted on the client server.
> 
> # /dev/rbd1              99G  616M   93G   1% /home/test

I think I'm confused about what you mean by 'server'.  Do you mean the 
host that rbd is mapped on, or the host(s) where the ceph-osd's are 
running?

By 'the RBD works properly' do you mean the client where it is mapped?  In 
which case, what exactly is the problem?

> The "/sys/kernel/debug" folder is empty, how to put 'ceph/*/osdc' content into
> it?

'mount -t debugfs none /sys/kernel/debug' and it will appear (along with 
other fun stuff)...

sage


> 
> I've update kernel to 3.7.4 version but problem is still persist.
> 
> Thanks
> 
> -- 
> Kind regards,
> 
> R. Alekseev
> 
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Client can't reboot when rbd volume is mounted.
  2013-02-11 13:52     ` Sage Weil
@ 2013-02-12  7:39       ` Roman Alekseev
  0 siblings, 0 replies; 5+ messages in thread
From: Roman Alekseev @ 2013-02-12  7:39 UTC (permalink / raw)
  To: Sage Weil; +Cc: ceph-devel

On 11.02.2013 17:52, Sage Weil wrote:
> On Mon, 11 Feb 2013, Roman Alekseev wrote:
>> On 11.02.2013 09:36, Sage Weil wrote:
>>> On Mon, 11 Feb 2013, Roman Alekseev wrote:
>>>> Hi,
>>>>
>>>> When I try to reboot a client server  without unmounting of rbd volume
>>>> manually
>>>> its services stop working but server doesn't reboot completely and show
>>>> the
>>>> following logs in KVM console:
>>>>
>>>> [235618.0202207] libceph: connect 192.168.0.19:6789 error -101
>>> That is
>>>
>>> #define        ENETUNREACH     101     /* Network is unreachable */
>>>
>>> Note that that (or any other) socket error is not necessarily fatal; the
>>> kernel client will retry and eventually connect to that or another OSD
>>> to complete the IO.  Are you observing that the RBD image hangs or
>>> something?
>>>
>>> You can peek at in-flight IO (and other state) with
>>>
>>>    cat /sys/kernel/debug/ceph/*/osdc
>>>
>>> unmount/unmap should not be necessarily in any case unless there is a bug.
>>> We backported a bunch of stuff to 3.6.6, so 3.6.10 ought to be okay.  You
>>> might try a newer 3.6.x kernel too; I forget if there was a second batch
>>> of fixes..
>>>
>>> sage
>> Hi Sage,
>>
>>> #define ENETUNREACH 101 /* Network is unreachable */
>> The reason of this error is that networking stop working after performing
>> server reset request.
>>
>>> Are you observing that the RBD image hangs or something?
>> the RBD works properly. It is just mapped and mounted on the client server.
>>
>> # /dev/rbd1              99G  616M   93G   1% /home/test
> I think I'm confused about what you mean by 'server'.  Do you mean the
> host that rbd is mapped on, or the host(s) where the ceph-osd's are
> running?
>
> By 'the RBD works properly' do you mean the client where it is mapped?  In
> which case, what exactly is the problem?
I mean the host that rbd is mapped on. This host doesn't want to restart 
until rbd volume is mounted:)
In order to get server restarted we need to umount rbd volume manually 
before performing "reboot" command.
>
>> The "/sys/kernel/debug" folder is empty, how to put 'ceph/*/osdc' content into
>> it?
> 'mount -t debugfs none /sys/kernel/debug' and it will appear (along with
> other fun stuff)...
>
> sage
>
>
>> I've update kernel to 3.7.4 version but problem is still persist.
>>
>> Thanks
>>
>> -- 
>> Kind regards,
>>
>> R. Alekseev
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>>

Thanks.

-- 
Kind regards,

R. Alekseev


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-02-12  7:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-11  5:25 Client can't reboot when rbd volume is mounted Roman Alekseev
2013-02-11  5:36 ` Sage Weil
2013-02-11 12:24   ` Roman Alekseev
2013-02-11 13:52     ` Sage Weil
2013-02-12  7:39       ` Roman Alekseev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.