798
Comment:
|
2212
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
<!> Die Fileserver für die zentralen Volumes/Homedirectories sind explizit in zwei Scripts eingetragen: * ~[PT]TARCH/profiles/ALL/usr/sbin /afslive * ~TARCH/vamos/WorkFlow/var/site/vamos/workflow/scripts/User/partition_load.zsh |
|
Line 4: | Line 8: |
1. yum -y install openafs-server 2. alle Dateien aus /usr/afs/etc eines anderen Servers kopieren 3. sue.update afs_server 4. {{{ |
1. yum -y update openafs\* 1. yum -y install openafs-server openafs-debug 1. alle Dateien aus /usr/afs/etc eines anderen Servers kopieren 1. in ~TARCH/afs_server/ALL/etc/sysconfig/setra.d eine Datei eines ähnlichen Servers kopieren 1. sue.update afs_server 1. {{{ |
Line 10: | Line 16: |
"/usr/afs/bin/fileserver -L -p 50 -rxpck 300 -s 1000 -l 1000 -cb 65535 -b 250 -syslog" \ | "/usr/afs/bin/fileserver -L -p 128 -rxpck 3072 -s 4096 -l 1024 -cb 4000000 -b 1024 -udpsize 16777216 -vc 1024 -jumbo -syslog -banner" \ |
Line 15: | Line 21: |
1. {{{ touch /var/lock/subsys/afs-server }}}('''wichtig''''') 1. chkconfig afs-server reset 1. Scheduler einstellen für entsprechende Blockdevices der vicep Partitionen * {{{ echo noop >> /sys/block/sdb/queue/scheduler }}} * permanent: Eintrag in /etc/rc.local 1. Für neue Server: Eintrag in /etc/sysctl.conf * {{{ # allow afs fileserver to use 16 MB udp buffers: net.core.rmem_max=16777216 }}} |
|
Line 16: | Line 36: |
== AFS backup für Server einrichten: == 1. andere Einträge anzeigen: ` bos status romulus -long` 2. {{{ bos create -server romulus -instance backup-pitzafs -type cron -cmd "/usr/afs/bin/vos backupsys -server pitzafs -xprefix \"^.n\.\" -localauth" 0:35 -localauth}}} |
=== Direct Attach Fileserver === Testinstallation auf zyklop25: {{{ bos create -server zyklop25 -instance dafs -type dafs -cmd "/usr/afs/bin/dafileserver -L -p 128 -rxpck 3072 -s 4096 -l 1024 -cb 4000000 -b 1024 -vc 1024 -syslog -banner -udpsize 16777216 -vattachpar 128" "/usr/afs/bin/davolserver -p 64 -log -udpsize 16777216" /usr/afs/bin/salvageserver "/usr/afs/bin/dasalvager" -cell ifh.de -localauth }}} == AFS backup für Fileserver wird automatisch eingerichtet: == * Ein cron job auf romulus sorgt dafür, dass für alle Fileserver backup Volumes angelegt werden {{{ 20 0 * * * /usr/afs/bin/vos-backupsys >/dev/null}}} * /usr/afs/bin/vos-backupsys: {{{ #!/bin/sh for host in `/usr/afs/bin/vos listaddrs -localauth` do /usr/afs/bin/vos backupsys -server $host -xprefix "^.n\." -localauth done }}} |
Die Fileserver für die zentralen Volumes/Homedirectories sind explizit in zwei Scripts eingetragen:
- ~[PT]TARCH/profiles/ALL/usr/sbin /afslive
- ~TARCH/vamos/WorkFlow/var/site/vamos/workflow/scripts/User/partition_load.zsh
AFS Fileserver einrichten
- yum -y update openafs\*
- yum -y install openafs-server openafs-debug
- alle Dateien aus /usr/afs/etc eines anderen Servers kopieren
- in ~TARCH/afs_server/ALL/etc/sysconfig/setra.d eine Datei eines ähnlichen Servers kopieren
- sue.update afs_server
/usr/afs/bin/bosserver /usr/bin/bos create -server pitzafs1 -instance fs -type fs -cmd \ "/usr/afs/bin/fileserver -L -p 128 -rxpck 3072 -s 4096 -l 1024 -cb 4000000 -b 1024 -udpsize 16777216 -vc 1024 -jumbo -syslog -banner" \ "/usr/afs/bin/volserver -syslog" \ "/usr/afs/bin/salvager -DontSalvage" \ -cell ifh.de -localauth
touch /var/lock/subsys/afs-server
(wichtig)
- chkconfig afs-server reset
- Scheduler einstellen für entsprechende Blockdevices der vicep Partitionen
echo noop >> /sys/block/sdb/queue/scheduler
- permanent: Eintrag in /etc/rc.local
- Für neue Server: Eintrag in /etc/sysctl.conf
# allow afs fileserver to use 16 MB udp buffers: net.core.rmem_max=16777216
Direct Attach Fileserver
Testinstallation auf zyklop25:
bos create -server zyklop25 -instance dafs -type dafs -cmd "/usr/afs/bin/dafileserver -L -p 128 -rxpck 3072 -s 4096 -l 1024 -cb 4000000 -b 1024 -vc 1024 -syslog -banner -udpsize 16777216 -vattachpar 128" "/usr/afs/bin/davolserver -p 64 -log -udpsize 16777216" /usr/afs/bin/salvageserver "/usr/afs/bin/dasalvager" -cell ifh.de -localauth
AFS backup für Fileserver wird automatisch eingerichtet:
- Ein cron job auf romulus sorgt dafür, dass für alle Fileserver backup Volumes angelegt werden
20 0 * * * /usr/afs/bin/vos-backupsys >/dev/null
- /usr/afs/bin/vos-backupsys:
for host in `/usr/afs/bin/vos listaddrs -localauth` do /usr/afs/bin/vos backupsys -server $host -xprefix "^.n\." -localauth done