Aktiv/Passive-Cluster

Aus Wiki schlicker.org
Zur Navigation springen Zur Suche springen

Grundinstallation

Bei Strato den Punkt Mein Server/Neuinstallation auswählen und dann den Installationsassistent starten.

Nutzungszweck: Experteneinsatz
Betriebssystem: CentOS 7 64bit
Sprache: deutsch
Partitionierung: minimal (/boot 1GB, swap 8GB, / 20GB)

Dann die Neuinstallation durch setzen des Hakens starten.

Repositories

Zuerst zusätzliche Repositories hinzufügen und das System updaten.

 yum -y update

Root-Partition vergrößern

Das System im Rescue-Modus über die Strato-Oberfläche starten. Nach der Anmeldung als root, die bestehende Raid-Devices starten.

root@h2814988:~# mdadm -A --scan
root@h2814988:~# cat /proc/mdstat 
Personalities : [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] 
md126 : active raid1 sda1[0] sdb1[1]
      1023936 blocks super 1.0 [2/2] [UU]
      
md127 : active raid1 sda3[0] sdb3[1]
      20479872 blocks super 1.0 [2/2] [UU]
      
unused devices: <none>

Anzeige der Information über das Raid. root@h2814988:~# mdadm -D /dev/md127 /dev/md127:

       Version : 1.0
 Creation Time : Mon Feb  4 21:34:05 2019
    Raid Level : raid1
    Array Size : 20479872 (19.53 GiB 20.97 GB)
 Used Dev Size : 20479872 (19.53 GiB 20.97 GB)
  Raid Devices : 2
 Total Devices : 2
   Persistence : Superblock is persistent
   Update Time : Tue Feb  5 19:07:19 2019
         State : clean 
Active Devices : 2

Working Devices : 2

Failed Devices : 0
 Spare Devices : 0
          Name : h2814988:1  (local to host h2814988)
          UUID : a48d1ffe:267e9e65:2bd0b927:2fee1978
        Events : 4
   Number   Major   Minor   RaidDevice State
      0       8        3        0      active sync   /dev/sda3
      1       8       19        1      active sync   /dev/sdb3

</source>