[OpenAFS] Global drives in windows version

James Peterson jpeterso@sinenomine.net
Wed, 11 Dec 2002 17:23:45 -0800


You are correct Global Drive Mapping doesn't seem to work.

You can use NET USE to map your drives.
   Set Start AFS Client when computer starts
   place in your logon script:  net use T: \\yourComputerName-afs\yourPath

Win2k:
   yourComputerName can be located by looking at the properties/Network
   Identification of "MyComputer" icon.
   yourPath can be \afs\ShareName or \afs\CellName\SubPath - ShareName is
   one that you had defined from the AFS Client; CellName must match an
   entry in located in the CellSrvDB.   SubPath can be directory path.
   There are some cases that net use won't accept CellName\path; however,
   ShareName always works.

Win9x:
   yourComputerName can be located by looking at the
   properties/Identification of "Network" icon.
   yourPath must be a ShareName that you had defined from the AFS Control
   Panel.

To give you unique drive for each user that logs in, do the following:
Add a login script with the following entry:
net use u: \\%COMPUTERNAME%-afs\all\user\%USERNAME%
net use z: \\%COMPUTERNAME%-afs\all

NOTE: During login the enviornment variables COMPUTERNAME and USERNAME are
setup for you.

----- A short discussion about Windows  ---------

When a user logs off a Windows machine, the OS will 'remember' all drives
that were mapped.  When the same users logs back on to windows, the system
will connect all these 'remebered' drive mappings.  If the AFS service is
not running while Windows is trying to map a drive to an AFS defined share,
the mapping will fail and the connection is marked as "Disconnect Network
Drive".

You should remove this connection using NET USE command, then re-map the
drive after AFS Client service is running.  e.g. to remove the mapped drive
N:
               NET USE N: /D

You can then map N: drive to AFS share name using the AFS Client GUI.  This
drive mapping would be automatically be re-established when the user logs
back on.

Since the drive is mapped each time the user logs on to Windows, I'm not
sure what other features you are looking for by using Global Drive maps?
Are you using multi-user (server configuration)?

James Peterson
"Integrity is the Base of Excellence"