Skip to content

Instantly share code, notes, and snippets.

@meffie
Last active March 9, 2017 14:18
Show Gist options
  • Save meffie/1ccbfdefa4f12beed536a41dbd4ed916 to your computer and use it in GitHub Desktop.
Save meffie/1ccbfdefa4f12beed536a41dbd4ed916 to your computer and use it in GitHub Desktop.
Installing an openafs client with afsutil.
$ afstuil build
...
$ sudo afsutil install \
> --dist transarc \
> --comp client \
> --cell sinenomine.net \
> --realm SINENOMINE.NET \
> --hosts afsdb1.sinenomine.net afsdb4.sinenomine.net afsdb5.sinenomine.net
Looking up ip address of hostname afsdb1.sinenomine.net.
Looking up ip address of hostname afsdb4.sinenomine.net.
Looking up ip address of hostname afsdb5.sinenomine.net.
Cell hosts are: [('199.167.73.153', 'afsdb5.sinenomine.net'),
('199.167.73.142', 'afsdb1.sinenomine.net'),
('199.167.73.152', 'afsdb4.sinenomine.net')]
Installing client binaries
Installing files from 'arm64_linux26/dest/root.client/usr/vice/etc' to '/usr/vice/etc'.
Installing files from 'arm64_linux26/dest/bin' to '/usr/afsws/bin'.
Installing files from 'arm64_linux26/dest/etc' to '/usr/afsws/etc'.
Installing files from 'arm64_linux26/dest/include' to '/usr/afsws/include'.
Installing files from 'arm64_linux26/dest/man' to '/usr/afsws/man'.
Installing files from 'arm64_linux26/dest/lib' to '/usr/afsws/lib'.
Installing kernel module from 'arm64_linux26/dest/root.client/lib/modules/4.4.49-16-default/extra/openafs/openafs.ko' to '/lib/modules/4.4.49-16-default/extra/openafs/openafs.ko'.
running /sbin/depmod -a
Installing client init script from '/usr/lib/python2.7/site-packages/afsutil/data/openafs-client-linux.init' to '/etc/init.d/openafs-client'.
Writing afsd startup options to file '/etc/sysconfig/openafs-client'.
Client installed.
$ sudo afsutil start client
running /etc/init.d/openafs-client start
Starting AFS services.....
/usr/vice/cache or /usr/vice is not a separate partition
you have to change the cachesize in /etc/sysconfig/openafs-client by hand
AFS will be started with a VERY small cache of 8Mb.
afsd: All AFS daemons started.
afsd: All AFS daemons started.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment