Ceph Multi-Mon mds__ Distributed File system

Source: Internet
Author: User
1. Current status

2. Add a Mon (mon.node2) SSH node2 to 172.10.2.172 (Node2)
vim/etc/ceph/ceph.conf Add Mon.node2 related configuration

Ceph-authtool/tmp/ceph.mon.keyring--import-keyring/etc/ceph/ceph.client.admin.keyring
Monmaptool--create--add node1 172.10.2.172--fsid
Mkdir-p/var/lib/ceph/mon/ceph-node2
Ceph-mon--mkfs-i node2--monmap/tmp/monmap--keyring/tmp/ceph.mon.keyring
Touch/var/lib/ceph/mon/ceph-node2/done
/etc/init.d/ceph start


3. Add an additional MDS vim/etc/ceph/ceph.conf add Mds.node2 configuration in 172.10.2.172 (node2)/etc/init.d/ceph restart
View information One more standby Mds/etc/init.d/ceph stop MDS turn off one after another will take over
Attached: Configuration file root@node1:/var/lib/ceph/osd# cat/etc/ceph/ceph.conf [global] Fsid = 5e3a1bf3-9777-4311-a308-67a8c4b8fece Mon Initial Members = Node1 Mon host = 172.10.2.171 public network = 172.10.2.0/24 Auth cluster required = None Auth Service r equired = None Auth client required = none OSD Journal size = 1024 Filestore xattr Use OMAP = True OSD Pool Default size = 2 OSD Pool default min size = 1 OSD Pool default PG num = 128 OSD pool default PGP num = 128 OSD Crush Chooseleaf type = 1
[Mon.node1] host = node1 Mon addr = 172.10.2.171:6789
[Mon.node2] host = node2 Mon addr = 172.10.2.172:6789
[osd.0] host = Node1 addr = 172.10.2.171:6789 OSD data =/var/lib/ceph/osd/ceph-0
[Osd.1] host = Node1 addr = 172.10.2.171:6789 OSD data =/var/lib/ceph/osd/ceph-1
[Osd.2] host = Node2 addr = 172.10.2.172:6789 OSD data =/var/lib/ceph/osd/ceph-2
[Osd.3] host = Node2 addr = 172.10.2.172:6789 OSD data =/var/lib/ceph/osd/ceph-3
[Mds.node1] host = Node1
[Mds.node2] host = Node2
[MDS] Max MDS = 2


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.