添加3个mon,名字分别为mon.0, mon.1, mon.2
$ ../bin/monmaptool --create --add 0 192.168.1.103:568 --add 1 192.168.1.103:569 --add 2 192.168.1.103:570 --fsid=b3e20564-2cad-11e7-ba64-b888e3dec73c ./mon.map
查看monmap的信息,三个monitor
$ ../bin/monmaptool --print mon.map
../bin/monmaptool: monmap file mon.map
epoch 0
fsid b3e20564-2cad-11e7-ba64-b888e3dec73c
last_changed 2017-05-03 21:01:04.801045
created 2017-05-03 21:01:04.801045
0: 192.168.1.103:568/0 mon.0
1: 192.168.1.103:569/0 mon.1
2: 192.168.1.103:570/0 mon.2
时间: 2024-10-14 01:40:32