{"id":294,"date":"2017-07-05T08:39:54","date_gmt":"2017-07-05T07:39:54","guid":{"rendered":"http:\/\/darko-keric.from.hr\/?p=294"},"modified":"2017-07-05T08:39:54","modified_gmt":"2017-07-05T07:39:54","slug":"gluster","status":"publish","type":"post","link":"http:\/\/darko-keric.from.hr\/?p=294","title":{"rendered":"GLUSTER"},"content":{"rendered":"<p>hostnamectl set-hostname glusterX.szpp.local<br \/>\n\/etc\/hosts<br \/>\ngluster17.szpp.local 10.10.7.117<br \/>\ngluster18.szpp.local 10.10.7.118<\/p>\n<p>Napravite instalaciju potrebnih paketa i repozitorija, ugasiti firewall i prebaciti SELinux u permissive mod<br \/>\nyum \u2013y update<br \/>\nyum -y install centos-release-gluster37<br \/>\nwget \u2013O \/etc\/yum.repos.d\/gluster.repo http:\/\/bit.ly\/2ror0PO<br \/>\nili puni link https:\/\/download.gluster.org\/pub\/gluster\/glusterfs\/3.7\/LATEST\/EPEL.repo\/glusterfs-epel.repo)<br \/>\nrpm \u2013ivh http:\/\/bit.ly\/1L5Ikxb<br \/>\nili puni link https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-7.noarch.rpm)<br \/>\nyum \u2013y update<br \/>\nyum \u2013y install glusterfs glusterfs-cli glusterfs-libs glusterfs-server samba<br \/>\nsystemctl disable firewalld.service<br \/>\nsystemctl stop firewalld.service<br \/>\nsetenforce 0<\/p>\n<p>Napraviti konfiguraciju drugog diska za kori\u0161tenje u gluster filesystemu:<br \/>\npvcreate \/dev\/sdb<br \/>\nvgcreate vg_cluster \/dev\/sdb<br \/>\nlvcreate \u2013L 5G \u2013n brick1 vg_cluster<br \/>\nlvcreate \u2013L 5G \u2013n brick2 vg_cluster<br \/>\nmkfs.xfs \/dev\/vg_cluster\/brick1<br \/>\nmkfs.xfs \/dev\/vg_cluster\/brick2<br \/>\nmkdir \u2013p \/bricks\/brick1<br \/>\nmkdir \u2013p \/bricks\/brick2<br \/>\nmount \/dev\/vg_cluster\/brick1 \/bricks\/brick1<br \/>\nmount \/dev\/vg_cluster\/brick2 \/bricks\/brick2<br \/>\nTime smo napravili LVM konfiguraciju sa volume grupom koja se zove vg_cluster, u kojoj smo napravili dva logi\u010dka volumena od 5GB, imena brick1 i brick2, koje smo formatirali sa XFS filesystemom i montirali ih u direktorije \/bricks\/brick1 i \/bricks\/brick2<\/p>\n<p>\/etc\/fstab<br \/>\n\/dev\/vg_cluster\/brick1 \/bricks\/brick1 xfs defaults 0 0<br \/>\n\/dev\/vg_cluster\/brick2 \/bricks\/brick2 xfs defaults 0 0<\/p>\n<p>mount \u2013a<\/p>\n<p>\/etc\/sysconfig\/selinux<br \/>\numjesto linije SELINUX=enforcing stavite SELINUX=disabled<br \/>\nOpcija \u0107e postati aktivna nakon idu\u0107eg restarta servera<\/p>\n<p>systemctl enable glusterd.service<br \/>\nsystemctl start glusterd.service<\/p>\n<p>gluster peer probe gluster17.szpp.local<\/p>\n<p>gluster peer status<\/p>\n<p>mkdir \/bricks\/brick1\/brick<\/p>\n<p>gluster volume create glustervol1 replica 2 transport tcp gluster17.szpp.local:\/bricks\/brick1\/brick gluster18.szpp.local:\/bricks\/brick1\/brick<\/p>\n<p>gluster volume start glustervol1<br \/>\ngluster volume info all<\/p>\n<p>Konfiguracija CIFS prustupa gluster clusteru<br \/>\nyum \u2013y install samba samba-client samba-common samba-vfs-glusterfs selinux-policy-targeted<br \/>\nsystemctl start smb.service<br \/>\nsystemctl enable smb.service<br \/>\nsystemctl start nmb.service<br \/>\nsystemctl enable nmb.service<\/p>\n<p>\/etc\/samba\/smb.conf<br \/>\nNa kraj dodati:<br \/>\nkernel share modes = No<\/p>\n<p>gluster volume set glustervol1 stat-prefetch off<br \/>\ngluster volume set glustervol1 server.allow-insecure on<br \/>\ngluster volume set glustervol1 storage.batch-fsync-delay-usec 0<\/p>\n<p>\/etc\/glusterfs\/glusterd.vol<br \/>\nu konfiguracijski dio (me\u0111u opcije), dodajte:<br \/>\noption rpc-auth-allow-insecure on<\/p>\n<p>systemctl restart smb.service<br \/>\nsystemctl restart nmb.service<br \/>\nsystemctl restart glusterd.service<\/p>\n<p>adduser sambauser<br \/>\nsmbpasswd \u2013u sambauser<br \/>\nsetfacl \u2013m d:u:sambauser:rwx \/bricks\/brick1\/brick<br \/>\nsetfacl \u2013m u:sambauser:rwx \/bricks\/brick1\/brick<\/p>\n<p>Konfiguracija je gotova. Poku\u0161ajte se sa svojeg Windows klijenta spojiti na va\u0161 gluster share.<br \/>\nPrimjera radi, ako ste koristili gluster17.szpp.local koji ima adresu 10.10.7.117, podignite<br \/>\nWindows Explorer i u njemu u adresni prostor napi\u0161ite:<br \/>\n\\\\10.10.7.117\\gluster-glustervol1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>hostnamectl set-hostname glusterX.szpp.local \/etc\/hosts gluster17.szpp.local 10.10.7.117 gluster18.szpp.local 10.10.7.118 Napravite instalaciju potrebnih paketa i repozitorija, ugasiti firewall i prebaciti SELinux u permissive mod yum \u2013y update yum -y install centos-release-gluster37 wget \u2013O \/etc\/yum.repos.d\/gluster.repo http:\/\/bit.ly\/2ror0PO ili puni link https:\/\/download.gluster.org\/pub\/gluster\/glusterfs\/3.7\/LATEST\/EPEL.repo\/glusterfs-epel.repo) rpm \u2013ivh http:\/\/bit.ly\/1L5Ikxb &hellip; <a href=\"http:\/\/darko-keric.from.hr\/?p=294\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":348,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/darko-keric.from.hr\/?p=294\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GLUSTER - Sistemski in\u017eenjer\" \/>\n<meta property=\"og:description\" content=\"hostnamectl set-hostname glusterX.szpp.local \/etc\/hosts gluster17.szpp.local 10.10.7.117 gluster18.szpp.local 10.10.7.118 Napravite instalaciju potrebnih paketa i repozitorija, ugasiti firewall i prebaciti SELinux u permissive mod yum \u2013y update yum -y install centos-release-gluster37 wget \u2013O \/etc\/yum.repos.d\/gluster.repo http:\/\/bit.ly\/2ror0PO ili puni link https:\/\/download.gluster.org\/pub\/gluster\/glusterfs\/3.7\/LATEST\/EPEL.repo\/glusterfs-epel.repo) rpm \u2013ivh http:\/\/bit.ly\/1L5Ikxb &hellip; Continue reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"http:\/\/darko-keric.from.hr\/?p=294\" \/>\n<meta property=\"og:site_name\" content=\"Sistemski in\u017eenjer\" \/>\n<meta property=\"article:published_time\" content=\"2017-07-05T07:39:54+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"darko-keric\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/darko-keric.from.hr\/#website\",\"url\":\"https:\/\/darko-keric.from.hr\/\",\"name\":\"Sistemski in\\u017eenjer\",\"description\":\"System administrator\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/darko-keric.from.hr\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/darko-keric.from.hr\/?p=294#webpage\",\"url\":\"http:\/\/darko-keric.from.hr\/?p=294\",\"name\":\"GLUSTER - Sistemski in\\u017eenjer\",\"isPartOf\":{\"@id\":\"https:\/\/darko-keric.from.hr\/#website\"},\"datePublished\":\"2017-07-05T07:39:54+00:00\",\"dateModified\":\"2017-07-05T07:39:54+00:00\",\"author\":{\"@id\":\"https:\/\/darko-keric.from.hr\/#\/schema\/person\/5e2f76737b07a700e0e2a108d173e612\"},\"breadcrumb\":{\"@id\":\"http:\/\/darko-keric.from.hr\/?p=294#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/darko-keric.from.hr\/?p=294\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/darko-keric.from.hr\/?p=294#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/darko-keric.from.hr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GLUSTER\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/darko-keric.from.hr\/#\/schema\/person\/5e2f76737b07a700e0e2a108d173e612\",\"name\":\"darko-keric\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/darko-keric.from.hr\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"http:\/\/0.gravatar.com\/avatar\/0400800f6ebec266fcb39a1cb31b0b0e?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/0.gravatar.com\/avatar\/0400800f6ebec266fcb39a1cb31b0b0e?s=96&d=mm&r=g\",\"caption\":\"darko-keric\"},\"url\":\"http:\/\/darko-keric.from.hr\/?author=348\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/darko-keric.from.hr\/?p=294","og_locale":"en_US","og_type":"article","og_title":"GLUSTER - Sistemski in\u017eenjer","og_description":"hostnamectl set-hostname glusterX.szpp.local \/etc\/hosts gluster17.szpp.local 10.10.7.117 gluster18.szpp.local 10.10.7.118 Napravite instalaciju potrebnih paketa i repozitorija, ugasiti firewall i prebaciti SELinux u permissive mod yum \u2013y update yum -y install centos-release-gluster37 wget \u2013O \/etc\/yum.repos.d\/gluster.repo http:\/\/bit.ly\/2ror0PO ili puni link https:\/\/download.gluster.org\/pub\/gluster\/glusterfs\/3.7\/LATEST\/EPEL.repo\/glusterfs-epel.repo) rpm \u2013ivh http:\/\/bit.ly\/1L5Ikxb &hellip; Continue reading &rarr;","og_url":"http:\/\/darko-keric.from.hr\/?p=294","og_site_name":"Sistemski in\u017eenjer","article_published_time":"2017-07-05T07:39:54+00:00","twitter_card":"summary","twitter_misc":{"Written by":"darko-keric","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/darko-keric.from.hr\/#website","url":"https:\/\/darko-keric.from.hr\/","name":"Sistemski in\u017eenjer","description":"System administrator","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/darko-keric.from.hr\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/darko-keric.from.hr\/?p=294#webpage","url":"http:\/\/darko-keric.from.hr\/?p=294","name":"GLUSTER - Sistemski in\u017eenjer","isPartOf":{"@id":"https:\/\/darko-keric.from.hr\/#website"},"datePublished":"2017-07-05T07:39:54+00:00","dateModified":"2017-07-05T07:39:54+00:00","author":{"@id":"https:\/\/darko-keric.from.hr\/#\/schema\/person\/5e2f76737b07a700e0e2a108d173e612"},"breadcrumb":{"@id":"http:\/\/darko-keric.from.hr\/?p=294#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/darko-keric.from.hr\/?p=294"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/darko-keric.from.hr\/?p=294#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/darko-keric.from.hr\/"},{"@type":"ListItem","position":2,"name":"GLUSTER"}]},{"@type":"Person","@id":"https:\/\/darko-keric.from.hr\/#\/schema\/person\/5e2f76737b07a700e0e2a108d173e612","name":"darko-keric","image":{"@type":"ImageObject","@id":"https:\/\/darko-keric.from.hr\/#personlogo","inLanguage":"en-US","url":"http:\/\/0.gravatar.com\/avatar\/0400800f6ebec266fcb39a1cb31b0b0e?s=96&d=mm&r=g","contentUrl":"http:\/\/0.gravatar.com\/avatar\/0400800f6ebec266fcb39a1cb31b0b0e?s=96&d=mm&r=g","caption":"darko-keric"},"url":"http:\/\/darko-keric.from.hr\/?author=348"}]}},"_links":{"self":[{"href":"http:\/\/darko-keric.from.hr\/index.php?rest_route=\/wp\/v2\/posts\/294"}],"collection":[{"href":"http:\/\/darko-keric.from.hr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/darko-keric.from.hr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/darko-keric.from.hr\/index.php?rest_route=\/wp\/v2\/users\/348"}],"replies":[{"embeddable":true,"href":"http:\/\/darko-keric.from.hr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=294"}],"version-history":[{"count":1,"href":"http:\/\/darko-keric.from.hr\/index.php?rest_route=\/wp\/v2\/posts\/294\/revisions"}],"predecessor-version":[{"id":295,"href":"http:\/\/darko-keric.from.hr\/index.php?rest_route=\/wp\/v2\/posts\/294\/revisions\/295"}],"wp:attachment":[{"href":"http:\/\/darko-keric.from.hr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/darko-keric.from.hr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=294"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/darko-keric.from.hr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}