{"id":33523,"date":"2019-10-31T21:53:05","date_gmt":"2019-10-31T18:53:05","guid":{"rendered":"https:\/\/prohoster.info\/blog\/hranilishhe-linstor-i-ego-integratsiya-s-opennebula\/"},"modified":"2019-10-31T21:53:05","modified_gmt":"2019-10-31T18:53:05","slug":"hranilishhe-linstor-i-ego-integratsiya-s-opennebula","status":"publish","type":"post","link":"https:\/\/prohoster.info\/hu\/blog\/administrirovanie\/hranilishhe-linstor-i-ego-integratsiya-s-opennebula","title":{"rendered":"A LINSTOR t\u00e1rol\u00f3 \u00e9s integr\u00e1ci\u00f3ja az OpenNebul\u00e1val","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><img decoding=\"async\" alt=\"A LINSTOR t\u00e1rol\u00f3 \u00e9s integr\u00e1ci\u00f3ja az OpenNebul\u00e1val\" src=\"\/wp-content\/uploads\/2019\/05\/c8b6a7c02c4e5b043be327838152f8a1.jpeg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p>Nem olyan r\u00e9gen a LINBIT sr\u00e1cai bemutatt\u00e1k \u00faj SDS-megold\u00e1sukat \u2013 a Linstort. Ez egy teljesen ingyenes t\u00e1rol\u00f3rendszer, amelynek alapj\u00e1t megb\u00edzhat\u00f3 technol\u00f3gi\u00e1k k\u00e9pezik: DRBD, LVM, ZFS. A Linstor egyszer\u0171s\u00e9get \u00e9s j\u00f3l kidolgozott architekt\u00far\u00e1t k\u00edn\u00e1l, ami lehet\u0151v\u00e9 teszi a stabilit\u00e1s \u00e9s az impoz\u00e1ns eredm\u00e9nyek el\u00e9r\u00e9s\u00e9t.<\/p>\n<p><\/p>\n<p>Ma szeretn\u00e9m egy kicsit r\u00e9szletesebben bemutatni, \u00e9s megmutatni, milyen egyszer\u0171 integr\u00e1lni az OpenNebul\u00e1val az linstor_un haszn\u00e1lat\u00e1val \u2013 ez egy \u00faj meghajt\u00f3, amelyet kifejezetten erre a c\u00e9lra fejlesztettem.<\/p>\n<p><\/p>\n<p>A Linstor \u00e9s az OpenNebula kombin\u00e1ci\u00f3ja gyors \u00e9s megb\u00edzhat\u00f3 felh\u0151 l\u00e9trehoz\u00e1s\u00e1t teszi lehet\u0151v\u00e9, amely probl\u00e9ma n\u00e9lk\u00fcl telep\u00edthet\u0151 a saj\u00e1t infrastrukt\u00far\u00e1ban.<\/p>\n<p><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<h2 id=\"arhitektura-linstor\">A Linstor architekt\u00far\u00e1ja<\/h2>\n<p><\/p>\n<p>A Linstor nem f\u00e1jlrendszer, sem \u00f6n\u00e1ll\u00f3 blokk t\u00e1rol\u00f3, hanem egy orchestr\u00e1tor, amely egy absztrakci\u00f3s r\u00e9teget biztos\u00edt, lehet\u0151v\u00e9 t\u00e9ve a k\u00f6tetek automatikus l\u00e9trehoz\u00e1s\u00e1t LVM vagy ZFS alatt, \u00e9s azok replik\u00e1l\u00e1s\u00e1t DRBD9 \u00e1ltal.<\/p>\n<p><\/p>\n<h5 id=\"lomaem-stereotipy\">Stereot\u00edpi\u00e1k lebont\u00e1sa<\/h5>\n<p><\/p>\n<p>De v\u00e1rj, DRBD? \u2013 Mi\u00e9rt kellene automatiz\u00e1lni, \u00e9s egy\u00e1ltal\u00e1n hogyan m\u0171k\u00f6dhet ez?<\/p>\n<p><\/p>\n<p>Eml\u00e9kezz\u00fcnk a m\u00faltra, amikor a DRBD8 sz\u00e9les k\u00f6rben elterjedt volt. A standard haszn\u00e1lat\u00e1ban egy nagy blokk eszk\u00f6z l\u00e9trehoz\u00e1sa \u00e9s annak sok apr\u00f3 darabra szab\u00e1sa t\u00f6rt\u00e9nt, ugyanazzal az LVM haszn\u00e1lat\u00e1val. Olyasmi, mint az mdadm RAID-1, de h\u00e1l\u00f3zati replik\u00e1ci\u00f3val.<\/p>\n<p><\/p>\n<p>Ez a megk\u00f6zel\u00edt\u00e9s nem mentes a h\u00e1tr\u00e1nyokt\u00f3l, ez\u00e9rt a DRBD9 meg\u00e9rkez\u00e9s\u00e9vel a t\u00e1rol\u00f3 fel\u00e9p\u00edt\u00e9si elvei megv\u00e1ltoztak, mostant\u00f3l minden virtu\u00e1lis g\u00e9phez k\u00fcl\u00f6n DRBD-eszk\u00f6zt hozunk l\u00e9tre.<\/p>\n<p><\/p>\n<p>A f\u00fcggetlen blokk eszk\u00f6z\u00f6kkel v\u00e9gzett megk\u00f6zel\u00edt\u00e9s jobb er\u0151forr\u00e1s-kiakn\u00e1z\u00e1st tesz lehet\u0151v\u00e9 a klaszterben, \u00e9s sz\u00e1mos tov\u00e1bbi lehet\u0151s\u00e9get is ny\u00fajt. P\u00e9ld\u00e1ul minden ilyen eszk\u00f6zn\u00e9l meghat\u00e1rozhatjuk a replik\u00e1k sz\u00e1m\u00e1t, elhelyezked\u00e9s\u00fcket \u00e9s egy\u00e9ni be\u00e1ll\u00edt\u00e1saikat. Ezeket k\u00f6nnyen l\u00e9trehozhatjuk\/elt\u00e1vol\u00edthatjuk, pillanatfelv\u00e9teleket k\u00e9sz\u00edthet\u00fcnk, m\u00f3dos\u00edthatjuk a m\u00e9retet, enged\u00e9lyezhetj\u00fck a titkos\u00edt\u00e1st \u00e9s sok m\u00e1s lehet\u0151s\u00e9get is k\u00edn\u00e1l. \u00c9rdemes megjegyezni, hogy a DRBD9 t\u00e1mogat\u00f3 quorum-mal is rendelkezik, amely elker\u00fcli a split-brain helyzeteket.<\/p>\n<p><\/p>\n<h5 id=\"resursy-i-bekendy\">Er\u0151forr\u00e1sok \u00e9s h\u00e1tt\u00e9rszolg\u00e1ltat\u00f3k<\/h5>\n<p><\/p>\n<p>\u00daj blokk eszk\u00f6z l\u00e9trehoz\u00e1sakor a Linstor a klaszter k\u00fcl\u00f6nb\u00f6z\u0151 NODE-jain elhelyezi a sz\u00fcks\u00e9ges replik\u00e1k sz\u00e1m\u00e1t. Minden ilyen replik\u00e1t DRBD-er\u0151forr\u00e1snak nevez\u00fcnk.<\/p>\n<p><\/p>\n<p>Az er\u0151forr\u00e1sok k\u00e9t t\u00edpus\u00faak:<\/p>\n<p><\/p>\n<ul>\n<li><strong>Adat-er\u0151forr\u00e1s<\/strong> \u2013 a LVM vagy ZFS t\u00e1rol\u00f3ban elhelyezett DRBD-eszk\u00f6zt k\u00e9pvisel.<br \/>\nJelenleg t\u00f6bb backend t\u00e1mogatott, \u00e9s a sz\u00e1muk folyamatosan n\u00f6vekszik. T\u00e1mogatott az LVM, ThinLVM \u00e9s ZFS. Az ut\u00f3bbi kett\u0151 lehet\u0151v\u00e9 teszi pillanatk\u00e9pek l\u00e9trehoz\u00e1s\u00e1t \u00e9s haszn\u00e1lat\u00e1t.<\/li>\n<li><strong>Diskless-forr\u00e1s<\/strong> \u2014 egy DRBD eszk\u00f6z, amely egy backend n\u00e9lk\u00fcli noden van elhelyezve, de lehet\u0151v\u00e9 teszi a szok\u00e1sos blokkeszk\u00f6zk\u00e9nt val\u00f3 kezel\u00e9s\u00e9t, minden olvas\u00e1si\/\u00edr\u00e1si m\u0171velet \u00e1tir\u00e1ny\u00edt\u00e1sra ker\u00fcl a data-forr\u00e1sokra. A legk\u00f6zelebbi anal\u00f3g a diskless-forr\u00e1sokhoz az iSCSI LUN.<\/li>\n<\/ul>\n<p><\/p>\n<p>Minden DRBD-forr\u00e1snak legfeljebb 8 replik\u00e1ja lehet, \u00e9s csak az egyik lehet alap\u00e9rtelmez\u00e9s szerint akt\u00edv \u2014 <strong>Primary<\/strong>, az \u00f6sszes t\u00f6bbi pedig <strong>Secondary<\/strong> lesz, \u00e9s a haszn\u00e1latuk nem lehets\u00e9ges, am\u00edg van legal\u00e1bb egy Primary, azaz egyszer\u0171en csak replik\u00e1lj\u00e1k az adatokat egym\u00e1s k\u00f6z\u00f6tt.<\/p>\n<p><\/p>\n<p>A DRBD eszk\u00f6z rendszerbe val\u00f3 csatlakoztat\u00e1sakor automatikusan <strong>Primary<\/strong>, \u00edgy m\u00e9g egy Diskless-forr\u00e1s is, a DRBD terminol\u00f3gi\u00e1j\u00e1ban, lehet Primary.<\/p>\n<p><\/p>\n<h5 id=\"tak-zachem-nuzhen-linstor\">Mi\u00e9rt van sz\u00fcks\u00e9g a Linstorra?<\/h5>\n<p><\/p>\n<p>Mivel az er\u0151forr\u00e1st ig\u00e9nyl\u0151 feladatokat a kernelre b\u00edzza, a Linstor l\u00e9nyeg\u00e9ben egy szok\u00e1sos Java-alkalmaz\u00e1s, amely lehet\u0151v\u00e9 teszi a DRBD-forr\u00e1sok l\u00e9trehoz\u00e1s\u00e1nak automatiz\u00e1l\u00e1s\u00e1t.<br \/>\nMinden \u00e1ltaluk l\u00e9trehozott forr\u00e1s egy f\u00fcggetlen DRBD klaszter lesz, amely \u00f6n\u00e1ll\u00f3an m\u0171k\u00f6dik, f\u00fcggetlen\u00fcl a control-plane \u00e1llapot\u00e1t\u00f3l \u00e9s a t\u00f6bbi DRBD-forr\u00e1st\u00f3l.<\/p>\n<p><\/p>\n<p><strong>A Linstor mind\u00f6ssze k\u00e9t komponensb\u0151l \u00e1ll:<\/strong><\/p>\n<p><\/p>\n<ul>\n<li><strong>Linstor-controller<\/strong> \u2014 Az alap kontroller, amely API-t biztos\u00edt a forr\u00e1sok l\u00e9trehoz\u00e1s\u00e1hoz \u00e9s kezel\u00e9s\u00e9hez. Kommunik\u00e1l a satellite-ekkel, ellen\u0151rzve a szabad helyet rajtuk, \u00e9s feladatokat k\u00fcld \u00faj forr\u00e1sok l\u00e9trehoz\u00e1s\u00e1ra \u00e9s t\u00f6rl\u00e9s\u00e9re. Egy p\u00e9ld\u00e1nyban fut, \u00e9s olyan adatb\u00e1zist haszn\u00e1l, amely lehet bels\u0151 (H2) vagy k\u00fcls\u0151 (PostgreSQL, MySQL, MariaDB).<\/li>\n<li><strong>Linstor-satellite<\/strong> \u2014 Minden storage node-ra telep\u00edtve van, \u00e9s inform\u00e1ci\u00f3t ny\u00fajt a kontrollernek a szabad helyr\u0151l, valamint a kontroller \u00e1ltal kapott feladatokat hajtja v\u00e9gre \u00faj k\u00f6tetek \u00e9s DRBD-eszk\u00f6z\u00f6k l\u00e9trehoz\u00e1s\u00e1ra \u00e9s t\u00f6rl\u00e9s\u00e9re.<\/li>\n<\/ul>\n<p><\/p>\n<p><strong>A Linstor a k\u00f6vetkez\u0151 kulcsfogalmakkal oper\u00e1l:<\/strong><\/p>\n<p><\/p>\n<ul>\n<li><strong>Node<\/strong> \u2014 a fizikai szerver, amelyen DRBD-forr\u00e1sokat hoznak l\u00e9tre \u00e9s haszn\u00e1lnak.<\/li>\n<li><strong>Storage Pool<\/strong> \u2014 LVM vagy ZFS medence, amelyet egy noden hoznak l\u00e9tre, ahol DRBD-forr\u00e1sokat t\u00e1rolnak. Diskless medence is lehets\u00e9ges \u2014 ez egy medence, ahol csak diskless-forr\u00e1sok t\u00e1rol\u00f3dnak.<\/li>\n<li><strong>Resource Definition<\/strong> \u2014 A forr\u00e1s l\u00e9nyeg\u00e9ben egy protot\u00edpus, amely le\u00edrja a nev\u00e9t \u00e9s minden tulajdons\u00e1g\u00e1t.<\/li>\n<li><strong>K\u00f6tet meghat\u00e1roz\u00e1sa<\/strong> \u2014 A k\u00f6tet meghat\u00e1roz\u00e1sa. Minden forr\u00e1s t\u00f6bb k\u00f6tetb\u0151l \u00e1llhat, minden k\u00f6tetnek rendelkeznie kell egy m\u00e9rettel.<\/li>\n<li><strong>Forr\u00e1s<\/strong> \u2014 A blokkalap\u00fa eszk\u00f6z l\u00e9trehozott p\u00e9ld\u00e1nya, minden forr\u00e1snak meghat\u00e1rozott csom\u00f3ponton \u00e9s valamilyen t\u00e1rol\u00e1si pool-ban kell elhelyezkednie.<\/li>\n<\/ul>\n<p><\/p>\n<h2 id=\"ustanovka-linstor\">Linstor telep\u00edt\u00e9se<\/h2>\n<p><\/p>\n<p>Aj\u00e1nlott rendszer az Ubuntu haszn\u00e1lata, mivel ehhez l\u00e9tezik <noindex><a rel=\"nofollow\" href=\"https:\/\/launchpad.net\/~linbit\/+archive\/ubuntu\/linbit-drbd9-stack\">k\u00e9sz PPA<\/a><\/noindex>:<\/p>\n<p><\/p>\n<pre><code class=\"bash\">add-apt-repository ppa:linbit\/linbit-drbd9-stack\napt-get update<\/code><\/pre>\n<p><\/p>\n<p>Vagy Debian, ahol a Linstor a Proxmox hivatalos t\u00e1rol\u00f3j\u00e1b\u00f3l telep\u00edthet\u0151:<\/p>\n<p><\/p>\n<pre><code class=\"bash\">wget -O- https:\/\/packages.linbit.com\/package-signing-pubkey.asc | apt-key add -\nPVERS=5 &amp;&amp; echo \"deb http:\/\/packages.linbit.com\/proxmox\/ proxmox-$PVERS drbd-9.0\" &gt; \n    \/etc\/apt\/sources.list.d\/linbit.list\napt-get update<\/code><\/pre>\n<p><\/p>\n<h5 id=\"controller\">Controller<\/h5>\n<p><\/p>\n<p>Itt minden egyszer\u0171:<\/p>\n<p><\/p>\n<pre><code class=\"bash\">apt-get install linstor-controller linstor-client\nsystemctl enable linstor-controller\nsystemctl start linstor-controller<\/code><\/pre>\n<p><\/p>\n<h5 id=\"storage-nody\">T\u00e1rol\u00f3 csom\u00f3pontok<\/h5>\n<p><\/p>\n<p>Jelenleg a Linux kernelben in-tree kernel modul tal\u00e1lhat\u00f3 <strong>DRBD8<\/strong>, sajnos ez nem megfelel\u0151 sz\u00e1munkra, \u00e9s sz\u00fcks\u00e9g\u00fcnk van <strong>DRBD9<\/strong>:<\/p>\n<p><\/p>\n<pre><code class=\"bash\">apt-get install drbd-dkms<\/code><\/pre>\n<p><\/p>\n<p>Gyakorlatilag a legt\u00f6bb neh\u00e9zs\u00e9g abb\u00f3l fakad, hogy a DRBD8 modul van bet\u00f6ltve a rendszerbe, nem pedig a DRBD9. Szerencs\u00e9re ezt k\u00f6nnyen ellen\u0151rizhetj\u00fck:<\/p>\n<p><\/p>\n<pre><code class=\"bash\">modprobe drbd\ncat \/proc\/drbd<\/code><\/pre>\n<p><\/p>\n<p>Ha l\u00e1tja <strong>verzi\u00f3: 9<\/strong> \u2014 akkor minden rendben van, ha <strong>verzi\u00f3: 8<\/strong> \u2014 akkor valami nem stimmel, \u00e9s tov\u00e1bbi l\u00e9p\u00e9seket kell tennie az okok felder\u00edt\u00e9se \u00e9rdek\u00e9ben.<\/p>\n<p><\/p>\n<p>Most telep\u00edts\u00fck <strong>linstor-satellite<\/strong> \u00e9s <strong>drbd-utils<\/strong>:<\/p>\n<p><\/p>\n<pre><code class=\"bash\">apt-get install linstor-satellite drbd-utils\nsystemctl enable linstor-satellite\nsystemctl start linstor-satellite<\/code><\/pre>\n<p><\/p>\n<h2 id=\"sozdanie-klastera\">Kl\u00f3noz\u00e1si folyamat l\u00e9trehoz\u00e1sa<\/h2>\n<p><\/p>\n<p><strong>T\u00e1rol\u00f3 poolok \u00e9s csom\u00f3pontok<\/strong><\/p>\n<p><\/p>\n<p>Backendk\u00e9nt a <strong>ThinLVM<\/strong>, mivel ez a legegyszer\u0171bb \u00e9s t\u00e1mogatja a pillanatk\u00e9peket.<br \/>\nTelep\u00edtse <strong>lvm2<\/strong>, ha ezt m\u00e9g nem tette meg, \u00e9s hozzunk l\u00e9tre ThinLVM pool-t minden t\u00e1rol\u00f3 csom\u00f3pontunkon:<\/p>\n<p><\/p>\n<pre><code class=\"bash\">sudo vgcreate drbdpool \/dev\/sdb\nsudo lvcreate -L 800G -T drbdpool\/thinpool<\/code><\/pre>\n<p><\/p>\n<p>Minden tov\u00e1bbi l\u00e9p\u00e9s k\u00f6zvetlen\u00fcl a vez\u00e9rl\u0151n hajthat\u00f3 v\u00e9gre:<\/p>\n<p><\/p>\n<p>Adjunk hozz\u00e1 a csom\u00f3pontjainkat:<\/p>\n<p><\/p>\n<pre><code class=\"bash\">linstor node create node1 127.0.0.11\nlinstor node create node2 127.0.0.12\nlinstor node create node3 127.0.0.13<\/code><\/pre>\n<p><\/p>\n<p>Hozzuk l\u00e9tre a t\u00e1rol\u00f3 poolokat:<\/p>\n<p><\/p>\n<pre><code class=\"bash\">linstor storage-pool create lvmthin node1 data drbdpool\/thinpool\nlinstor storage-pool create lvmthin node2 data drbdpool\/thinpool\nlinstor storage-pool create lvmthin node3 data drbdpool\/thinpool<\/code><\/pre>\n<p><\/p>\n<p>Most ellen\u0151rizz\u00fck a l\u00e9trehozott poolokat:<\/p>\n<p><\/p>\n<pre><code class=\"bash\">linstor storage-pool list<\/code><\/pre>\n<p><\/p>\n<p>Ha minden rendben van, valami ilyesmit kell l\u00e1tnunk:<\/p>\n<p><\/p>\n<pre>+-------------------------------------------------------------------------------------------------------+\n| StoragePool | Node  | Driver   | PoolName          | FreeCapacity | TotalCapacity | SupportsSnapshots |\n|-------------------------------------------------------------------------------------------------------|\n| data        | node1 | LVM_THIN | drbdpool\/thinpool |       64 GiB |        64 GiB | true              |\n| data        | node2 | LVM_THIN | drbdpool\/thinpool |       64 GiB |        64 GiB | true              |\n| data        | node3 | LVM_THIN | drbdpool\/thinpool |       64 GiB |        64 GiB | true              |\n+-------------------------------------------------------------------------------------------------------+<\/pre>\n<p><\/p>\n<p><strong>DRBD er\u0151forr\u00e1sok<\/strong><\/p>\n<p><\/p>\n<p>Most pr\u00f3b\u00e1ljuk meg l\u00e9trehozni az \u00faj DRBD er\u0151forr\u00e1sunkat:<\/p>\n<p><\/p>\n<pre><code class=\"bash\">linstor resource-definition create myres\nlinstor volume-definition create myres 1G\nlinstor resource create myres --auto-place 2<\/code><\/pre>\n<p><\/p>\n<p>Ellen\u0151rizz\u00fck a l\u00e9trehozott er\u0151forr\u00e1sokat:<\/p>\n<p><\/p>\n<pre><code class=\"bash\">linstor resource list <\/code><\/pre>\n<p><\/p>\n<pre>+------------------------------------------------------------------------------------------------------+\n| Node  | Resource | StoragePool | VolumeNr | MinorNr | DeviceName    | Allocated  | InUse  |    State |\n|------------------------------------------------------------------------------------------------------|\n| node1 | myres    | data        | 0        | 1084    | \/dev\/drbd1084 | 52 KiB     | Unused | UpToDate |\n| node2 | myres    | data        | 0        | 1084    | \/dev\/drbd1084 | 52 KiB     | Unused | UpToDate |\n+------------------------------------------------------------------------------------------------------+<\/pre>\n<p><\/p>\n<p>Remek! \u2014 l\u00e1tjuk, hogy az er\u0151forr\u00e1s az els\u0151 k\u00e9t node-on l\u00e9trej\u00f6tt, megpr\u00f3b\u00e1lhatunk egy diskless er\u0151forr\u00e1st l\u00e9trehozni a harmadikon: <\/p>\n<p><\/p>\n<pre><code class=\"bash\">linstor resource create --diskless node3 myres<\/code><\/pre>\n<p><\/p>\n<p>A node-okon mindig ezt az eszk\u00f6zt fogja tal\u00e1lni mint <code>\/dev\/drbd1084<\/code> vagy <code>\/dev\/drbd\/by-res\/myres\/0<\/code><\/p>\n<p><\/p>\n<p>\u00cdgy m\u0171k\u00f6dik a Linstor, t\u00f6bbet megtudhat a <noindex><a rel=\"nofollow\" href=\"https:\/\/docs.linbit.com\/docs\/users-guide-9.0\/\">hivatalos dokument\u00e1ci\u00f3ban<\/a><\/noindex>.<\/p>\n<p><\/p>\n<p>Most elmondom, hogyan integr\u00e1ljuk az OpenNebul\u00e1val<\/p>\n<p><\/p>\n<h2 id=\"nastroyka-opennebula\">OpenNebula konfigur\u00e1l\u00e1sa<\/h2>\n<p><\/p>\n<p>Nem fogok m\u00e9lyen belemenni az OpenNebula konfigur\u00e1l\u00e1s\u00e1nak folyamat\u00e1ba, mivel minden l\u00e9p\u00e9st r\u00e9szletesen ismertetnek a <noindex><a rel=\"nofollow\" href=\"https:\/\/docs.opennebula.org\/stable\/deployment\/opennebula_installation\/index.html\">hivatalos dokument\u00e1ci\u00f3ban<\/a><\/noindex>, amelyet aj\u00e1nlok figyelm\u00e9be, csak az OpenNebula \u00e9s a Linstor integr\u00e1ci\u00f3j\u00e1r\u00f3l fogok besz\u00e9lni.<\/p>\n<p><\/p>\n<h5 id=\"linstor_un\">linstor_un<\/h5>\n<p><\/p>\n<p>E feladat megold\u00e1s\u00e1hoz \u00edrtam egy saj\u00e1t drivert \u2014 <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/OpenNebula\/addon-linstor_un\">linstor_un<\/a><\/noindex>, jelenleg plugin form\u00e1j\u00e1ban el\u00e9rhet\u0151 \u00e9s k\u00fcl\u00f6n kell telep\u00edteni.<\/p>\n<p><\/p>\n<p>A telep\u00edt\u00e9s \u00f6sszesen az OpenNebula frontend node-okon t\u00f6rt\u00e9nik, \u00e9s nem ig\u00e9nyel tov\u00e1bbi l\u00e9p\u00e9seket a compute node-okon.<\/p>\n<p><\/p>\n<p>Els\u0151 l\u00e9p\u00e9sk\u00e9nt meg kell bizonyosodnunk arr\u00f3l, hogy van <strong>jq<\/strong> \u00e9s <strong>linstor-client<\/strong>:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">apt-get install jq linstor-client<\/code><\/pre>\n<p><\/p>\n<p>A parancs <code>linstor node list<\/code> a node-ok list\u00e1j\u00e1t kell megjelen\u00edtenie. Minden OpenNebula compute node-nak hozz\u00e1 kell adva lennie a Linstor klaszterhez.<\/p>\n<p><\/p>\n<p>T\u00f6lts\u00fck le \u00e9s telep\u00edts\u00fck a plugint:<\/p>\n<p><\/p>\n<pre><code class=\"bash\">curl -L https:\/\/github.com\/OpenNebula\/addon-linstor_un\/archive\/master.tar.gz | tar -xzvf - -C \/tmp\n\nmv \/tmp\/addon-linstor_un-master\/vmm\/kvm\/* \/var\/lib\/one\/remotes\/vmm\/kvm\/\n\nmkdir -p \/var\/lib\/one\/remotes\/etc\/datastore\/linstor_un\nmv \/tmp\/addon-linstor_un-master\/datastore\/linstor_un\/linstor_un.conf \/var\/lib\/one\/remotes\/etc\/datastore\/linstor_un\/linstor_un.conf\n\nmv \/tmp\/addon-linstor_un-master\/datastore\/linstor_un \/var\/lib\/one\/remotes\/datastore\/linstor_un\nmv \/tmp\/addon-linstor_un-master\/tm\/linstor_un \/var\/lib\/one\/remotes\/tm\/linstor_un\n\nrm -rf \/tmp\/addon-linstor_un-master<\/code><\/pre>\n<p><\/p>\n<p>Most m\u00e1r hozz\u00e1 kell adnunk a konfigur\u00e1ci\u00f3hoz az OpenNebul\u00e1ban, ehhez a k\u00f6vetkez\u0151 egyszer\u0171 l\u00e9p\u00e9seket hajtjuk v\u00e9gre <strong><noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/OpenNebula\/addon-linstor_un#update-onedconf\">itt<\/a><\/noindex><\/strong>.<\/p>\n<p><\/p>\n<p>Ezt k\u00f6vet\u0151en \u00fajraind\u00edtjuk az OpenNebul\u00e1t:<\/p>\n<p><\/p>\n<pre><code class=\"bash\">systemctl restart opennebula<\/code><\/pre>\n<p><\/p>\n<p>\u00c9s hozz\u00e1adjuk a datastorejainkat, a rendszert:<\/p>\n<p><\/p>\n<pre><code class=\"bash\">cat &gt; system-ds.conf &lt;&lt;EOT\nNAME=&quot;linstor-system&quot;\nTYPE=&quot;SYSTEM_DS&quot;\nSTORAGE_POOL=&quot;data&quot;\nAUTO_PLACE=&quot;2&quot;\nCLONE_MODE=&quot;snapshot&quot;\nCHECKPOINT_AUTO_PLACE=&quot;1&quot;\nBRIDGE_LIST=&quot;node1 node2 node3&quot;\nTM_MAD=&quot;linstor_un&quot;\nEOT\n\nonedatastore create system-ds.conf<\/code><\/pre>\n<p><\/p>\n<p>\u00c9s a k\u00e9pf\u00e1jl t\u00e1rol\u00f3j\u00e1t:<\/p>\n<p><\/p>\n<pre><code class=\"bash\">cat &gt; images-ds.conf &lt;&lt;EOT\nNAME=&quot;linstor-images&quot;\nTYPE=&quot;IMAGE_DS&quot;\nSTORAGE_POOL=&quot;data&quot;\nAUTO_PLACE=&quot;2&quot;\nBRIDGE_LIST=&quot;node1 node2 node3&quot;\nDISK_TYPE=&quot;BLOCK&quot;\nDS_MAD=&quot;linstor_un&quot;\nTM_MAD=&quot;linstor_un&quot;\nEOT\n\nonedatastore create images-ds.conf<\/code><\/pre>\n<p><\/p>\n<ul>\n<li>A parameter <code>AUTO_PLACE<\/code> megmutatja a data-replik\u00e1k sz\u00e1m\u00e1t, amely minden \u00faj k\u00e9phez l\u00e9trej\u00f6n az OpenNebul\u00e1ban.<\/li>\n<li>A parameter <code>CLONE_MODE<\/code> megadja, hogy pontosan hogyan fognak kl\u00f3nozni a k\u00e9pek \u00faj virtu\u00e1lis g\u00e9pek l\u00e9trehoz\u00e1sakor, <code>snapshot<\/code> \u2014 azaz k\u00e9pet k\u00e9sz\u00edt a pillanatk\u00e9pr\u0151l, \u00e9s abb\u00f3l ind\u00edtja el a virtu\u00e1lis g\u00e9pet, <code>m\u00e1sol\u00e1s<\/code> \u2014 teljes m\u00e1solatot k\u00e9sz\u00edt a k\u00e9pr\u0151l minden egyes virtu\u00e1lis g\u00e9phez.<\/li>\n<li>A <code>BRIDGE_LIST<\/code> aj\u00e1nlott megadni az \u00f6sszes csom\u00f3pontot, amelyet a k\u00e9pek kl\u00f3noz\u00e1si m\u0171veleteihez haszn\u00e1lnak. <\/li>\n<\/ul>\n<p><\/p>\n<p>A t\u00e1mogatott param\u00e9terek teljes list\u00e1j\u00e1t a k\u00f6vetkez\u0151 helyen tal\u00e1lja: <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/OpenNebula\/addon-linstor_un#opennebula-configuration\">README<\/a><\/noindex> projekt.<\/p>\n<p><\/p>\n<p>Ezzel a be\u00e1ll\u00edt\u00e1s befejez\u0151d\u00f6tt, most m\u00e1r bet\u00f6lthet\u00fcnk egy appliance-t az hivatalos <noindex><a rel=\"nofollow\" href=\"https:\/\/marketplace.opennebula.systems\/appliance\">OpenNebula Marketplace<\/a><\/noindex> \u00e9s l\u00e9trehozhatunk virtu\u00e1lis g\u00e9peket bel\u0151le.<\/p>\n<p><\/p>\n<p>A projekt linkje:<br \/>\n<noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/OpenNebula\/addon-linstor_un\">https:\/\/github.com\/OpenNebula\/addon-linstor_un<\/a><\/noindex><\/p>\n<p>Forr\u00e1s: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/451186\/\">habr.com<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u0440\u0435\u0431\u044f\u0442\u0430 \u0438\u0437 LINBIT \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u0441\u0432\u043e\u0435 \u043d\u043e\u0432\u043e\u0435 SDS-\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 Linstor. \u042d\u0442\u043e \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0432 \u043e\u0441\u043d\u043e\u0432\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0435 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438: DRBD, LVM, ZFS. Linstor \u0441\u043e\u0447\u0435\u0442\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0443 \u0438 \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u0440\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u0443\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0432\u043d\u0443\u0448\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u043e \u043d\u0435\u0433\u043e \u0447\u0443\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0441\u0442\u043e [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":25221,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-33523","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u0440\u0435\u0431\u044f\u0442\u0430 \u0438\u0437 LINBIT.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/hu\/blog\/administrirovanie\/hranilishhe-linstor-i-ego-integratsiya-s-opennebula\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"hu_HU\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 LINSTOR \u0438 \u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f \u0441 OpenNebula | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u0440\u0435\u0431\u044f\u0442\u0430 \u0438\u0437 LINBIT.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/hu\/blog\/administrirovanie\/hranilishhe-linstor-i-ego-integratsiya-s-opennebula\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-31T18:53:05+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T18:53:05+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47LINSTOR t\u00e1rol\u00f3 \u00e9s integr\u00e1ci\u00f3ja az OpenNebul\u00e1val | ProHoster","description":"Nem olyan r\u00e9g a LINBIT csapata.","canonical_url":"https:\/\/prohoster.info\/hu\/blog\/administrirovanie\/hranilishhe-linstor-i-ego-integratsiya-s-opennebula","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"hu_HU","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 LINSTOR \u0438 \u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f \u0441 OpenNebula | ProHoster","og:description":"\u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u0440\u0435\u0431\u044f\u0442\u0430 \u0438\u0437 LINBIT.","og:url":"https:\/\/prohoster.info\/hu\/blog\/administrirovanie\/hranilishhe-linstor-i-ego-integratsiya-s-opennebula","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-10-31T18:53:05+00:00","article:modified_time":"2019-10-31T18:53:05+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"33523","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-21 15:38:20","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-03-01 02:39:22","updated":"2026-01-21 15:38:20","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/33523","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/comments?post=33523"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/33523\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media\/25221"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media?parent=33523"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/categories?post=33523"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/tags?post=33523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}