Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ubuntu@inst01:~$ sudo ceph -m 192.168.122.201 osd tree
- sudo: unable to resolve host inst01
- dumped osdmap tree epoch 1
- # id weight type name up/down reweight
- -1 0 pool default
- ### triggered hotplug
- ubuntu@inst01:~$ sudo ceph -m 192.168.122.201 osd tree
- sudo: unable to resolve host inst01
- dumped osdmap tree epoch 3
- # id weight type name up/down reweight
- -1 0 pool default
- 0 0 osd.0 up 1
- ubuntu@inst01:~$ sudo ceph --cluster=ceph --name=osd.0 --keyring=/var/lib/ceph/osd/ceph-0/keyring osd crush set 0 osd.0 1 pool=p datacenter=a room=b row=c rack=r host=inst01
- sudo: unable to resolve host inst01
- (22) Invalid argument
- ubuntu@inst01:~$
- ubuntu@inst01:~$ tail -3 /var/log/ceph/ceph-mon.inst01.log
- 2012-06-11 21:28:38.918458 7fdccb4c7700 0 mon.inst01@0(leader) e1 handle_command mon_command(osd crush set 0 osd.0 1 pool=p datacenter=a room=b row=c rack=r host=inst01 v 0) v1
- 2012-06-11 21:28:38.918491 7fdccb4c7700 0 mon.inst01@0(leader).osd e3 adding/updating crush item id 0 name 'osd.0' weight 1 at location {datacenter=a,host=inst01,pool=p,rack=r,room=b,row=c}
- 2012-06-11 21:28:38.918544 7fdccb4c7700 1 error: didn't find anywhere to add item 0 in {datacenter=a,host=inst01,pool=p,rack=r,room=b,row=c}
- ubuntu@inst01:~$
- ubuntu@inst01:~$ sudo ceph -m 192.168.122.201 osd tree
- sudo: unable to resolve host inst01
- dumped osdmap tree epoch 3
- # id weight type name up/down reweight
- -1 0 pool default
- 0 0 osd.0 up 1
- ubuntu@inst01:~$
- ubuntu@inst01:~$ sudo ceph --cluster=ceph --name=osd.0 --keyring=/var/lib/ceph/osd/ceph-0/keyring osd crush set 0 osd.0 1 pool=default rack=r host=inst01
- sudo: unable to resolve host inst01
- updated item id 0 name 'osd.0' weight 1 at location {host=inst01,pool=default,rack=r} to crush map
- ubuntu@inst01:~$ sudo ceph -m 192.168.122.201 osd tree
- sudo: unable to resolve host inst01
- dumped osdmap tree epoch 5
- # id weight type name up/down reweight
- -1 1 pool default
- -3 1 rack r
- -2 1 host inst01
- 0 1 osd.0 up 1
- ubuntu@inst01:~$
- ubuntu@inst01:~$ sudo ceph --cluster=ceph --name=osd.0 --keyring=/var/lib/ceph/osd/ceph-0/keyring osd crush set 0 osd.0 1 pool=p datacenter=a room=b row=c rack=r host=inst01
- sudo: unable to resolve host inst01
- updated item id 0 name 'osd.0' weight 1 at location {datacenter=a,host=inst01,pool=p,rack=r,room=b,row=c} to crush map
- ubuntu@inst01:~$
- ubuntu@inst01:~$ sudo ceph -m 192.168.122.201 osd tree
- sudo: unable to resolve host inst01
- dumped osdmap tree epoch 5
- # id weight type name up/down reweight
- -1 1 pool default
- -3 1 rack r
- -2 1 host inst01
- 0 1 osd.0 up 1
- ubuntu@inst01:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement