Sv translation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Create the Store with LVMIt is recommended to create the STORE machine without the disk for the storage being mounted by the installation routines. Useful CommandsThe following commands are useful to see the current configuration of the machine, Erstellen des Stores mit LVMDie meisten Linux / CentOS Installationen von uns arbeiten mit LVM. Diese Anleitung beschreibt, wie die Rolle STORE auf ein System mittels LVM installiert werden kann. Schritt 1 - Feststellen der aktuellen config
Die Informationen oben werden nun gebraucht. Die Konfiguration sollte geprüft werden, nicht das bereits ein LVM für das Storage vorgesehen ist. Schritt 2 - Anlegen einer neuen Partition Hier ist es erforderlich, dass man weiß, wo der zusätzlicher Platz zu finden ist. Es gibt 2 Varianten - entweder eine neue Platte, oder eine erweiterte Platte. In beiden Fällen, wird eine neue Partition angelegt. Hier in diesen Beispiel, wurde eine neue Platte genutzt, die auf /dev/sdb zu finden ist. Die Befehle unten sowie die Partitionsnummer (bei einer vorhandenen Platte ist die Partition dann nicht mehr zwingend 1), entsprechend anpassen. Some of the information above may be required to complete installation. It is important to know where the disk to be used is, and where the space is. Usually, we recommend adding a second disk drive to the machine for the storage. The following assumes that the disk was added as /dev/sdb on the machine, and is not yet partitioned. If this is not the case, or the drive is not /dev/sdb or the space was added to an existing partition, then the commands below will have to be (carefully) modified to take this into account. Creation StepsCreate a PartitionDisplay of discs
Create LVM Physical VolumeThis command creates a physical volume which can be managed by LVM. The above commands will have created a partition /dev/sdb1. If you are working on a different partition, then modify accordingly.Schritt 3 - Hereinnahme in LVM - Device Erzeugen
Schritt 4 - Volume Group anlegen Translations Ignore |
Create a Volume GroupThis command creates a volume group called vg_jtelshared. The volume group can be expanded later, by adding more physical volumes.
Create a Logical VolumeFinally, a logical volume lv_jtelshared is created on the volume group which contains the aggregated space.
Schritt 5 - Logical Volume anlegen
Create File SystemNow, the file system is created. Here we use xfs, though you can use something else if you really want.Schritt 6 - File System erzeugen
Prepare Mount PointThe data should be mounted to the directory /srv/jtel/shared. The following commands prepare for this:Schritt 7 - Mount Point vorbereiten
Schritt 8 - Mount Point in fstab festlegen und mounten Add to fstab to Mount at BootThe following adds a line to fstab to mount the file system at bootfstab Eintrag:
Mount the File System
Checks
This should show an entry for /srv/jtel/shared with the expected amount of free space. Install and Configure Access to STOREInstall SambaThese commands install the samba server and client and lsof.existieren mit entsprechend freier Platz. Install Samba and lsof
Configure SambaThe following creates a samba configuration file with a minimum configuration.
Setup SeLinux, jtel User access and Firewall for SambaReplace <password> with the password for the jtel user:
Setup SeLinux and the FirewallThe following command sets up selinux for the smb service and opens the necessary ports in the firewall:
Enable and Start SambaThe following commands setup the SMB and NMB services to autostart, and start them.
Manually link /home/jtel/sharedFinally, link the /home/jtel/shared folder.
Setup Access to the Samba Serverjtel User AccessThe following command creates the smb credentials for the jtel user.
Further User AccessIf necessary, add further users to samba - replacing password with the actual password for the user. Here, for example, the windows administrator user:
| More SAMBA users | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
useradd -m Administrator
printf '<password>\n<password>\n' | smbpasswd -a -s Administrator
|
|
Translations Ignore | |||||
---|---|---|---|---|---|
|
Manually link /home/jtel/shared
Translations Ignore | |||||
---|---|---|---|---|---|
|
Test the file mount
title | Test file mount |
---|
Finally, test the file mount from one of the other machines. Either by connecting to STORE, or by using the windows explorer to attach to \\acd-store\shared
Sv translation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Erstellen des Stores mit LVMDie meisten Linux / CentOS Installationen von uns arbeiten mit LVM. Diese Anleitung beschreibt, wie die Rolle STORE auf ein System mittels LVM installiert werden kann. Schritt 1 - Feststellen der aktuellen config
Die Informationen oben werden nun gebraucht. Die Konfiguration sollte geprüft werden, nicht das bereits ein LVM für das Storage vorgesehen ist. Schritt 2 - Anlegen einer neuen Partition Hier ist es erforderlich, dass man weiß, wo der zusätzlicher Platz zu finden ist. Es gibt 2 Varianten - entweder eine neue Platte, oder eine erweiterte Platte. In beiden Fällen, wird eine neue Partition angelegt. Hier in diesen Beispiel, wurde eine neue Platte genutzt, die auf /dev/sdb zu finden ist. Die Befehle unten sowie die Partitionsnummer (bei einer vorhandenen Platte ist die Partition dann nicht mehr zwingend 1), entsprechend anpassen. Display of discs
Schritt 3 - Hereinnahme in LVM - Device Erzeugen
Schritt 4 - Volume Group anlegen
Schritt 5 - Logical Volume anlegen
Schritt 6 - File System erzeugen
Schritt 7 - Mount Point vorbereiten
Schritt 8 - Mount Point in fstab festlegen und mounten fstab Eintrag:
Und mounten:
Es sollte ein Eintrag für /srv/jtel/shared existieren mit entsprechend freier Platz. Install Samba and lsof
Configure Samba
Setup SeLinux, jtel User access and Firewall for SambaReplace <password> with the password for the jtel user:
If necessary, add further users to samba - replacing password with the actual password for the user. Here, for example, the windows administrator user:
Test SAMBA
Manually link /home/jtel/shared
Test the file mount
|