# # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: Clusters from Scratch 1.1\n" "POT-Creation-Date: 2011-12-31T15:15:50\n" "PO-Revision-Date: 2011-11-25 23:39+0200\n" "Last-Translator: Dan Frîncu \n" "Language-Team: None\n" "MIME-Version: 1.0\n" "Content-Type: application/x-publican; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Tag: title #, no-c-format msgid "Replicated Storage with DRBD" msgstr "Stocare Replicată cu DRBD" #. Tag: para #, no-c-format msgid "Even if you’re serving up static websites, having to manually synchronize the contents of that website to all the machines in the cluster is not ideal. For dynamic websites, such as a wiki, it's not even an option. Not everyone care afford network-attached storage but somehow the data needs to be kept in sync. Enter DRBD which can be thought of as network based RAID-1. See http://www.drbd.org/ for more details." msgstr "Chiar și atunci când serviți site-uri statice, să trebuiască să sincronizați manual conținutul site-ului pe toate mașinile din cluster nu este ideal. Pentru site-uri dinamice, cu ar fi wiki-urile, nici măcar nu este o opțiune acest lucru. Nu toată lumea își poate permite stocare atașată la rețea dar cumva datele trebuie ținute sincronizate. Intră în scenă DRBD care poate fi considerat ca un RAID-1 la nivel de rețea. Vedeți http://www.drbd.org/ pentru mai multe detalii." #. Tag: title #, no-c-format msgid "Install the DRBD Packages" msgstr "Instalarea Pachetelor DRBD" #. Tag: para #, no-c-format msgid "Since its inclusion in the upstream 2.6.33 kernel, everything needed to use DRBD ships with &DISTRO; &DISTRO_VERSION;. All you need to do is install it:" msgstr "De la includerea acestuia în kernelul 2.6.33, tot ce este necesar pentru a rula DRBD este livrat cu &DISTRO; &DISTRO_VERSION;. Tot ceea ce trebuie să faceți este să îl instalați:" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# yum install -y drbd-pacemaker drbd-udev\n" "Loaded plugins: presto, refresh-packagekit\n" "Setting up Install Process\n" "Resolving Dependencies\n" "--> Running transaction check\n" "---> Package drbd-pacemaker.x86_64 0:8.3.7-2.fc13 set to be updated\n" "--> Processing Dependency: drbd-utils = 8.3.7-2.fc13 for package: drbd-pacemaker-8.3.7-2.fc13.x86_64\n" "--> Running transaction check\n" "---> Package drbd-utils.x86_64 0:8.3.7-2.fc13 set to be updated\n" "--> Finished Dependency Resolution\n" "\n" "Dependencies Resolved\n" "\n" "=================================================================================\n" " Package Arch Version Repository Size\n" "=================================================================================\n" "Installing:\n" " drbd-pacemaker x86_64 8.3.7-2.fc13 fedora 19 k\n" "Installing for dependencies:\n" " drbd-utils x86_64 8.3.7-2.fc13 fedora 165 k\n" "\n" "Transaction Summary\n" "=================================================================================\n" "Install 2 Package(s)\n" "Upgrade 0 Package(s)\n" "\n" "Total download size: 184 k\n" "Installed size: 427 k\n" "Downloading Packages:\n" "Setting up and reading Presto delta metadata\n" "fedora/prestodelta | 1.7 kB 00:00 \n" "Processing delta metadata\n" "Package(s) data still to download: 184 k\n" "(1/2): drbd-pacemaker-8.3.7-2.fc13.x86_64.rpm | 19 kB 00:01 \n" "(2/2): drbd-utils-8.3.7-2.fc13.x86_64.rpm | 165 kB 00:02 \n" "---------------------------------------------------------------------------------\n" "Total 45 kB/s | 184 kB 00:04 \n" "Running rpm_check_debug\n" "Running Transaction Test\n" "Transaction Test Succeeded\n" "Running Transaction\n" " Installing : drbd-utils-8.3.7-2.fc13.x86_64 1/2 \n" " Installing : drbd-pacemaker-8.3.7-2.fc13.x86_64 2/2 \n" "\n" "Installed:\n" " drbd-pacemaker.x86_64 0:8.3.7-2.fc13 \n" "\n" "Dependency Installed:\n" " drbd-utils.x86_64 0:8.3.7-2.fc13 \n" "\n" "Complete!\n" "[root@pcmk-1 ~]#\n" " " msgstr "\n" "[root@pcmk-1 ~]# yum install -y drbd-pacemaker drbd-udev\n" "Loaded plugins: presto, refresh-packagekit\n" "Setting up Install Process\n" "Resolving Dependencies\n" "--> Running transaction check\n" "---> Package drbd-pacemaker.x86_64 0:8.3.7-2.fc13 set to be updated\n" "--> Processing Dependency: drbd-utils = 8.3.7-2.fc13 for package: drbd-pacemaker-8.3.7-2.fc13.x86_64\n" "--> Running transaction check\n" "---> Package drbd-utils.x86_64 0:8.3.7-2.fc13 set to be updated\n" "--> Finished Dependency Resolution\n" "\n" "Dependencies Resolved\n" "\n" "=================================================================================\n" " Package Arch Version Repository Size\n" "=================================================================================\n" "Installing:\n" " drbd-pacemaker x86_64 8.3.7-2.fc13 fedora 19 k\n" "Installing for dependencies:\n" " drbd-utils x86_64 8.3.7-2.fc13 fedora 165 k\n" "\n" "Transaction Summary\n" "=================================================================================\n" "Install 2 Package(s)\n" "Upgrade 0 Package(s)\n" "\n" "Total download size: 184 k\n" "Installed size: 427 k\n" "Downloading Packages:\n" "Setting up and reading Presto delta metadata\n" "fedora/prestodelta | 1.7 kB 00:00 \n" "Processing delta metadata\n" "Package(s) data still to download: 184 k\n" "(1/2): drbd-pacemaker-8.3.7-2.fc13.x86_64.rpm | 19 kB 00:01 \n" "(2/2): drbd-utils-8.3.7-2.fc13.x86_64.rpm | 165 kB 00:02 \n" "---------------------------------------------------------------------------------\n" "Total 45 kB/s | 184 kB 00:04 \n" "Running rpm_check_debug\n" "Running Transaction Test\n" "Transaction Test Succeeded\n" "Running Transaction\n" " Installing : drbd-utils-8.3.7-2.fc13.x86_64 1/2 \n" " Installing : drbd-pacemaker-8.3.7-2.fc13.x86_64 2/2 \n" "\n" "Installed:\n" " drbd-pacemaker.x86_64 0:8.3.7-2.fc13 \n" "\n" "Dependency Installed:\n" " drbd-utils.x86_64 0:8.3.7-2.fc13 \n" "\n" "Complete!\n" "[root@pcmk-1 ~]#\n" " " #. Tag: title #, no-c-format msgid "Configure DRBD" msgstr "Configurarea DRBD" #. Tag: para #, no-c-format msgid "Before we configure DRBD, we need to set aside some disk for it to use." msgstr "Înainte să configurăm DRBD-ul, trebuie să punem deoparte spațiu pe disc pentru ca acesta să îl folosească." #. Tag: title #, no-c-format msgid "Create A Partition for DRBD" msgstr "Crearea Unei Partiții Pentru DRBD" #. Tag: para #, no-c-format msgid "If you have more than 1Gb free, feel free to use it. For this guide however, 1Gb is plenty of space for a single html file and sufficient for later holding the GFS2 metadata." msgstr "Dacă aveți mai mult de 1Gb liber, simțiți-vă liberi să-l folosiți. Pentru acest ghid însă, 1Gb este suficient spațiu pentru un singur fișier html și suficient pentru a stoca ulterior metadata din GFS2." #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# lvcreate -n drbd-demo -L 1G VolGroup\n" "  Logical volume \"drbd-demo\" created\n" "[root@pcmk-1 ~]# lvs\n" "  LV        VG       Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n" "  drbd-demo VolGroup -wi-a- 1.00G                                      \n" "  lv_root   VolGroup -wi-ao   7.30G                                      \n" "  lv_swap   VolGroup -wi-ao 500.00M\n" " " msgstr "\n" "[root@pcmk-1 ~]# lvcreate -n drbd-demo -L 1G VolGroup\n" "  Logical volume \"drbd-demo\" created\n" "[root@pcmk-1 ~]# lvs\n" "  LV        VG       Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n" "  drbd-demo VolGroup -wi-a- 1.00G                                      \n" "  lv_root   VolGroup -wi-ao   7.30G                                      \n" "  lv_swap   VolGroup -wi-ao 500.00M\n" " " #. Tag: para #, no-c-format msgid "Repeat this on the second node, be sure to use the same size partition." msgstr "Repetați acest lucru pe al doilea nod, asigurați-vă că folosiți o partiție de aceeași dimensiune." #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-2 ~]# lvs\n" "  LV      VG       Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n" "  lv_root VolGroup -wi-ao   7.30G                                      \n" "  lv_swap VolGroup -wi-ao 500.00M                                      \n" "[root@pcmk-2 ~]# lvcreate -n drbd-demo -L 1G VolGroup\n" "  Logical volume \"drbd-demo\" created\n" "[root@pcmk-2 ~]# lvs\n" "  LV        VG       Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n" "  drbd-demo VolGroup -wi-a- 1.00G                                      \n" "  lv_root   VolGroup -wi-ao   7.30G                                      \n" "  lv_swap   VolGroup -wi-ao 500.00M\n" " " msgstr "\n" "[root@pcmk-2 ~]# lvs\n" "  LV      VG       Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n" "  lv_root VolGroup -wi-ao   7.30G                                      \n" "  lv_swap VolGroup -wi-ao 500.00M                                      \n" "[root@pcmk-2 ~]# lvcreate -n drbd-demo -L 1G VolGroup\n" "  Logical volume \"drbd-demo\" created\n" "[root@pcmk-2 ~]# lvs\n" "  LV        VG       Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n" "  drbd-demo VolGroup -wi-a- 1.00G                                      \n" "  lv_root   VolGroup -wi-ao   7.30G                                      \n" "  lv_swap   VolGroup -wi-ao 500.00M\n" " " #. Tag: title #, no-c-format msgid "Write the DRBD Config" msgstr "Scrierea Config-ului DRBD" #. Tag: para #, no-c-format msgid "There is no series of commands for building a DRBD configuration, so simply copy the configuration below to /etc/drbd.conf" msgstr " Nu există nici o serie de comenzi pentru a construi configurația DRBD, așa că pur și simplu copiați configurația de mai jos în /etc/drbd.conf." #. Tag: para #, no-c-format msgid "Detailed information on the directives used in this configuration (and other alternatives) is available from http://www.drbd.org/users-guide/ch-configure.html" msgstr "Informații detaliate despre directivele folosite în această configurație (precum și alte alternative) sunt disponibile de pe http://www.drbd.org/users-guide/ch-configure.html" #. Tag: para #, no-c-format msgid "Be sure to use the names and addresses of your nodes if they differ from the ones used in this guide." msgstr "Asigurați-vă că folosiți numele și adresele nodurilor voastre, dacă diferă de cele folosite în acest ghid." #. Tag: screen #, no-c-format msgid "\n" "global { \n" "  usage-count yes; \n" "}\n" "common {\n" "  protocol C;\n" "}\n" "resource wwwdata {\n" "  meta-disk internal;\n" "  device    /dev/drbd1;\n" "  syncer {\n" "    verify-alg sha1;\n" "  }\n" "  net { \n" "    allow-two-primaries; \n" "  }\n" "  on pcmk-1 {\n" "    disk      /dev/mapper/VolGroup-drbd--demo;\n" "    address   192.168.122.101:7789; \n" "  }\n" "  on \n" "pcmk-2 {\n" "    disk      /dev/mapper/VolGroup-drbd--demo;\n" "    address   192.168.122.102:7789; \n" "  }\n" "}\n" " " msgstr "\n" "global { \n" "  usage-count yes; \n" "}\n" "common {\n" "  protocol C;\n" "}\n" "resource wwwdata {\n" "  meta-disk internal;\n" "  device    /dev/drbd1;\n" "  syncer {\n" "    verify-alg sha1;\n" "  }\n" "  net { \n" "    allow-two-primaries; \n" "  }\n" "  on pcmk-1 {\n" "    disk      /dev/mapper/VolGroup-drbd--demo;\n" "    address   192.168.122.101:7789; \n" "  }\n" "  on \n" "pcmk-2 {\n" "    disk      /dev/mapper/VolGroup-drbd--demo;\n" "    address   192.168.122.102:7789; \n" "  }\n" "}\n" " " #. Tag: para #, no-c-format msgid "TODO: Explain the reason for the allow-two-primaries option" msgstr "TODO: De explicat motivul pentru opțiunea allow-two primaries" #. Tag: title #, no-c-format msgid "Initialize and Load DRBD" msgstr "Inițializarea și Încărcarea DRBD-ului" #. Tag: para #, no-c-format msgid "With the configuration in place, we can now perform the DRBD initialization" msgstr "Cu configurația pusă la locul ei, acum putem executa inițializarea DRBD-ului." #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# drbdadm create-md wwwdata\n" "md_offset 12578816\n" "al_offset 12546048\n" "bm_offset 12541952\n" "\n" "Found some data \n" " ==> This might destroy existing data! <==\n" "\n" "Do you want to proceed?\n" "[need to type 'yes' to confirm] yes\n" "\n" "Writing meta data...\n" "initializing activity log\n" "NOT initialized bitmap\n" "New drbd meta data block successfully created.\n" "success\n" " " msgstr "\n" "[root@pcmk-1 ~]# drbdadm create-md wwwdata\n" "md_offset 12578816\n" "al_offset 12546048\n" "bm_offset 12541952\n" "\n" "Found some data \n" " ==> This might destroy existing data! <==\n" "\n" "Do you want to proceed?\n" "[need to type 'yes' to confirm] yes\n" "\n" "Writing meta data...\n" "initializing activity log\n" "NOT initialized bitmap\n" "New drbd meta data block successfully created.\n" "success\n" " " #. Tag: para #, no-c-format msgid "Now load the DRBD kernel module and confirm that everything is sane" msgstr "Acum încărcați modulul de kernel al DRBD și confirmați că totul este în regulă" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# modprobe drbd\n" "[root@pcmk-1 ~]# drbdadm up wwwdata\n" "[root@pcmk-1 ~]# cat /proc/drbd\n" "version: 8.3.6 (api:88/proto:86-90)\n" "GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" "\n" " 1: cs:WFConnection ro:Secondary/Unknown ds:Inconsistent/DUnknown C r----\n" "    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:12248\n" "[root@pcmk-1 ~]# \n" "\n" "Repeat on the second node\n" "drbdadm --force create-md wwwdata \n" "modprobe drbd\n" "drbdadm up wwwdata\n" "cat /proc/drbd\n" "[root@pcmk-2 ~]# drbdadm --force create-md wwwdata\n" "Writing meta data...\n" "initializing activity log\n" "NOT initialized bitmap\n" "New drbd meta data block successfully created.\n" "success\n" "[root@pcmk-2 ~]# modprobe drbd\n" "WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.\n" "[root@pcmk-2 ~]# drbdadm up wwwdata\n" "[root@pcmk-2 ~]# cat /proc/drbd\n" "version: 8.3.6 (api:88/proto:86-90)\n" "GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" "\n" " 1: cs:Connected ro:Secondary/Secondary ds:Inconsistent/Inconsistent C r----\n" "    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:12248\n" " " msgstr "\n" "[root@pcmk-1 ~]# modprobe drbd\n" "[root@pcmk-1 ~]# drbdadm up wwwdata\n" "[root@pcmk-1 ~]# cat /proc/drbd\n" "version: 8.3.6 (api:88/proto:86-90)\n" "GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" "\n" " 1: cs:WFConnection ro:Secondary/Unknown ds:Inconsistent/DUnknown C r----\n" "    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:12248\n" "[root@pcmk-1 ~]# \n" "\n" "Repeat on the second node\n" "drbdadm --force create-md wwwdata \n" "modprobe drbd\n" "drbdadm up wwwdata\n" "cat /proc/drbd\n" "[root@pcmk-2 ~]# drbdadm --force create-md wwwdata\n" "Writing meta data...\n" "initializing activity log\n" "NOT initialized bitmap\n" "New drbd meta data block successfully created.\n" "success\n" "[root@pcmk-2 ~]# modprobe drbd\n" "WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.\n" "[root@pcmk-2 ~]# drbdadm up wwwdata\n" "[root@pcmk-2 ~]# cat /proc/drbd\n" "version: 8.3.6 (api:88/proto:86-90)\n" "GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" "\n" " 1: cs:Connected ro:Secondary/Secondary ds:Inconsistent/Inconsistent C r----\n" "    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:12248\n" " " #. Tag: para #, no-c-format msgid "Now we need to tell DRBD which set of data to use. Since both sides contain garbage, we can run the following on pcmk-1:" msgstr "Acum trebuie să spunem DRBD-ului care set de date să îl folosească. Din moment ce ambele părți conțin date nefolositoare, putem rula următoarea comandă pe pcmk-1:" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# drbdadm -- --overwrite-data-of-peer primary wwwdata\n" "[root@pcmk-1 ~]# cat /proc/drbd\n" "version: 8.3.6 (api:88/proto:86-90)\n" "GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" " 1: cs:SyncSource ro:Primary/Secondary ds:UpToDate/Inconsistent C r----\n" "    ns:2184 nr:0 dw:0 dr:2472 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:10064\n" "        [=====>..............] sync'ed: 33.4% (10064/12248)K\n" "        finish: 0:00:37 speed: 240 (240) K/sec\n" "[root@pcmk-1 ~]# cat /proc/drbd\n" "version: 8.3.6 (api:88/proto:86-90)\n" "GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" " 1: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r----\n" "    ns:12248 nr:0 dw:0 dr:12536 al:0 bm:1 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0\n" " " msgstr "\n" "[root@pcmk-1 ~]# drbdadm -- --overwrite-data-of-peer primary wwwdata\n" "[root@pcmk-1 ~]# cat /proc/drbd\n" "version: 8.3.6 (api:88/proto:86-90)\n" "GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" " 1: cs:SyncSource ro:Primary/Secondary ds:UpToDate/Inconsistent C r----\n" "    ns:2184 nr:0 dw:0 dr:2472 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:10064\n" "        [=====>..............] sync'ed: 33.4% (10064/12248)K\n" "        finish: 0:00:37 speed: 240 (240) K/sec\n" "[root@pcmk-1 ~]# cat /proc/drbd\n" "version: 8.3.6 (api:88/proto:86-90)\n" "GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" " 1: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r----\n" "    ns:12248 nr:0 dw:0 dr:12536 al:0 bm:1 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0\n" " " #. Tag: para #, no-c-format msgid "pcmk-1 is now in the Primary state which allows it to be written to. Which means it's a good point at which to create a filesystem and populate it with some data to serve up via our WebSite resource." msgstr "pcmk-1 este acum în starea Primară care îi permite să scrie pe acesta. Lucru care înseamnă că este un punct bun în care să creăm un sistem de fișiere și să îl populăm cu ceva date pe care să le servim prin resursa noastră WebSite." #. Tag: title #, no-c-format msgid "Populate DRBD with Data" msgstr "Popularea DRBD-ului cu Date" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# mkfs.ext4 /dev/drbd1\n" "mke2fs 1.41.4 (27-Jan-2009)\n" "Filesystem label=\n" "OS type: Linux\n" "Block size=1024 (log=0)\n" "Fragment size=1024 (log=0)\n" "3072 inodes, 12248 blocks\n" "612 blocks (5.00%) reserved for the super user\n" "First data block=1\n" "Maximum filesystem blocks=12582912\n" "2 block groups\n" "8192 blocks per group, 8192 fragments per group\n" "1536 inodes per group\n" "Superblock backups stored on blocks: \n" "        8193\n" "\n" "Writing inode tables: done                            \n" "Creating journal (1024 blocks): done\n" "Writing superblocks and filesystem accounting information: done\n" "\n" "This filesystem will be automatically checked every 26 mounts or\n" "180 days, whichever comes first.  Use tune2fs -c or -i to override.\n" "\n" "Now mount the newly created filesystem so we can create our index file\n" "mount /dev/drbd1 /mnt/\n" "cat <<-END >/mnt/index.html\n" "<html>\n" "<body>My Test Site - drbd</body>\n" "</html>\n" "END\n" "umount /dev/drbd1\n" "[root@pcmk-1 ~]# mount /dev/drbd1 /mnt/\n" "[root@pcmk-1 ~]# cat <<-END >/mnt/index.html\n" "> <html>\n" "> <body>My Test Site - drbd</body>\n" "> </html>\n" "> END\n" "[root@pcmk-1 ~]# umount /dev/drbd1\n" " " msgstr "\n" "[root@pcmk-1 ~]# mkfs.ext4 /dev/drbd1\n" "mke2fs 1.41.4 (27-Jan-2009)\n" "Filesystem label=\n" "OS type: Linux\n" "Block size=1024 (log=0)\n" "Fragment size=1024 (log=0)\n" "3072 inodes, 12248 blocks\n" "612 blocks (5.00%) reserved for the super user\n" "First data block=1\n" "Maximum filesystem blocks=12582912\n" "2 block groups\n" "8192 blocks per group, 8192 fragments per group\n" "1536 inodes per group\n" "Superblock backups stored on blocks: \n" "        8193\n" "\n" "Writing inode tables: done                            \n" "Creating journal (1024 blocks): done\n" "Writing superblocks and filesystem accounting information: done\n" "\n" "This filesystem will be automatically checked every 26 mounts or\n" "180 days, whichever comes first.  Use tune2fs -c or -i to override.\n" "\n" "Now mount the newly created filesystem so we can create our index file\n" "mount /dev/drbd1 /mnt/\n" "cat <<-END >/mnt/index.html\n" "<html>\n" "<body>My Test Site - drbd</body>\n" "</html>\n" "END\n" "umount /dev/drbd1\n" "[root@pcmk-1 ~]# mount /dev/drbd1 /mnt/\n" "[root@pcmk-1 ~]# cat <<-END >/mnt/index.html\n" "> <html>\n" "> <body>My Test Site - drbd</body>\n" "> </html>\n" "> END\n" "[root@pcmk-1 ~]# umount /dev/drbd1\n" " " #. Tag: title #, no-c-format msgid "Configure the Cluster for DRBD" msgstr "Configurarea Clusterului pentru DRBD" #. Tag: para #, no-c-format msgid "One handy feature of the crm shell is that you can use it in interactive mode to make several changes atomically." msgstr "O funcționalitate utilă a shell-ului crm este aceea că îl puteți folosi în mod interactiv pentru a realiza mai multe modificări în mod atomic." #. Tag: para #, no-c-format msgid "First we launch the shell. The prompt will change to indicate you’re in interactive mode." msgstr "Întâi lansăm shell-ul. Promptul se va schimba pentru a indica faptul că sunteți în mod interactiv." #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm\n" "cib crm(live)#\n" " " msgstr "\n" "[root@pcmk-1 ~]# crm\n" "cib crm(live)#\n" " " #. Tag: para #, no-c-format msgid "Next we must create a working copy of the current configuration. This is where all our changes will go. The cluster will not see any of them until we say it's ok. Notice again how the prompt changes, this time to indicate that we’re no longer looking at the live cluster." msgstr "În continuare trebuie să creăm o copie funcțională a configurației curente. Acesta este locul în care vor merge toate modificările noastre. Clusterul nu va vedea nici una dintre ele până nu spunem noi că este ok. Observați cum promptul se schimbă din nou, de această dată pentru a indica faptul că nu ne mai uităm la clusterul live." #. Tag: screen #, no-c-format msgid "\n" "cib crm(live)# cib new drbd\n" "INFO: drbd shadow CIB created\n" "crm(drbd)#\n" " " msgstr "\n" "cib crm(live)# cib new drbd\n" "INFO: drbd shadow CIB created\n" "crm(drbd)#\n" " " #. Tag: para #, no-c-format msgid "Now we can create our DRBD clone and display the revised configuration." msgstr "Acum putem crea clona noastră de DRBD și să listăm configurația revizuită." #. Tag: screen #, no-c-format msgid "\n" "crm(drbd)# configure primitive WebData ocf:linbit:drbd params drbd_resource=wwwdata \\\n" "        op monitor interval=60s\n" "crm(drbd)# configure ms WebDataClone WebData meta master-max=1 master-node-max=1 \\\n" "        clone-max=2 clone-node-max=1 notify=true\n" "crm(drbd)# configure show\n" "node pcmk-1\n" "node pcmk-2\n" "primitive WebData ocf:linbit:drbd \\\n" " params drbd_resource=\"wwwdata\" \\\n" " op monitor interval=\"60s\"\n" "primitive WebSite ocf:heartbeat:apache \\\n" "        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" "        op monitor interval=\"1min\"\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" "        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" "        op monitor interval=\"30s\"\n" "ms WebDataClone WebData \\\n" " meta master-max=\"1\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" "location prefer-pcmk-1 WebSite 50: pcmk-1\n" "colocation website-with-ip inf: WebSite ClusterIP\n" "order apache-after-ip inf: ClusterIP WebSite\n" "property $id=\"cib-bootstrap-options\" \\\n" "        dc-version=\"1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\" \\\n" "        cluster-infrastructure=\"openais\" \\\n" "        expected-quorum-votes=\"2\" \\\n" "        stonith-enabled=\"false\" \\\n" "        no-quorum-policy=\"ignore\"\n" "rsc_defaults $id=\"rsc-options\" \\\n" "        resource-stickiness=\"100\"\n" " " msgstr "\n" "crm(drbd)# configure primitive WebData ocf:linbit:drbd params drbd_resource=wwwdata \\\n" "        op monitor interval=60s\n" "crm(drbd)# configure ms WebDataClone WebData meta master-max=1 master-node-max=1 \\\n" "        clone-max=2 clone-node-max=1 notify=true\n" "crm(drbd)# configure show\n" "node pcmk-1\n" "node pcmk-2\n" "primitive WebData ocf:linbit:drbd \\\n" " params drbd_resource=\"wwwdata\" \\\n" " op monitor interval=\"60s\"\n" "primitive WebSite ocf:heartbeat:apache \\\n" "        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" "        op monitor interval=\"1min\"\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" "        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" "        op monitor interval=\"30s\"\n" "ms WebDataClone WebData \\\n" " meta master-max=\"1\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" "location prefer-pcmk-1 WebSite 50: pcmk-1\n" "colocation website-with-ip inf: WebSite ClusterIP\n" "order apache-after-ip inf: ClusterIP WebSite\n" "property $id=\"cib-bootstrap-options\" \\\n" "        dc-version=\"1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\" \\\n" "        cluster-infrastructure=\"openais\" \\\n" "        expected-quorum-votes=\"2\" \\\n" "        stonith-enabled=\"false\" \\\n" "        no-quorum-policy=\"ignore\"\n" "rsc_defaults $id=\"rsc-options\" \\\n" "        resource-stickiness=\"100\"\n" " " #. Tag: para #, no-c-format msgid "Once we’re happy with the changes, we can tell the cluster to start using them and use crm_mon to check everything is functioning." msgstr "Odată ce suntem multumiți cu modificările realizate, putem spune clusterului să înceapă să le folosească și vom folosi crm_mon pentru a verifica faptul că totul funcționează." #. Tag: screen #, no-c-format msgid "\n" "crm(drbd)# cib commit drbd\n" "INFO: commited 'drbd' shadow CIB to the cluster\n" "crm(drbd)# quit\n" "bye\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Tue Sep  1 09:37:13 2009\n" "Stack: openais\n" "Current DC: pcmk-1 - partition with quorum\n" "Version: 1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\n" "2 Nodes configured, 2 expected votes\n" "3 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" "WebSite (ocf::heartbeat:apache):        Started pcmk-1\n" "Master/Slave Set: WebDataClone\n" " Masters: [ pcmk-2 ]\n" " Slaves: [ pcmk-1 ]\n" " " msgstr "\n" "crm(drbd)# cib commit drbd\n" "INFO: commited 'drbd' shadow CIB to the cluster\n" "crm(drbd)# quit\n" "bye\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Tue Sep  1 09:37:13 2009\n" "Stack: openais\n" "Current DC: pcmk-1 - partition with quorum\n" "Version: 1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\n" "2 Nodes configured, 2 expected votes\n" "3 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" "WebSite (ocf::heartbeat:apache):        Started pcmk-1\n" "Master/Slave Set: WebDataClone\n" " Masters: [ pcmk-2 ]\n" " Slaves: [ pcmk-1 ]\n" " " #. Tag: para #, no-c-format msgid "Include details on adding a second DRBD resource" msgstr "Include detalii despre adăugarea unei resurse secundare DRBD" #. Tag: para #, no-c-format msgid "Now that DRBD is functioning we can configure a Filesystem resource to use it. In addition to the filesystem’s definition, we also need to tell the cluster where it can be located (only on the DRBD Primary) and when it is allowed to start (after the Primary was promoted)." msgstr "Acum că DRBD funcționează putem configura o resursă Filesystem pentru a îl folosi. Suplimentar față de definiția sistemului de fișiere, trebuie să spunem clusterului de asemenea unde poate fi plasată (doar pe DRBD-ul Primar) și când îi este permis să pornească (după ce nodul a fost promovat la acest rol - Primar)." #. Tag: para #, no-c-format msgid "Once again we’ll use the shell’s interactive mode" msgstr "Încă o dată vom folosi modul interactiv al shell-ului" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm\n" "crm(live)# cib new fs\n" "INFO: fs shadow CIB created\n" "crm(fs)# configure primitive WebFS ocf:heartbeat:Filesystem \\\n" "        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=\"ext4\"\n" "crm(fs)# configure colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" "crm(fs)# configure order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" " " msgstr "\n" "[root@pcmk-1 ~]# crm\n" "crm(live)# cib new fs\n" "INFO: fs shadow CIB created\n" "crm(fs)# configure primitive WebFS ocf:heartbeat:Filesystem \\\n" "        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=\"ext4\"\n" "crm(fs)# configure colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" "crm(fs)# configure order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" " " #. Tag: para #, no-c-format msgid "We also need to tell the cluster that Apache needs to run on the same machine as the filesystem and that it must be active before Apache can start." msgstr "Trebuie să spunem clusterului de asemenea că Apache are nevoie să ruleze pe aceeași mașină ca și sistemul de fișiere și că trebuie să fie activ înainte ca Apache să pornească." #. Tag: screen #, no-c-format msgid "\n" "crm(fs)# configure colocation WebSite-with-WebFS inf: WebSite WebFS\n" "crm(fs)# configure order WebSite-after-WebFS inf: WebFS WebSite\n" " " msgstr "\n" "crm(fs)# configure colocation WebSite-with-WebFS inf: WebSite WebFS\n" "crm(fs)# configure order WebSite-after-WebFS inf: WebFS WebSite\n" " " #. Tag: para #, no-c-format msgid "Time to review the updated configuration:" msgstr "E timpul să revizuim configurația actualizată:" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm configure show\n" "node pcmk-1\n" "node pcmk-2\n" "primitive WebData ocf:linbit:drbd \\\n" "        params drbd_resource=\"wwwdata\" \\\n" "        op monitor interval=\"60s\"\n" "primitive WebFS ocf:heartbeat:Filesystem \\\n" "        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=\"ext4\"\n" "primitive WebSite ocf:heartbeat:apache \\\n" "        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" "        op monitor interval=\"1min\"\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" "        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" "        op monitor interval=\"30s\"\n" "ms WebDataClone WebData \\\n" "        meta master-max=\"1\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" "location prefer-pcmk-1 WebSite 50: pcmk-1\n" "colocation WebSite-with-WebFS inf: WebSite WebFS\n" "colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" "colocation website-with-ip inf: WebSite ClusterIP\n" "order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" "order WebSite-after-WebFS inf: WebFS WebSite\n" "order apache-after-ip inf: ClusterIP WebSite\n" "property $id=\"cib-bootstrap-options\" \\\n" "        dc-version=\"1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\" \\\n" "        cluster-infrastructure=\"openais\" \\\n" "        expected-quorum-votes=\"2\" \\\n" "        stonith-enabled=\"false\" \\\n" "        no-quorum-policy=\"ignore\"\n" "rsc_defaults $id=\"rsc-options\" \\\n" "        resource-stickiness=\"100\"\n" " " msgstr "\n" "[root@pcmk-1 ~]# crm configure show\n" "node pcmk-1\n" "node pcmk-2\n" "primitive WebData ocf:linbit:drbd \\\n" "        params drbd_resource=\"wwwdata\" \\\n" "        op monitor interval=\"60s\"\n" "primitive WebFS ocf:heartbeat:Filesystem \\\n" "        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=\"ext4\"\n" "primitive WebSite ocf:heartbeat:apache \\\n" "        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" "        op monitor interval=\"1min\"\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" "        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" "        op monitor interval=\"30s\"\n" "ms WebDataClone WebData \\\n" "        meta master-max=\"1\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" "location prefer-pcmk-1 WebSite 50: pcmk-1\n" "colocation WebSite-with-WebFS inf: WebSite WebFS\n" "colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" "colocation website-with-ip inf: WebSite ClusterIP\n" "order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" "order WebSite-after-WebFS inf: WebFS WebSite\n" "order apache-after-ip inf: ClusterIP WebSite\n" "property $id=\"cib-bootstrap-options\" \\\n" "        dc-version=\"1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\" \\\n" "        cluster-infrastructure=\"openais\" \\\n" "        expected-quorum-votes=\"2\" \\\n" "        stonith-enabled=\"false\" \\\n" "        no-quorum-policy=\"ignore\"\n" "rsc_defaults $id=\"rsc-options\" \\\n" "        resource-stickiness=\"100\"\n" " " #. Tag: para #, no-c-format msgid "After reviewing the new configuration, we again upload it and watch the cluster put it into effect." msgstr "După ce am revizuit configurația nouă, o încărcăm din nou și urmărim clusterul cum o pune în folosință." #. Tag: screen #, no-c-format msgid "\n" "crm(fs)# cib commit fs\n" "INFO: commited 'fs' shadow CIB to the cluster\n" "crm(fs)# quit\n" "bye\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Tue Sep  1 10:08:44 2009\n" "Stack: openais\n" "Current DC: pcmk-1 - partition with quorum\n" "Version: 1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\n" "2 Nodes configured, 2 expected votes\n" "4 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" "WebSite (ocf::heartbeat:apache): Started pcmk-1\n" "Master/Slave Set: WebDataClone\n" "        Masters: [ pcmk-1 ]\n" "        Slaves: [ pcmk-2 ]\n" "WebFS (ocf::heartbeat:Filesystem): Started pcmk-1\n" " " msgstr "\n" "crm(fs)# cib commit fs\n" "INFO: commited 'fs' shadow CIB to the cluster\n" "crm(fs)# quit\n" "bye\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Tue Sep  1 10:08:44 2009\n" "Stack: openais\n" "Current DC: pcmk-1 - partition with quorum\n" "Version: 1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\n" "2 Nodes configured, 2 expected votes\n" "4 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" "WebSite (ocf::heartbeat:apache): Started pcmk-1\n" "Master/Slave Set: WebDataClone\n" "        Masters: [ pcmk-1 ]\n" "        Slaves: [ pcmk-2 ]\n" "WebFS (ocf::heartbeat:Filesystem): Started pcmk-1\n" " " #. Tag: title #, no-c-format msgid "Testing Migration" msgstr "Testarea Migrării" #. Tag: para #, no-c-format msgid "We could shut down the active node again, but another way to safely simulate recovery is to put the node into what is called \"standby mode\". Nodes in this state tell the cluster that they are not allowed to run resources. Any resources found active there will be moved elsewhere. This feature can be particularly useful when updating the resources’ packages." msgstr "Am putea opri nodul activ din nou, dar o altă cale sigură de a simula recuperarea este de a pune nodul în ceea ce este numit \"mod standby\". Nodurile în această stare spun clusterului că nu li se permite să ruleze resurse. Orice resursă gasită ca fiind activă acolo va fi mutată în altă parte Această funcționalitate poate fi deosebit de utilă atunci când actualizați pachetele resurselor." #. Tag: para #, no-c-format msgid "Put the local node into standby mode and observe the cluster move all the resources to the other node. Note also that the node’s status will change to indicate that it can no longer host resources." msgstr "Puneți nodul local în mod standby și observați cum clusterul mută toate resursele pe nodul celălalt. Observați de asemenea că status-ul nodului se va schimba pentru a indica faptul că nu mai poate găzdui resurse." #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm node standby\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Tue Sep  1 10:09:57 2009\n" "Stack: openais\n" "Current DC: pcmk-1 - partition with quorum\n" "Version: 1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\n" "2 Nodes configured, 2 expected votes\n" "4 Resources configured.\n" "============\n" "\n" "Node pcmk-1: standby\n" "Online: [ pcmk-2 ]\n" "\n" "ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" "WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" "Master/Slave Set: WebDataClone\n" "        Masters: [ pcmk-2 ]\n" "        Stopped: [ WebData:1 ]\n" "WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-2\n" " " msgstr "\n" "[root@pcmk-1 ~]# crm node standby\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Tue Sep  1 10:09:57 2009\n" "Stack: openais\n" "Current DC: pcmk-1 - partition with quorum\n" "Version: 1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\n" "2 Nodes configured, 2 expected votes\n" "4 Resources configured.\n" "============\n" "\n" "Node pcmk-1: standby\n" "Online: [ pcmk-2 ]\n" "\n" "ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" "WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" "Master/Slave Set: WebDataClone\n" "        Masters: [ pcmk-2 ]\n" "        Stopped: [ WebData:1 ]\n" "WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-2\n" " " #. Tag: para #, no-c-format msgid "Once we’ve done everything we needed to on pcmk-1 (in this case nothing, we just wanted to see the resources move), we can allow the node to be a full cluster member again." msgstr "Odată ce am făcut tot ceea ce era nevoie să facem pe pcmk-1 (în acest caz nimic, vroiam doar să vedem resursele mutându-se), putem permite nodului să fie din nou un membru întreg al clusterului." #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm node online\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Tue Sep  1 10:13:25 2009\n" "Stack: openais\n" "Current DC: pcmk-1 - partition with quorum\n" "Version: 1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\n" "2 Nodes configured, 2 expected votes\n" "4 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" "WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" "Master/Slave Set: WebDataClone\n" "        Masters: [ pcmk-2 ]\n" "        Slaves: [ pcmk-1 ]\n" "WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-2\n" " " msgstr "\n" "[root@pcmk-1 ~]# crm node online\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Tue Sep  1 10:13:25 2009\n" "Stack: openais\n" "Current DC: pcmk-1 - partition with quorum\n" "Version: 1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\n" "2 Nodes configured, 2 expected votes\n" "4 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" "WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" "Master/Slave Set: WebDataClone\n" "        Masters: [ pcmk-2 ]\n" "        Slaves: [ pcmk-1 ]\n" "WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-2\n" " " #. Tag: para #, no-c-format msgid "Notice that our resource stickiness settings prevent the services from migrating back to pcmk-1." msgstr "Observați că setările noastre de adezivitate a resurselor previn serviciile din a migra înapoi pe pcmk-1."