{"id":179823,"date":"2013-05-16T09:33:03","date_gmt":"2013-05-16T05:33:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=179823"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=179823","title":{"rendered":"<span class=\"post_title\">\u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0430\u044f \u0444\u0430\u0439\u043b\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 Ceph FS \u0437\u0430 15 \u043c\u0438\u043d\u0443\u0442<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/5ea\/423\/a9a\/5ea423a9a211a713de80947f028c8efc.png\" alt=\"image\"\/><\/p>\n<p>  \u041d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0438\u043d\u0443\u0442 \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0431\u044b \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0443\u044e \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 Ceph FS<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h5>\u041a\u0440\u0430\u0442\u043a\u0430\u044f \u0441\u043f\u0440\u0430\u0432\u043a\u0430<\/h5>\n<p>  <a href=\"http:\/\/ceph.com\/\">Ceph<\/a> \u2014 \u044d\u0442\u043e open source \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u044d\u043b\u0430\u0441\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u043b\u0435\u0433\u043a\u043e \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u043f\u0435\u0442\u0430\u0431\u0430\u0439\u0442\u043d\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430. \u0412 \u043e\u0441\u043d\u043e\u0432\u0435 \u043b\u0435\u0436\u0438\u0442 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0434\u0438\u0441\u043a\u043e\u0432\u044b\u0445 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0433\u0438\u0431\u043a\u0443\u044e \u043c\u043d\u043e\u0433\u043e\u043a\u0440\u0430\u0442\u043d\u0443\u044e \u043f\u0441\u0435\u0432\u0434\u043e\u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0443\u044e \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0445. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 Ceph \u0434\u043e\u043f\u043e\u043b\u043d\u044f\u044e\u0442 \u0442\u0430\u043a\u043e\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0435\u0449\u0435 \u0442\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c\u0438:<\/p>\n<ul>\n<li>RADOS Gateway \u2014 S3- \u0438 Swift-\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u0439 RESTful \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441<\/li>\n<li>RBD \u2014 \u0431\u043b\u043e\u0447\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u0442\u043e\u043d\u043a\u043e\u0433\u043e \u0440\u043e\u0441\u0442\u0430 \u0438 \u0441\u043d\u0430\u043f\u0448\u043e\u0442\u0430\u043c\u0438<\/li>\n<li>Ceph FS \u2014 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0430\u044f POSIX-\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u0430\u044f \u0444\u0430\u0439\u043b\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430<\/li>\n<\/ul>\n<p>  <\/p>\n<h5>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430<\/h5>\n<p>  \u0412 \u043c\u043e\u0435\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0432\u0441\u0435\u0433\u043e 3 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430. \u0412 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043c\u043d\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e 3 SATA \u0434\u0438\u0441\u043a\u0430: <code>\/dev\/sda<\/code> \u043a\u0430\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0438 <code>\/dev\/sdb<\/code> \u0438 <code>\/dev\/sdc<\/code> \u043f\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b Ceph FS. \u041e\u0421 \u0432 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0431\u0443\u0434\u0435\u0442 Ubuntu 12.04 LTS. \u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u043e \u0441\u0443\u0442\u0438 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u043f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0442\u043e \u0435\u0441\u0442\u044c \u0434\u0432\u0435 \u0440\u0435\u043f\u043b\u0438\u043a\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430. <\/p>\n<p>  \u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0442 \u0434\u0432\u0430 \u043c\u0435\u0442\u043e\u0434\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0439 \u2014 \u0441\u0442\u0430\u0440\u044b\u0439, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f <code>mkcephfs<\/code> \u0438\u043b\u0438 \u043d\u043e\u0432\u044b\u0439 <code>ceph-deploy<\/code>. \u0414\u043b\u044f \u043d\u043e\u0432\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0435\u0442\u043a\u0438 0.6x (cuttlefish), \u0443\u0436\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>ceph-deploy<\/code>. \u041d\u043e \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u043d\u043d\u0438\u0439, \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043b\u0438\u0437 \u0432\u0435\u0442\u043a\u0438 0.56.x (bobtail) \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044f <code>mkcephfs<\/code>.<\/p>\n<p>  \u0421\u0440\u0430\u0437\u0443 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0443 \u2014 Ceph FS \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u0441\u0435 \u0435\u0449\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u043f\u0440\u0435\u043f\u0440\u0430\u0434\u0430\u043a\u0448\u043d \u0441\u0442\u0430\u0442\u0443\u0441\u0435, \u043d\u043e \u043f\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0433\u043e\u0440\u044f\u0447\u0438\u0445 \u0441\u0440\u0435\u0434\u0438 software defined storage.<\/p>\n<h4>\u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c.<\/h4>\n<p>  <\/p>\n<h5>\u0428\u0430\u0433 0. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u041e\u0421<\/h5>\n<p>  \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443. \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c <code>ntpdate<\/code> \u0438 \u0432\u0430\u0448 \u043b\u044e\u0431\u0438\u043c\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <code>vim<\/code>.<\/p>\n<pre><code class=\"bash\">aptitude update && aptitude install ntpdate vim <\/code><\/pre>\n<p>  <\/p>\n<h5>\u0428\u0430\u0433 1. \u0418\u043d\u0441\u0442\u0430\u043b\u043b\u0438\u0440\u0443\u0435\u043c \u043f\u0430\u043a\u0435\u0442\u044b Ceph<\/h5>\n<p>  \u041d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u043d\u043e\u0434\u0443 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u0438 \u043a\u043b\u0438\u0435\u043d\u0442 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u0430\u043a\u0435\u0442\u044b Ceph<\/p>\n<pre><code class=\"bash\">wget -q -O- 'https:\/\/ceph.com\/git\/?p=ceph.git;a=blob_plain;f=keys\/release.asc' | sudo apt-key add - echo deb http:\/\/ceph.com\/debian-bobtail\/ $(lsb_release -sc) main | tee \/etc\/apt\/sources.list.d\/ceph.list aptitude update && aptitude install ceph <\/code><\/pre>\n<p>  <\/p>\n<h5>\u0428\u0430\u0433 2. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b<\/h5>\n<p>  \u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u043d\u043e\u0434\u0435 \u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0435\u0434\u0438\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 <code>\/etc\/ceph\/ceph.conf<\/code><\/p>\n<pre><code class=\"bash\">[global]         auth cluster required = cephx         auth service required = cephx         auth client required = cephx  [osd]         osd journal size = 2000         osd mkfs type = xfs         osd mkfs options xfs = -f -i size=2048         osd mount options xfs = rw,noatime,inode64  [mon.a]         host = node01         mon addr = 192.168.2.31:6789  [mon.b]         host = node02         mon addr = 192.168.2.32:6789  [mon.c]         host = node03         mon addr = 192.168.2.33:6789  [osd.0]         host = node01         devs = \/dev\/sdb  [osd.1]         host = node01         devs = \/dev\/sdc  [osd.2]         host = node02         devs = \/dev\/sdb  [osd.3]         host = node02         devs = \/dev\/sdc  [osd.4]         host = node03         devs = \/dev\/sdb  [osd.5]         host = node03         devs = \/dev\/sdc  [mds.a]         host = node01 <\/code><\/pre>\n<p>  \u0414\u0435\u043b\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u043c \u0434\u043b\u044f \u0432\u0441\u0435\u0445<\/p>\n<pre><code class=\"bash\">chmod 644 \/etc\/ceph\/ceph.conf <\/code><\/pre>\n<p>  <\/p>\n<h5>\u0428\u0430\u0433 3. \u0414\u0435\u043b\u0430\u0435\u043c \u0431\u0435\u0437\u043f\u0430\u0440\u043e\u043b\u044c\u043d\u044b\u0439 \u0432\u0445\u043e\u0434 \u043c\u0435\u0436\u0434\u0443 \u043d\u043e\u0434\u0430\u043c\u0438<\/h5>\n<p>  \u0417\u0430\u0434\u0430\u0435\u043c \u0440\u0443\u0442\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c, \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c ssh \u043a\u043b\u044e\u0447\u0438 \u0431\u0435\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043f\u0430\u0441\u0441\u0444\u0440\u0430\u0437\u044b<\/p>\n<pre><code class=\"bash\">passwd root ssh-keygen <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c ssh \u0430\u043b\u0438\u0430\u0441\u044b \u0432 <code>\/root\/.ssh\/config<\/code> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u044e \u043d\u043e\u0434 \u0432 \u0432\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435<\/p>\n<pre><code class=\"bash\">Host node01         Hostname node01.ceph.labspace.studiogrizzly.com         User root Host node02         Hostname node02.ceph.labspace.studiogrizzly.com         User root Host node03         Hostname node03.ceph.labspace.studiogrizzly.com         User root <\/code><\/pre>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438 \u043d\u0430 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0435 \u043d\u043e\u0434\u044b \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430.<\/p>\n<pre><code class=\"bash\">ssh-copy-id root@node02 ssh-copy-id root@node03 <\/code><\/pre>\n<p>  <\/p>\n<h5>\u0428\u0430\u0433 4. \u0420\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u043a\u043b\u0430\u0441\u0442\u0435\u0440<\/h5>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u0438\u0441\u043a\u0438 \u043a \u0440\u0430\u0431\u043e\u0442\u0435<\/p>\n<pre><code class=\"bash\">mkfs -t xfs fs-options -f -i size=2048 \/dev\/sdb mkfs -t xfs fs-options -f -i size=2048 \/dev\/sdc <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0440\u0430\u0431\u043e\u0447\u0438\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0434\u0438\u0441\u043a\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430\u0448\u0435\u043c\u0443 \u0434\u0438\u0437\u0430\u0439\u043d\u0443<\/p>\n<p>  \u0422\u0430\u043a \u0434\u043b\u044f node01 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c<\/p>\n<pre><code class=\"bash\">mkdir -p \/var\/lib\/ceph\/osd\/ceph-0 mkdir -p \/var\/lib\/ceph\/osd\/ceph-1 mount \/dev\/sdb \/var\/lib\/ceph\/osd\/ceph-0 -o noatime,inode64 mount \/dev\/sdc \/var\/lib\/ceph\/osd\/ceph-1 -o noatime,inode64 <\/code><\/pre>\n<p>  \u0434\u043b\u044f node02<\/p>\n<pre><code class=\"bash\">mkdir -p \/var\/lib\/ceph\/osd\/ceph-2 mkdir -p \/var\/lib\/ceph\/osd\/ceph-3 mount \/dev\/sdb \/var\/lib\/ceph\/osd\/ceph-2 -o noatime,inode64 mount \/dev\/sdc \/var\/lib\/ceph\/osd\/ceph-3 -o noatime,inode64 <\/code><\/pre>\n<p>  \u0438 \u0434\u043b\u044f node03<\/p>\n<pre><code class=\"bash\">mkdir -p \/var\/lib\/ceph\/osd\/ceph-4 mkdir -p \/var\/lib\/ceph\/osd\/ceph-5 mount \/dev\/sdb \/var\/lib\/ceph\/osd\/ceph-4 -o noatime,inode64 mount \/dev\/sdc \/var\/lib\/ceph\/osd\/ceph-5 -o noatime,inode64 <\/code><\/pre>\n<p>  \u0418 \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u043d\u0430 node01 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 Ceph<\/p>\n<pre><code class=\"bash\">mkcephfs -a -c \/etc\/ceph\/ceph.conf -k \/etc\/ceph\/ceph.keyring <\/code><\/pre>\n<p>  \u0430 \u0437\u0430\u0442\u0435\u043c \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043a\u043b\u044e\u0447 <code>ceph.keyring<\/code> \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0435 \u043d\u043e\u0434\u044b \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430<\/p>\n<pre><code class=\"bash\">scp \/etc\/ceph\/ceph.keyring node02:\/etc\/ceph\/ceph.keyring scp \/etc\/ceph\/ceph.keyring node03:\/etc\/ceph\/ceph.keyring <\/code><\/pre>\n<p>  \u0438 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0443\u044e \u043d\u043e\u0434\u0443, \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2014 <code>192.168.2.39<\/code><\/p>\n<pre><code class=\"bash\">scp \/etc\/ceph\/ceph.keyring 192.168.2.39:\/etc\/ceph\/ceph.keyring <\/code><\/pre>\n<p>  \u041a\u043b\u044e\u0447\u0430\u043c \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u044f<\/p>\n<pre><code class=\"bash\">chmod 644 \/etc\/ceph\/ceph.keyring <\/code><\/pre>\n<p>  <\/p>\n<h5>\u0428\u0430\u0433 5. \u0417\u0430\u043f\u0443\u0441\u043a \u0438 \u0441\u0442\u0430\u0442\u0443\u0441<\/h5>\n<p>  \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0431\u0435\u0437\u043f\u0430\u0440\u043e\u043b\u044c\u043d\u043e\u043c\u0443 \u0432\u0445\u043e\u0434\u0443 \u043c\u0435\u0436\u0434\u0443 \u043d\u043e\u0434\u0430\u043c\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0441\u0442\u0430\u0440\u0442 \u0432\u0441\u0435\u0433\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u0441 \u043b\u044e\u0431\u043e\u0439 \u043d\u043e\u0434\u044b<\/p>\n<pre><code class=\"bash\">service ceph -a start <\/code><\/pre>\n<p>  \u0422\u0430\u043c \u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430<\/p>\n<pre><code class=\"bash\">ceph -s <\/code><\/pre>\n<p>  \u041d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u044b\u0439 \u0441\u0442\u0430\u0442\u0443\u0441 \u043f\u0440\u0438 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u044d\u0442\u043e <code>HEALTH_OK<\/code><\/p>\n<p>  \u0421\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0432 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u043c \u043c\u0435\u0441\u0442\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <code>\/mnt\/cephfs<\/code>, \u043f\u0430\u0440\u0441\u0438\u043c \u043a\u043b\u044e\u0447 \u0434\u043b\u044f \u043c\u043e\u0434\u0443\u043b\u044f \u044f\u0434\u0440\u0430 <code>ceph<\/code> \u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443<\/p>\n<pre><code class=\"bash\">mkdir \/mnt\/cephfs ceph-authtool --name client.admin \/etc\/ceph\/ceph.keyring --print-key | tee \/etc\/ceph\/admin.secret mount -t ceph node01:6789:\/ \/mnt\/cephfs -o name=admin,secretfile=\/etc\/ceph\/admin.secret,noatime <\/code><\/pre>\n<p>  <\/p>\n<h5>\u041f\u043e\u0441\u043b\u0435\u0441\u043b\u043e\u0432\u0438\u0435<\/h5>\n<p>  \u0412\u043e\u0442 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0443\u044e \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 Ceph FS \u0432\u0441\u0435\u0433\u043e \u0437\u0430 15 \u043c\u0438\u043d\u0443\u0442. \u0412\u043e\u043f\u0440\u043e\u0441\u044b \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0438 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0442\u0440\u0435\u0431\u0443\u044e\u0442 <a href=\"http:\/\/ceph.com\/docs\/master\/rados\/operations\/placement-groups\/\">\u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u0433\u0440\u0443\u0436\u0435\u043d\u0438\u044f<\/a> \u0438 \u044d\u0442\u043e \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e, \u0430 \u0442\u043e \u0438 \u043d\u0435 \u043e\u0434\u043d\u0443. \t\t\t \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/179823\/\"> http:\/\/habrahabr.ru\/post\/179823\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/5ea\/423\/a9a\/5ea423a9a211a713de80947f028c8efc.png\" alt=\"image\"\/><\/p>\n<p>  \u041d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0438\u043d\u0443\u0442 \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0431\u044b \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0443\u044e \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 Ceph FS  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-179823","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/179823","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=179823"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/179823\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=179823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=179823"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=179823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}