Analysis of ubuntu14.04 configuration using ceph-deploy
What this article shares with you is the analysis of the configuration of ubuntu14.04 using ceph-deploy. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
Ceph 0.87 ubuntu14.04 is configured with ceph-deploy
Category: ceph Cluster distributed Storage 2015-01-22 14:53 20 people read comments (0) favorites, editors and deletes
1. If you have previously installed ceph, run on this machine
Sudo stop ceph-all stops all ceph processes
Ceph-deploy uninstall [{ceph-node}] Uninstall all ceph programs
Ceph-deploy purge [[ceph-node} [{ceph-node}] deletes ceph-related packages
Ceph-deploy purgedata {ceph-node} [{ceph-node}] delete ceph-related packages
Ceph-deploy forgetkeys Delete key
two. Installation
2.1 mkdir my-cluster
2.2 cd my-cluster/
2.3 ceph-deploy new ceph-admin (here the host hostname is the initial member of mon in ceph.conf)
2.4 vim ceph.conf osd pool default size = 2 (this line is added to the end of the file and redundant backup is set to 2. If osd > = 3, this item can not be set)
2.5 ceph-deploy install ceph-admin osd0 osd1 mds install ceph on each of these machines
2.6 ceph-deploy mon create-initial creates and initializes the monitor based on the initialization of the member member of mon in the previous ceph.conf
2.7 modify permissions chmod 777 ceph.client.admin.keyring and sudo chmod 777 / etc/ceph/ceph.client.admin.keyring
2.8The ceph-deploy disk list osd0 osd1 lists the disks available on osd0 and osd1
2.9.ceph-deploy disk zap osd0:sdb osd1:sd {bforce c} formats the SDB disk on osd0; sdb on os1, SDC disk is xfs
Ceph-deploy osd create osd0:sdb osd1:sd {bcentine c} create osd on osd0,sdb create osd on osd1,sdb,sdc
Ceph status checks the ceph status, which is normally health o
2.10 ceph-deploy admin ceph-admin osd0 osd1 mds copy the configuration file to each machine.
2.11 ceph-deploy mds create mds creates a metadata server mds on the mds machine.
(note that when pool default size is 2: when there are three osd, there is one pg remap, and when there are two osd, the clean is normal. Can be adjusted according to the situation.)
Note: 1. When the cluster is running, if you need to add mon, use the command ceph-deploy mon add instead of ceph-deploy mon create (only when the cluster is created for the first time).
two。 When you add a cephfs client to multiple Mon, it is written as follows: sudo ceph-fuse-k. / ceph.client.admin.keyring-m 10.32.170.104 Magi 10.32.170.106 Magi 10.32.170.107 sudo ceph-fuse 6789 / home/ceph/cephfs
3. When clock deviation occurs, the resolution is as follows: ntpdate ipaddress, hwclock-- systohc. If not, modify it as follows:
Set the maximum allowable clock offset between monitor in / etc/ceph/ceph.conf
1234 [mon] mon data = / data/$name mon clock drift allowed = 2 mon clock drift warn backoff = 30 is the analysis of ubuntu14.04 configuration using ceph-deploy. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.