ceph auth add?
Are there any pointers on how to use "ceph auth add"? I'm trying to add a second osd and am running into trouble at the step where I'm supposed to run "ceph auth get osd.1 -o /data/keyring.osd1" at
http://ceph.newdream.net/wiki/OSD_cluster_expansion/contraction
It seems that osd.1 isn't in the server's keyring yet, but I haven't worked out how to add it yet.
Running the following commands on the server:
ceph auth add osd.1 --in-file=/data/keyring.osd1
ceph auth add osd.1 /data/keyring.osd1
ceph auth add osd.1 < /data/keyring.osd1
all give me variants of
10.07.06 22:23:58.953255 7f3cffc5f710 monclient(hunting): found mon0 10.07.06 22:23:58.953509 mon <- [auth,add,osd.1]
10.07.06 22:23:58.953702 mon0 -> 'error decoding keyring' (-22)
# ceph auth list mon. key: AQ**********************************+w== mds.ceph-server-01 key: AQ**********************************zA== caps: [mds] allow caps: [mon] allow rwx caps: [osd] allow * osd.0 key: AQ**********************************Ug== caps: [mon] allow rwx caps: [osd] allow * client.admin key: AQ**********************************zg== caps: [mds] allow caps: [mon] allow * caps: [osd] allow * ' (0)
# cauthtool --list /data/keyring.osd1 osd.1 key: AQ**********************************GA== auid: 18***************15 caps: [mon] allow rwx caps: [osd] allow *
Quoted 10 lines · Jonathan Dieter
Are there any pointers on how to use "ceph auth add"? I'm trying to add a second osd and am running into trouble at the step where I'm supposed to run "ceph auth get osd.1 -o /data/keyring.osd1" at
http://ceph.newdream.net/wiki/OSD_cluster_expansion/contractionIt seems that osd.1 isn't in the server's keyring yet, but I haven't worked out how to add it yet.
Running the following commands on the server:
ceph auth add osd.1 --in-file=/data/keyring.osd1
Try
ceph auth add osd.1 -i /data/keyring.osd1
The long form was --in-data instead of --in-file... now fixed in unstable. But you can just use the short form -i.
sage
Quoted 35 lines
ceph auth add osd.1 /data/keyring.osd1
ceph auth add osd.1 < /data/keyring.osd1all give me variants of
10.07.06 22:23:58.953255
7f3cffc5f710monclient(hunting): found mon0 10.07.06 22:23:58.953509 mon <- [auth,add,osd.1]
10.07.06 22:23:58.953702 mon0 -> 'error decoding keyring' (-22)# ceph auth list mon. key: AQ**********************************+w== mds.ceph-server-01 key: AQ**********************************zA== caps: [mds] allow caps: [mon] allow rwx caps: [osd] allow * osd.0 key: AQ**********************************Ug== caps: [mon] allow rwx caps: [osd] allow * client.admin key: AQ**********************************zg== caps: [mds] allow caps: [mon] allow * caps: [osd] allow * ' (0)# cauthtool --list /data/keyring.osd1 osd.1 key: AQ**********************************GA== auid: 18***************15 caps: [mon] allow rwx caps: [osd] allow *
Quoted 12 lines · Sage Weil
Quoted 10 lines · Jonathan Dieter
Are there any pointers on how to use "ceph auth add"? I'm trying to add a second osd and am running into trouble at the step where I'm supposed to run "ceph auth get osd.1 -o /data/keyring.osd1" at
http://ceph.newdream.net/wiki/OSD_cluster_expansion/contractionIt seems that osd.1 isn't in the server's keyring yet, but I haven't worked out how to add it yet.
Running the following commands on the server:
ceph auth add osd.1 --in-file=/data/keyring.osd1
Quoted 6 lines
Try
ceph auth add osd.1 -i /data/keyring.osd1
The long form was --in-data instead of --in-file... now fixed in unstable. But you can just use the short form -i.
And that did the trick! Thanks much. I've now got two osds and the second is automatically copying the data.
Jonathan