Differences between revisions 10 and 11
Revision 10 as of 2011-08-15 16:13:55
Size: 1680
Comment:
Revision 11 as of 2012-12-22 18:34:37
Size: 2096
Comment:
Deletions are marked like this. Additions are marked like this.
Line 31: Line 31:
=== 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
}}}

<!> 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

  1. yum -y update openafs\*
  2. yum -y install openafs-server openafs-debug
  3. alle Dateien aus /usr/afs/etc eines anderen Servers kopieren
  4. in ~TARCH/afs_server/ALL/etc/sysconfig/setra.d eine Datei eines ähnlichen Servers kopieren
  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 1000 -cb 655350 -b 256 -udpsize 104857600 -vc 128 -jumbo -syslog -banner" \
      "/usr/afs/bin/volserver -syslog" \
      "/usr/afs/bin/salvager -DontSalvage" \
      -cell ifh.de -localauth
  7.     touch /var/lock/subsys/afs-server

    (nur auf SL5, dort aber wichtig)

  8. chkconfig afs-server reset
  9. Scheduler einstellen für entsprechende Blockdevices der vicep Partitionen
    • echo noop >> /sys/block/sdb/queue/scheduler
    • permanent: Eintrag in /etc/rc.local

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

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