Differences between revisions 21 and 22
Revision 21 as of 2017-05-29 14:47:18
Size: 2847
Comment:
Revision 22 as of 2018-08-10 13:21:02
Size: 2908
Comment:
Deletions are marked like this. Additions are marked like this.
Line 21: Line 21:
}}}
 Auf EL7 notwendig:
 {{{
chmod +x /etc/rc.d/rc.local

<!> 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
    • heute wohl eher: /var/site/vamosw/workflow... auf instsrv
      • /!\ stammt aus VamosW-workflow.rpm, aber die meisten Dateien sind händisch geändert

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
    Auf EL7 notwendig:
    chmod +x /etc/rc.d/rc.local
  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
    • killall -HUP bosserver
    • 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)