FS_DISCON(1) | AFS Command Reference | FS_DISCON(1) |
fs_discon - Manage client "disconnected mode"
fs discon
-mode <offline | online>
[-policy <client | server>]
[-force]
[-uid <uid>]
[-help]
fs disc
-m <offline | online>
[-p <client | server>]
[-f]
[-u <uid>]
[-h]
The fs discon command configures "disconnected mode" in the OpenAFS Cache Manager. Disconnected mode allows you to keep reading and writing files in AFS without a network connection, and any changes to files are recorded locally. When the network connection is restored and disconnected mode is turned off, any locally recorded changes are sent to the relevant server.
This command was introduced in OpenAFS 1.5.38.
The "disconnected mode" of the OpenAFS cache manager is still considered an experimental feature. It can be a bit rough around the edges, and you may lose or corrupt data you have written while in disconnected mode. Use with caution.
If "online" is specified, the client will come out of disconnected mode, and any pending changes will be sent to the relevant server. If there are errors when synchronizing changes to the server, the client will stay in disconnected mode, unless the -force flag is also given. See -force.
If "client" is specified, the local changes on the client will overwrite any conflicting changes on the server. This means that if we change a file locally while in disconnected mode, and another user changes the same file in the same place on the fileserver while we are disconnected, the other user's changes will be lost.
If "server" is specified, the conflicting changes on the server will overwrite our local changes. This means that if we change a file locally while in disconnected mode, and another user changes the same file in the same place on the fileserver while we are disconnected, our local changes will be lost.
The default value is "server".
Without -force, such an error causes the client to stay offline.
Note that this will only use the PAG-less credentials of the specified uid. It is currently not possible to specify an arbitrary PAG here.
The issuer must be logged in as the local superuser "root".
Copyright 2013 Sine Nomine Associates
This documentation is covered by the BSD License as written in the doc/LICENSE file. This man page was written by Andrew Deason for OpenAFS.
2022-12-22 | OpenAFS |