Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| andrewfilesystem:server [2011/05/25 05:29] – BenKaduk | andrewfilesystem:server [2020/11/23 01:21] (current) – Remove 1 broken link. SashaVigole | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== AFS: Andrew File System, server side ====== | ====== AFS: Andrew File System, server side ====== | ||
| - | Based upon Tracy' | + | Based upon Tracy' |
| Heavily modified for %%OpenAFS%% coverage by [[/ | Heavily modified for %%OpenAFS%% coverage by [[/ | ||
| Line 25: | Line 25: | ||
| </ | </ | ||
| - | It is also most convenient to have a afs client running on the initial server. Check out the installation instructions on the [[/afs|afs page]]. | + | It is also most convenient to have a afs client running on the initial server. Check out the installation instructions on the [[/AndrewFileSystem|afs page]]. |
| ===== Partitions ===== | ===== Partitions ===== | ||
| - | There are a few things to keep in mind when assigning storage locations for AFS fileservers: | + | There are a few things to keep in mind when assigning storage locations for AFS fileservers: |
| An example setup of the fstab would look like this, with a second harddisk (ada1) reserved for AFS: | An example setup of the fstab would look like this, with a second harddisk (ada1) reserved for AFS: | ||
| Line 43: | Line 43: | ||
| < | < | ||
| - | #>cd / | + | #>cd / |
| - | #>fetch http:// | + | |
| - | #>sh openafs.shar | + | |
| - | #> | + | |
| #>make install | #>make install | ||
| - | #>echo 'afsserver=" | + | #>echo 'afsserver_enable=" |
| </ | </ | ||
| - | Unlike the client, the idea of default configuration values for the AFS server does not make sense, so they are not provided. | + | Unlike the client, the idea of default configuration values for the AFS server does not make sense, so they are not provided. The fileserver' |
| ===== OpenAFS configuration ===== | ===== OpenAFS configuration ===== | ||
| Line 58: | Line 55: | ||
| < | < | ||
| + | #>mkdir -p / | ||
| #>kadmin -l | #>kadmin -l | ||
| kadmin> add --random-key afs/ | kadmin> add --random-key afs/ | ||
| - | kadmin> ext_keytab -k /tmp/afsv5key afs/meiland.nl | + | kadmin> ext_keytab -k /usr/local/etc/openafs/ |
| - | #>mkdir -p /usr/afs/etc | + | |
| - | #>echo "meiland.nl" > / | + | |
| - | #>ktutil copy / | + | |
| </ | </ | ||
| Line 70: | Line 65: | ||
| < | < | ||
| #>echo " | #>echo " | ||
| - | #>cp / | ||
| </ | </ | ||
| Line 83: | Line 77: | ||
| < | < | ||
| + | #>mkdir / | ||
| + | #>chmod 700 / | ||
| + | #>touch / | ||
| + | #>chmod 600 / | ||
| #> | #> | ||
| - | #>bos setcellname server.meiland.nl meiland.nl -localauth | ||
| - | #>bos create server.meiland.nl buserver simple / | ||
| #>bos create server.meiland.nl ptserver simple / | #>bos create server.meiland.nl ptserver simple / | ||
| #>bos create server.meiland.nl vlserver simple / | #>bos create server.meiland.nl vlserver simple / | ||
| Line 105: | Line 101: | ||
| < | < | ||
| #> bos shutdown server.meiland.nl | #> bos shutdown server.meiland.nl | ||
| - | #> killall | + | #> pkill bosserver |
| - | #> bosserver | + | #> service afsserver start |
| #> kinit hugo/afs | #> kinit hugo/afs | ||
| #> aklog meiland.nl | #> aklog meiland.nl | ||
| #> tokens | #> tokens | ||
| #> bos status -server server.meiland.nl | #> bos status -server server.meiland.nl | ||
| - | Instance buserver, currently running normally. | ||
| Instance ptserver, currently running normally. | Instance ptserver, currently running normally. | ||
| Instance vlserver, currently running normally. | Instance vlserver, currently running normally. | ||
| Line 119: | Line 114: | ||
| < | < | ||
| - | #> bos create server.meiland.nl | + | #> bos create server.meiland.nl |
| #> vos create server.meiland.nl /vicepa root.afs -localauth | #> vos create server.meiland.nl /vicepa root.afs -localauth | ||
| #> vos create server.meiland.nl /vicepa root.cell -localauth | #> vos create server.meiland.nl /vicepa root.cell -localauth | ||
| - | #> fs setacl /afs system: | ||
| - | #> fs setacl /afs system: | ||
| - | #> fs mkmount / | ||
| #> fs setacl / | #> fs setacl / | ||
| #> fs setacl / | #> fs setacl / | ||
| - | #> fs mkmount | + | #> cd / |
| - | #> fs setacl | + | #> fs mkmount |
| - | #> fs setacl | + | #> cd root.afs |
| + | #> fs setacl . system: | ||
| + | #> fs setacl . system: | ||
| + | #> fs mkmount meiland.nl root.cell | ||
| + | #> fs mkmount .meiland.nl root.cell -rw | ||
| mount external cells: | mount external cells: | ||
| - | #> fs mkmount -dir /afs/athena.mit.edu -cell athena.mit.edu -vol root.cell | + | #> fs mkmount -dir athena.mit.edu -cell athena.mit.edu -vol root.cell |
| + | |||
| + | remove temporary mountpoint: | ||
| + | #> cd .. | ||
| + | #> fs rmmount root.afs | ||
| </ | </ | ||