Project

General

Profile

Actions

Feature #261

closed

Support IPv6 while mounting

Added by Wido den Hollander almost 14 years ago. Updated over 13 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:

Description

Right now the client doesn't support mounting over IPv6 yet, so it's not possible to run with IPv6 only.

In order to support IPv6, the "mount" command should be able to parse IPv6 addresses, or at least accept hostnames which point to IPv6 address.

Actions #1

Updated by Sage Weil almost 14 years ago

  • Status changed from New to Resolved

fixed by commit:54b4fe8b92c7983ccb9b588420951e11aa5aa87c on the kenrel side. there is also a ceph.git patch commit:303a1e3c06b2d5cbfd4c50aec45e3a5a4381a0c5 that fixes mount.ceph.

Actions #2

Updated by Wido den Hollander almost 14 years ago

Tried mounting with IPv6 today, but it failed, the config:

[global]
        auth supported = none
        debug ms = 1
        ms bind ipv6 = true
        keyring = /etc/ceph/keyring.bin

[mon]
        mon data = /srv/ceph/mon$id
        mon lease wiggle room = 0.5
        debug mon = 20

[mon0]
        host = node13
        mon addr = {2001:16f8:10:2::c3c3:3f9b}:6789

[mon1]
        host = node14
        mon addr = {2001:16f8:10:2::c3c3:2e5c}:6789

Verified cluster status with "ceph -s", cluster is working fine, all OSD's, MON's and MDS'es are online.

When mounting you get:

root@client02:~# mount -t ceph -o secretfile=/etc/ceph/secret,name=admin [2001:16f8:10:2::c3c3:3f9b]:/ /mnt/ceph
mount error 5 = Input/output error
root@client02:~# rmmod ceph
root@client02:~# mount -t ceph -o secretfile=/etc/ceph/secret,name=admin [2001:16f8:10:2::c3c3:2e5c]:/ /mnt/ceph
mount error 5 = Input/output error
root@client02:~#
root@client02:~# dmesg 
[58184.287239] ceph: loaded (mon/mds/osd proto 15/32/24, osdmap 5/5 5/5)
[58184.288518] ceph: connect [2001:16f8:10:2::c3c3:3f9b]:6789 error -97
[58184.288599] ceph: mon0 [2001:16f8:10:2::c3c3:3f9b]:6789 connect error
[58194.300047] ceph: connect [2001:16f8:10:2::c3c3:3f9b]:6789 error -97
[58194.300124] ceph: mon0 [2001:16f8:10:2::c3c3:3f9b]:6789 connect error
[58204.320051] ceph: connect [2001:16f8:10:2::c3c3:3f9b]:6789 error -97

Verified if i could connect to the monitor and yes, that is possible from the client02. Everything seems to work, except for mounting.

Using the "master" branch, since this one support IPv6 addresses when mounting.

Actions #3

Updated by Sage Weil almost 14 years ago

my bad, there was a fix in unstable that wasn't in master. moved that over, and it gets rid of the -97 error for me.

Actions

Also available in: Atom PDF