Sv translation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
IntroductionRegardless of the function a server is to perform, except STORE (which makes the data area available to itself), the data area will be linked. The , the first step is to mount the STORE to the machine. The first VM to be set up should therefore be the role STORE. Linking the data areaConfiture STORE MountFirst a connection to the common data area is established. To do this, the directory to mount STORE is created. STORE will be mounted in /home/jtel/shared. The path for the mount point is created with the following commands:
Mount with Credentials in fstabThe mount IThe connection is then configured in the /etc/fstab file. The file can be edited with a text editor. The following entry must be inserted into the file as an example (replace password with the corresponding password): Translations Ignore |
, or the following command will append the required line to the file:
ATTENTION: to connect old file shares (SMB 1.0) under CentOS 7.x the following entry is necessary:
The first block of the line describes the UNC of the release. Here the name of the computer (here Notes:
Mount with external Credentials fileTo mount with the credentials stored in a separate file, proceed as follows. Create a file, for example in /etc/store_credentials with the following content:
root home directory or directly in the /etc directory) and can be given read-only access to root. Assuming that such a file would be named /etc/jtel-credentials , the file's permissions are secured with the following commandsNext, secure the file permissions:
And finally, add the entry would then look like this:
ATTENTION: to connect old file shares (SMB 1.0) under CentOS 7.x the following entry is necessary:
Mount STOREThe After configuring the connection, the share can now be mounted. This is done with the command:
After connectingmounting, a short test shows that the files can be accessed:
Securing themountMountAdjust the crontab so Adding the following to crontab will ensure that the mount itself is restored, so that the boot order of the systems is not importanteven if STORE is rebooted:
This can be tested as follows:
|
Sv translation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
EinführungUnabhängig von der Funktion die ein Server übernehmen soll, ausser STORE (der den Datenbereich sich selbst zur Verfügung stellt), wird das Datenbereich angebunden. Als erster VM sollte also die Rolle STORE fertig eingerichtet sein. Anbinden des DatenbereichesAls erstes wird eine Verbindung zum gemeinsamen Datenbereich hergestellt. Hierfür wird der Pfad für den Einhängepunkt mit folgenden Befehlen erstellt:
Im Anschluss wird die Verbindung in die Datei
ACHTUNG: um alte File-Shares (SMB 1.0) anzubinden unter CentOS 7.x ist folgender Eintrag nötig:
Der erste Block der Zeile beschreibt den UNC der Freigabe. Hier muss gegebenenfalls der Name des Rechners (hier
Diese Datei kann an einem beliebigen sinnvollen Ort (z.B. ins Home-Verzeichnis von
In der Datei
ACHTUNG: um alte File-Shares (SMB 1.0) anzubinden unter CentOS 7.x ist folgender Eintrag nötig:
Nach dem Konfigurieren der Verbindung kann die Freigabe nun eingehängt werden. Dies erfolgt mit dem Befehl:
Nach dem Verbinden zeigt ein kurzer Test, dass auf die Dateien zugegriffen werden kann:
Sicherstellung des MountsCrontab anpassen, sodass der Mount selbst wiederhergestellt wird, und somit die Boot-Reihenfolge der Systeme auch unwichtig ist:
Dies kann wie folgt getestet werden:
|