Hi, I add --no-mon-config option after the command cause the error shows that I can try this option. And the command executes successfully. Now I have added OSDs into the cluster and seems well.
I'm wondering whether this option have any effect to osd or not? Thanks Marc Roos <m.r...@f1-outsourcing.eu> 于2019年1月25日周五 上午4:16写道: > > > ceph osd create > > ceph osd rm osd.15 > > sudo -u ceph mkdir /var/lib/ceph/osd/ceph-15 > > ceph-disk prepare --bluestore --zap-disk /dev/sdc (bluestore) > > blkid /dev/sdb1 > echo "UUID=a300d511-8874-4655-b296-acf489d5cbc8 > /var/lib/ceph/osd/ceph-15 xfs defaults 0 0" >> /etc/fstab > mount /var/lib/ceph/osd/ceph-15 > chown ceph.ceph -R /var/lib/ceph/osd/ceph-15 > > > sudo -u ceph ceph-osd -i 15 --mkfs --mkkey --osd-uuid > sudo -u ceph ceph auth add osd.15 osd 'allow *' mon 'allow profile osd' > mgr 'allow profile osd' -i /var/lib/ceph/osd/ceph-15/keyring > > ceph osd create > > sudo -u ceph ceph osd crush add osd.15 0.4 host=c04 > > systemctl start ceph-osd@15 > systemctl enable ceph-osd@15 > > > > > > -----Original Message----- > From: Zhenshi Zhou [mailto:deader...@gmail.com] > Sent: 24 January 2019 10:32 > To: ceph-users > Subject: [ceph-users] create osd failed due to cephx authentication > > Hi, > > I'm installing a new ceph cluster manually. I get errors when I create > osd: > > # ceph-osd -i 0 --mkfs --mkkey > 2019-01-24 17:07:44.045 7f45f497b1c0 -1 auth: unable to find a keyring > on /var/lib/ceph/osd/ceph-0/keyring: (2) No such file or directory > 2019-01-24 17:07:44.045 7f45f497b1c0 -1 monclient: ERROR: missing > keyring, cannot use cephx for authentication > > Some informations are provided, did I miss anything? > > # cat /etc/ceph/ceph.conf: > [global] > ... > [osd.0] > host = ceph-osd1 > osd data = /var/lib/ceph/osd/ceph-0 > bluestore block path = /dev/disk/by-partlabel/bluestore_block_0 > bluestore block db path = /dev/disk/by-partlabel/bluestore_block_db_0 > bluestore block wal path = /dev/disk/by-partlabel/bluestore_block_wal_0 > > # ls /var/lib/ceph/osd/ceph-0 > type > > # cat /var/lib/ceph/osd/ceph-0/type > bluestore > > # ceph -s > cluster: > id: 7712ab7e-3c38-44b3-96d3-4e1de9da0ff6 > health: HEALTH_OK > > services: > mon: 3 daemons, quorum ceph-mon1,ceph-mon2,ceph-mon3 > mgr: ceph-mon1(active), standbys: ceph-mon2, ceph-mon3 > osd: 1 osds: 0 up, 0 in > > data: > pools: 0 pools, 0 pgs > objects: 0 objects, 0 B > usage: 0 B used, 0 B / 0 B avail > pgs: > > # ceph --version > ceph version 13.2.4 (b10be4d44915a4d78a8e06aa31919e74927b142e) mimic > (stable) > > > >
_______________________________________________ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com