Skip to contentSkip to conversation

session lost, hunting for new mon

DISCUSSION Stefan Priebe 3 participants 6 messages May 19, 2012 – May 21, 2012

lore
Share & tools
lore
#0 lore raw

Hi,

while doing my first tests with ceph i'm always struggling about these kernel messages:

[  273.332472] libceph: client0 fsid d3aa8d88-3aa8-4f74-bb87-aa8de4975a84
[  273.351025] libceph: mon1 10.0.255.101:6789 session established
[  459.830296] libceph: mon1 10.0.255.101:6789 socket closed
[  459.847044] libceph: mon1 10.0.255.101:6789 session lost, hunting for new mon
[  472.226073] libceph: mon0 10.0.255.100:6789 session established

Always while stress testing the session to the mon's got lost. Any ideas?

Stefan

#1 lore raw
Quoted 5 lines · Stefan Priebe

Hi,

while doing my first tests with ceph i'm always struggling about these kernel messages:

Quoted 8 lines
[ 273.332472] libceph: client0 fsid d3aa8d88-3aa8-4f74-bb87-aa8de4975a84
[ 273.351025] libceph: mon1 10.0.255.101:6789 session established
[ 459.830296] libceph: mon1 10.0.255.101:6789 socket closed
[ 459.847044] libceph: mon1 10.0.255.101:6789 session lost, hunting for
new mon
[ 472.226073] libceph: mon0 10.0.255.100:6789 session established

Always while stress testing the session to the mon's got lost. Any ideas?

These aren't a problem - it's just the connection to a monitor being lost, and the client connecting to another one.

#2 lore raw

Am 19.05.2012 08:08, schrieb Josh Durgin:

Quoted 13 lines · Stefan Priebe
Quoted 12 lines

Hi,

while doing my first tests with ceph i'm always struggling about these kernel messages:

[ 273.332472] libceph: client0 fsid d3aa8d88-3aa8-4f74-bb87-aa8de4975a84
[ 273.351025] libceph: mon1 10.0.255.101:6789 session established
[ 459.830296] libceph: mon1 10.0.255.101:6789 socket closed
[ 459.847044] libceph: mon1 10.0.255.101:6789 session lost, hunting for
new mon
[ 472.226073] libceph: mon0 10.0.255.100:6789 session established
Quoted 4 lines
Quoted 1 line

Always while stress testing the session to the mon's got lost. Any ideas?

These aren't a problem - it's just the connection to a monitor being lost, and the client connecting to another one.

But what is causing this? I'm also seeing:

[  623.554698] ceph: mds0 caps stale
[  650.190504] ceph: mds0 caps renewed

My biggest problem is that random reads and writes are awfully slow.

Stefan

#3 lore raw

qemu-rdb questions

In reply to Josh Durgin

Hi,
i'm planning to do rdb integration in proxmox2 kvm distribution (not using libvirt).

I found some doc here
http://ceph.com/wiki/QEMU-RBD
and also in libvirt mailing list.

some questions:

qemu drive command line :
-------------------------
-drive file=rbd:pool/image:id=myname:key=QVFDVm41aE82SHpGQWhBQXEwTkN2OGp0SmNJY0UrSE9CbE1RMUE=:auth_supported=cephx none:mon_host=mon1.example.org\:6321\;mon2.example.org\:6322\;mon3.example.org\:6322,if=virtio,format=raw

is it the right syntax ?

for image management, what is the best way ? qemu-img or rdb ?

rdb creation with qemu-img:
----------------------------
qemu-img create -f rbd rbd:data/foo 10G

how to specify monitor, authentification,.... ?

rdb delete/resize with qemu-img?
--------------------------------
don't find any infos.

rdb commands
------------
Is the rdb kernel module require to use rdb command ?

Also,I would like to not have any /dev/rdbx device on my client.

Regards,

-Alexandre

#4 lore raw

Re: qemu-rdb questions

Quoted 8 lines · Alexandre DERUMIER

Hi,
i'm planning to do rdb integration in proxmox2 kvm distribution (not using libvirt).

I found some doc here
http://ceph.com/wiki/QEMU-RBD
and also in libvirt mailing list.

Quoted 7 lines

some questions:

qemu drive command line :
-------------------------
-drive file=rbd:pool/image:id=myname:key=QVFDVm41aE82SHpGQWhBQXEwTkN2OGp0SmNJY0UrSE9CbE1RMUE=:auth_supported=cephx none:mon_host=mon1.example.org\:6321\;mon2.example.org\:6322\;mon3.example.org\:6322,if=virtio,format=raw

is it the right syntax ?

Newer qemu doesn't like the space in auth_supported, so you'll want to use a semicolon instead:

-drive file=rbd:pool/image:id=myname:key=QVFDVm41aE82SHpGQWhBQXEwTkN2OGp0SmNJY0UrSE9CbE1RMUE=:auth_supported=cephx;none:mon_host=mon1.example.org\:6321\;mon2.example.org\:6322\;mon3.example.org\:6322,if=virtio,format=raw

The key/value pairs separated by colons are Ceph configuration options. The above drive line is equivalent the following settings:

/path/to/myname.keyring containing the keyring for myname, as shown by 'ceph auth list'.

/etc/ceph/ceph.conf containing:

[client.myname]
keyring = /path/to/myname.keyring
auth supported = cephx none
mon host =
mon1.example.org:6321;mon2.example.org:6322;mon3.example.org:6322

And a drive line like:

-drive file=rbd:pool/image:id=myname,if=virtio,format=raw

Qemu reads the from the ceph.conf file if it exists. Any extra options you add override those from the configuration file.

You can have it read from another file by adding ':conf=/path/to/file'.

Quoted 8 lines

for image management, what is the best way ? qemu-img or rdb ?

rdb creation with qemu-img:
----------------------------
qemu-img create -f rbd rbd:data/foo 10G

Quoted 5 lines

how to specify monitor, authentification,.... ?

rdb delete/resize with qemu-img?
--------------------------------
don't find any infos.

The rbd tool has more features. As you noticed, qemu doesn't know how to delete images. It also can't rename them. I'm not sure if qemu-img lets you resize them. The monitor and auth options for qemu-img are the same as for qemu's -drive syntax. You can configure them in /etc/ceph/ceph.conf, or on the command line.

For the rbd tool, if you don't want to use a configuration file, the options would be:

rbd --mon-host 'mon1.example.org:6321;mon2.example.org:6322;mon3.example.org:6322' --keyring /path/to/keyring --id myname --auth-supported 'cephx;none'

These are generic ceph options, and work with any ceph command. They can also be set in the CEPH_ARGS environment variable.

Quoted 5 lines

rdb commands
------------
Is the rdb kernel module require to use rdb command ?

Nope, it's only needed if you want to have /dev/rbd devices on your hosts.

Quoted 1 line

Also,I would like to not have any /dev/rdbx device on my client.

qemu goes directly through the userspace librbd to access rbd images.
The rbd kernel module isn't involved at all, and no devices appear on the host. The guest does not know it's using rbd; it sees a block device, just as if you were using e.g. a qcow2 file.

Josh

#5 lore raw

Re: qemu-rdb questions

Thanks Josh, this is very clear !

----- Mail original -----

De: "Josh Durgin" <[email protected]>
À: "Alexandre DERUMIER" <[email protected]>
Cc: [email protected]
Envoyé: Lundi 21 Mai 2012 08:07:59
Objet: Re: qemu-rdb questions

Quoted 8 lines · Alexandre DERUMIER

Hi,
i'm planning to do rdb integration in proxmox2 kvm distribution (not using libvirt).

I found some doc here
http://ceph.com/wiki/QEMU-RBD
and also in libvirt mailing list.

Quoted 7 lines

some questions:

qemu drive command line :
-------------------------
-drive file=rbd:pool/image:id=myname:key=QVFDVm41aE82SHpGQWhBQXEwTkN2OGp0SmNJY0UrSE9CbE1RMUE=:auth_supported=cephx none:mon_host=mon1.example.org\:6321\;mon2.example.org\:6322\;mon3.example.org\:6322,if=virtio,format=raw

is it the right syntax ?

Newer qemu doesn't like the space in auth_supported, so you'll want to use a semicolon instead:

-drive file=rbd:pool/image:id=myname:key=QVFDVm41aE82SHpGQWhBQXEwTkN2OGp0SmNJY0UrSE9CbE1RMUE=:auth_supported=cephx;none:mon_host=mon1.example.org\:6321\;mon2.example.org\:6322\;mon3.example.org\:6322,if=virtio,format=raw

The key/value pairs separated by colons are Ceph configuration options. The above drive line is equivalent the following settings:

/path/to/myname.keyring containing the keyring for myname, as shown by 'ceph auth list'.

/etc/ceph/ceph.conf containing:

[client.myname]
keyring = /path/to/myname.keyring
auth supported = cephx none
mon host = mon1.example.org:6321;mon2.example.org:6322;mon3.example.org:6322

And a drive line like:

-drive file=rbd:pool/image:id=myname,if=virtio,format=raw

Qemu reads the from the ceph.conf file if it exists. Any extra options you add override those from the configuration file.

You can have it read from another file by adding ':conf=/path/to/file'.

Quoted 8 lines

for image management, what is the best way ? qemu-img or rdb ?

rdb creation with qemu-img:
----------------------------
qemu-img create -f rbd rbd:data/foo 10G

Quoted 5 lines

how to specify monitor, authentification,.... ?

rdb delete/resize with qemu-img?
--------------------------------
don't find any infos.

The rbd tool has more features. As you noticed, qemu doesn't know how to delete images. It also can't rename them. I'm not sure if qemu-img lets you resize them. The monitor and auth options for qemu-img are the same as for qemu's -drive syntax. You can configure them in /etc/ceph/ceph.conf, or on the command line.

For the rbd tool, if you don't want to use a configuration file, the options would be:

rbd --mon-host 'mon1.example.org:6321;mon2.example.org:6322;mon3.example.org:6322' --keyring /path/to/keyring --id myname --auth-supported 'cephx;none'

These are generic ceph options, and work with any ceph command. They can also be set in the CEPH_ARGS environment variable.

Quoted 5 lines

rdb commands
------------
Is the rdb kernel module require to use rdb command ?

Nope, it's only needed if you want to have /dev/rbd devices on your hosts.

Quoted 1 line

Also,I would like to not have any /dev/rdbx device on my client.

qemu goes directly through the userspace librbd to access rbd images. The rbd kernel module isn't involved at all, and no devices appear on the host. The guest does not know it's using rbd; it sees a block device, just as if you were using e.g. a qcow2 file.

Josh

Signature · 16 lines
-- 




	Alexandre D erumier 
Ingénieur Système 
Fixe : 03 20 68 88 90 
Fax : 03 20 68 90 81 
45 Bvd du Général Leclerc 59100 Roubaix - France 
12 rue Marivaux 75002 Paris - France 
	
--
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