Skip to contentSkip to conversation

Client can't reboot when rbd volume is mounted.

DISCUSSION Roman Alekseev 2 participants 5 messages Feb 11, 2013 – Feb 12, 2013

lore
Share & tools
lore
#0 lore raw

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.

Signature · 3 lines
Kind regards,

R. Alekseev
#1 lore raw
Quoted 8 lines · Roman Alekseev

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

#2 lore raw
Quoted 20 lines · Sage Weil
Quoted 8 lines · Roman Alekseev

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

Quoted 8 lines

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,

Quoted 1 line

#define ENETUNREACH 101 /* Network is unreachable */

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

Quoted 1 line

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

Signature · 3 lines
Kind regards,

R. Alekseev
#3 lore raw
Quoted 35 lines · Roman Alekseev
Quoted 21 lines · Sage Weil
Quoted 9 lines · Roman Alekseev

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

Quoted 8 lines

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,

Quoted 1 line

#define ENETUNREACH 101 /* Network is unreachable */

Quoted 8 lines

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

Quoted 1 line

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?

Quoted 2 lines

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

Quoted 16 lines

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

Thanks

Signature · 8 lines
Kind regards,

R. Alekseev

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw
Quoted 40 lines · Sage Weil
Quoted 39 lines · Roman Alekseev
Quoted 21 lines · Sage Weil
Quoted 9 lines · Roman Alekseev

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

Quoted 8 lines

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,

Quoted 1 line

#define ENETUNREACH 101 /* Network is unreachable */

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

Quoted 1 line

Are you observing that the RBD image hangs or something?

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

Quoted 7 lines
Quoted 1 line
# /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.

Quoted 24 lines
Quoted 3 lines

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

Quoted 15 lines

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

Thanks

Signature · 8 lines
Kind regards,

R. Alekseev

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

Thanks.

Signature · 3 lines
Kind regards,

R. Alekseev