Differences between revisions 18 and 19
Revision 18 as of 2017-05-25 17:30:51
Size: 2621
Comment:
Revision 19 as of 2017-05-25 18:08:56
Size: 2664
Comment:
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
 1. in ~TARCH/afs_server/ALL/etc/sysconfig/setra.d eine Datei eines ähnlichen Servers kopieren  1. in /etc/rc.local sinngemäß eintragen:
 {{{
echo noop >>/sys/block/sdb/queue/scheduler
blockdev --setra 8192 /dev/sdb
}}}
Line 25: Line 29:
 1. {{{  EL6+: DAFS, s.u.
 1. (nur auf EL5/6)
 {{{
Line 29: Line 35:
 1. Scheduler einstellen für entsprechende Blockdevices der vicep Partitionen
  * {{{
echo noop >> /sys/block/sdb/queue/scheduler
}}}
  * permanent: Eintrag in /etc/rc.local
Line 39: Line 40:
  EL7+: /etc/sysctl.d/zzz-afssrv.conf statt /etc/syctl.conf
Line 42: Line 44:
 1. EL7+:
  * bos shutdown localhost -localauth -wait
  * systemctl enable afs-server
  

<!> Die Fileserver für die zentralen Volumes/Homedirectories sind explizit in zwei Scripts eingetragen:

  • ~[PT]ARCH/profiles/ALL/usr/sbin /afslive
    • nur noch auf Solaris verwendet, auf Linux inzwischen im Paket DL_afslive
  • ~TARCH/vamos/WorkFlow/var/site/vamos/workflow/scripts/User/partition_load.zsh
    • steuert wo Heimatverzeichnisse für neue Accounts angelegt werden

AFS Fileserver einrichten

  1. yum -y update openafs\*
  2. yum -y install openafs-server openafs-debug
    • SL6: openafs-plumbing-tools statt of -debug
    • EL7: openafs-1.6-sl-server openafs-1.6-sl-plumbing-tools
  3. alle Dateien aus /usr/afs/etc eines anderen Servers kopieren
  4. in /etc/rc.local sinngemäß eintragen:
    echo noop >>/sys/block/sdb/queue/scheduler
    blockdev --setra 8192 /dev/sdb
  5. sue.update afs_server
  6. /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
    EL6+: DAFS, s.u.
  7. (nur auf EL5/6)
        touch /var/lock/subsys/afs-server

    (wichtig)

  8. chkconfig afs-server reset
  9. Für neue Server: Eintrag in /etc/sysctl.conf
    • # allow afs fileserver to use 16 MB udp buffers:
      net.core.rmem_max = 16777216
      EL7+: /etc/sysctl.d/zzz-afssrv.conf statt /etc/syctl.conf
  10. bos setrestricted pitzafs1 1 -localauth
  11. bos setrestart pitzafs1 never -localauth
  12. bos setrestart pitzafs1 -newbinaries never -localauth
  13. EL7+:
    • bos shutdown localhost -localauth -wait
    • systemctl enable afs-server

Demand 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

AFS/Neuen_Fileserver_einrichten (last edited 2018-08-10 13:21:02 by StephanWiesand)