uuidgen mkdir -p /data/mon/mon.0 monmaptool --create --add 0 127.0.0.1 --fsid a7f64266-0894-4f1e-a635-d0aeaca0e993 /tmp/monmap ceph-mon -i 0 -c /etc/ceph/ceph.conf --mkfs --monmap /tmp/monmap --mon-data /data/mon/mon.0 --debug_mon 10 --fsid=a7f64266-0894-4f1e-a635-d0aeaca0e993 ceph-mon -i 0 ceph osd create mkdir -p /data/osd/osd.0 ceph-osd -i 0 --mkfs --osd-data=/data/osd/osd.0 -c /etc/ceph/ceph.conf --debug_osd 20 --mkkey ceph-osd -i 0 ceph osd create mkdir -p /data/osd/osd.1 ceph-osd -i 1 --mkfs --osd-data=/data/osd/osd.1 -c /etc/ceph/ceph.conf --debug_osd 20 --mkkey ceph-osd -i 1 ceph osd crush add-bucket unkownrack rack ceph osd tree ceph osd crush add-bucket host0 host ceph osd crush add-bucket host1 host ceph osd crush move host0 rack=unkownrack ceph osd crush move host1 rack=unkownrack ceph osd crush move unkownrack root=default ceph osd crush create-or-move osd.0 1.0 host=host0 rack=unkownrack root=default ceph osd crush create-or-move osd.1 1.0 host=host1 rack=unkownrack root=default |
[global] max open files = 131072 log file = /var/log/ceph/ceph-$name.log pid file = /var/run/ceph/$name.pid auth supported = none auth cluster required = none auth service required = none auth client required = none osd pool default size = 1 enable experimental unrecoverable data corrupting features = bluestore rocksdb [mon] debug mon = 10 debug paxos = 0 mon data = /data/mon/mon.$id [mon.0] host = 127.0.0.1 mon addr = 127.0.0.1:6789 [osd] debug osd = 10 debug bluestore = 30 debug bluefs = 30 debug rocksdb = 30 debug bdev = 30 bluestore = true osd objectstore = bluestore bluestore fsck on mount = true bluestore block create = true bluestore block db size = 67108864 bluestore block db create = true bluestore block wal size = 134217728 bluestore block wal create = true [osd.0] host = 127.0.0.1 osd data = /data/osd/osd.0 bluestore block path = /dev/vdb1 bluestore block db path = /dev/vdb2 bluestore block wal path = /dev/vdb3 [osd.1] host = 127.0.0.1 osd data = /data/osd/osd.1 bluestore block path = /dev/vdc1 bluestore block db path = /dev/vdc2 bluestore block wal path = /dev/vdc3 |
# mkdir -p /data/mon/mon.0 # monmaptool --create --add 0 127.0.0.1 --fsid a7f64266-0894-4f1e-a635-d0aeaca0e993 /tmp/monmap monmaptool: monmap file /tmp/monmap monmaptool: set fsid to a7f64266-0894-4f1e-a635-d0aeaca0e993 monmaptool: writing epoch 0 to /tmp/monmap (1 monitors) # ceph-mon -i 0 -c /etc/ceph/ceph.conf --mkfs --monmap /tmp/monmap --mon-data /data/mon/mon.0 --debug_mon 10 --fsid=a7f64266-0894-4f1e-a635-d0aeaca0e993 2016-09-09 07:53:34.564661 7fcb43dc14c0 -1 WARNING: the following dangerous and experimental features are enabled: bluestore,rocksdb 2016-09-09 07:53:34.565049 7fcb43dc14c0 -1 WARNING: the following dangerous and experimental features are enabled: bluestore,rocksdb ceph-mon: set fsid to a7f64266-0894-4f1e-a635-d0aeaca0e993 ceph-mon: created monfs at /data/mon/mon.0 for mon.0 # ceph-mon -i 0 2016-09-09 07:53:37.271989 7fec0bbef4c0 -1 WARNING: the following dangerous and experimental features are enabled: bluestore,rocksdb 2016-09-09 07:53:37.272325 7fec0bbef4c0 -1 WARNING: the following dangerous and experimental features are enabled: bluestore,rocksdb 2016-09-09 07:53:37.306821 7fec0bbef4c0 -1 WARNING: the following dangerous and experimental features are enabled: bluestore,rocksdb # # # ps aux | grep ceph root 7774 1.0 0.0 323128 15860 pts/0 Sl 07:53 0:00 ceph-mon -i 0 root 7836 0.0 0.0 112648 972 pts/0 R+ 07:53 0:00 grep --color=auto ceph # ceph -s 2016-09-09 07:53:45.908409 7fcca0282700 -1 WARNING: the following dangerous and experimental features are enabled: bluestore,rocksdb 2016-09-09 07:53:45.944873 7fcca0282700 -1 WARNING: the following dangerous and experimental features are enabled: bluestore,rocksdb cluster a7f64266-0894-4f1e-a635-d0aeaca0e993 health HEALTH_ERR no osds monmap e1: 1 mons at {0=127.0.0.1:6789/0} election epoch 3, quorum 0 0 osdmap e1: 0 osds: 0 up, 0 in flags sortbitwise pgmap v2: 64 pgs, 1 pools, 0 bytes data, 0 objects 0 kB used, 0 kB / 0 kB avail 64 creating # ceph osd create 2016-09-09 07:54:24.998055 7f528fcf1700 -1 WARNING: the following dangerous and experimental features are enabled: bluestore,rocksdb 2016-09-09 07:54:25.031318 7f528fcf1700 -1 WARNING: the following dangerous and experimental features are enabled: bluestore,rocksdb 0 # mkdir -p /data/osd/osd.0 # ceph-osd -i 0 --mkfs --osd-data=/data/osd/osd.0 -c /etc/ceph/ceph.conf --debug_osd 20 --mkkey 2016-09-09 07:54:25.454949 7f1018023800 -1 WARNING: the following dangerous and experimental features are enabled: bluestore,rocksdb 2016-09-09 07:54:25.455309 7f1018023800 -1 WARNING: the following dangerous and experimental features are enabled: bluestore,rocksdb 2016-09-09 07:54:25.455391 7f1018023800 -1 WARNING: experimental feature 'bluestore' is enabled Please be aware that this feature is experimental, untested, unsupported, and may result in data corruption, data loss, and/or irreparable damage to your cluster. Do not use feature with important data. 2016-09-09 07:54:25.489072 7f1018023800 -1 WARNING: the following dangerous and experimental features are enabled: bluestore,rocksdb 2016-09-09 07:54:25.516087 7f1018023800 -1 bluestore(/data/osd/osd.0) _read_fsid unparsable uuid 2016-09-09 07:54:26.322530 7f1018023800 -1 WARNING: experimental feature 'rocksdb' is enabled Please be aware that this feature is experimental, untested, unsupported, and may result in data corruption, data loss, and/or irreparable damage to your cluster. Do not use feature with important data. 2016-09-09 07:54:27.783304 7f1018023800 -1 WARNING: experimental feature 'rocksdb' is enabled Please be aware that this feature is experimental, untested, unsupported, and may result in data corruption, data loss, and/or irreparable damage to your cluster. Do not use feature with important data. 2016-09-09 07:54:29.592010 7f1018023800 -1 WARNING: experimental feature 'rocksdb' is enabled Please be aware that this feature is experimental, untested, unsupported, and may result in data corruption, data loss, and/or irreparable damage to your cluster. Do not use feature with important data. 2016-09-09 07:54:30.982027 7f1018023800 -1 created object store /data/osd/osd.0 for osd.0 fsid a7f64266-0894-4f1e-a635-d0aeaca0e993 2016-09-09 07:54:30.982160 7f1018023800 -1 auth: error reading file: /data/osd/osd.0/keyring: can't open /data/osd/osd.0/keyring: (2) No such file or directory 2016-09-09 07:54:30.982553 7f1018023800 -1 created new key in keyring /data/osd/osd.0/keyring # ceph-osd -i 0 starting osd.0 at :/0 osd_data /data/osd/osd.0 /var/lib/ceph/osd/ceph-0/journal 2016-09-09 07:54:31.009434 7f11aa3e3800 -1 WARNING: the following dangerous and experimental features are enabled: bluestore,rocksdb 2016-09-09 07:54:31.009552 7f11aa3e3800 -1 WARNING: the following dangerous and experimental features are enabled: bluestore,rocksdb 2016-09-09 07:54:31.009654 7f11aa3e3800 -1 WARNING: experimental feature 'bluestore' is enabled Please be aware that this feature is experimental, untested, unsupported, and may result in data corruption, data loss, and/or irreparable damage to your cluster. Do not use feature with important data. # # ceph osd create 2016-09-09 07:54:31.131614 7fe2ec2af700 -1 WARNING: the following dangerous and experimental features are enabled: bluestore,rocksdb 2016-09-09 07:54:31.165197 7fe2ec2af700 -1 WARNING: the following dangerous and experimental features are enabled: bluestore,rocksdb 1 # mkdir -p /data/osd/osd.1 # ceph-osd -i 1 --mkfs --osd-data=/data/osd/osd.1 -c /etc/ceph/ceph.conf --debug_osd 20 --mkkey 2016-09-09 07:54:31.517213 7fe5e4f58800 -1 WARNING: the following dangerous and experimental features are enabled: bluestore,rocksdb 2016-09-09 07:54:31.517578 7fe5e4f58800 -1 WARNING: the following dangerous and experimental features are enabled: bluestore,rocksdb 2016-09-09 07:54:31.517653 7fe5e4f58800 -1 WARNING: experimental feature 'bluestore' is enabled Please be aware that this feature is experimental, untested, unsupported, and may result in data corruption, data loss, and/or irreparable damage to your cluster. Do not use feature with important data. 2016-09-09 07:54:31.550260 7fe5e4f58800 -1 WARNING: the following dangerous and experimental features are enabled: bluestore,rocksdb 2016-09-09 07:54:31.615795 7fe5e4f58800 -1 bluestore(/data/osd/osd.1) _read_fsid unparsable uuid 2016-09-09 07:54:32.520344 7fe5e4f58800 -1 WARNING: experimental feature 'rocksdb' is enabled Please be aware that this feature is experimental, untested, unsupported, and may result in data corruption, data loss, and/or irreparable damage to your cluster. Do not use feature with important data. 2016-09-09 07:54:34.426150 7fe5e4f58800 -1 WARNING: experimental feature 'rocksdb' is enabled Please be aware that this feature is experimental, untested, unsupported, and may result in data corruption, data loss, and/or irreparable damage to your cluster. Do not use feature with important data. 2016-09-09 07:54:35.645626 7fe5e4f58800 -1 WARNING: experimental feature 'rocksdb' is enabled Please be aware that this feature is experimental, untested, unsupported, and may result in data corruption, data loss, and/or irreparable damage to your cluster. Do not use feature with important data. 2016-09-09 07:54:36.547734 7fe5e4f58800 -1 created object store /data/osd/osd.1 for osd.1 fsid a7f64266-0894-4f1e-a635-d0aeaca0e993 2016-09-09 07:54:36.547911 7fe5e4f58800 -1 auth: error reading file: /data/osd/osd.1/keyring: can't open /data/osd/osd.1/keyring: (2) No such file or directory 2016-09-09 07:54:36.548344 7fe5e4f58800 -1 created new key in keyring /data/osd/osd.1/keyring # ceph-osd -i 1 2016-09-09 07:54:40.320869 7fd5bad20800 -1 WARNING: the following dangerous and experimental features are enabled: bluestore,rocksdb 2016-09-09 07:54:40.321260 7fd5bad20800 -1 WARNING: the following dangerous and experimental features are enabled: bluestore,rocksdb 2016-09-09 07:54:40.321385 7fd5bad20800 -1 WARNING: experimental feature 'bluestore' is enabled Please be aware that this feature is experimental, untested, unsupported, and may result in data corruption, data loss, and/or irreparable damage to your cluster. Do not use feature with important data. starting osd.1 at :/0 osd_data /data/osd/osd.1 /var/lib/ceph/osd/ceph-1/journal |