Ref: 19880006
Title: Fixing a "File Creation Error" After Restoring Data
Date: 8/17/90

Copyright 3Com Corporation, 1991.  All rights reserved.

It is possible to restore data from tape to a different partition than
where it was backed up.

For each directory that was backed up, the sharelist contains a sharename,
owner, password, and physical path at the time it was backed up.  If a
directory (including a user's home directory) is restored to a different
partition than is referred to in the sharelist, the sharelist will not be
updated automatically.

When a user links to a directory that is not what the sharelist refers to,
they will not get an error.  Instead, they may see these symptoms:

  *  A DIR command will not show the  .  and  ..  directories and will
     return the message FILE NOT FOUND.

  *  A MD command will return the message UNABLE TO CREATE DIRECTORY.

  *  A COPY command will return the message FILE CREATION ERROR.

Below are three sets of steps for correcting the situation after a directory
was restored to the wrong partition.  The first set explains how to move the
directory to the original location recognized by the sharelist.  The second
and third sets explain how to change the sharelist to refer to the directory
(either a shared directory or a user's home directory) in its current
location.


How to move a shared directory or a user's home directory to the
partition it was on before the restore:

1.  Type 3F DIR \\servername to find where the sharelist is
referencing the physical location.

2.  Establish a console connection to the server.

3.  Use the MD command to create the directory on the partition that the
3F DIR command referred to.  The directory must be spelled exactly as the
3F DIR shows it.

4.  Use the XCOPY command to copy the directory data from the
directory in the wrong location to the new directory that is in the
right location.

5.  Delete the directory structure and files in the wrong location.

6.  Reboot the server in normal mode.  The directory is now in
the physical location that the sharelist originally referenced.


How to update the sharelist so it references a shared first-level
directory at its current location:

1.  Make sure you have enough disk space to leave the shared directory
where it is.

2.  Log in as the server user.

3.  3F UNSHARE the sharename and then 3F SHARE using the same sharename
but referring to the new location.  No reboot is necessary.


How to update the sharelist so it references a user's home directory at
its current location:

(A user's home directory reference in the sharelist can only be
modified using 3N MOD USER.  There must be a first-level directory
with the same name as the user's original home directory in the same
partition that the sharelist references, before you can modify the
sharelist to point to the new location of the user's home directory.)

1.  Type 3F DIR \\servername to find where the user's home directory
is referenced by the sharelist.

2.  Establish a console connection with the server.

3.  Use the MD command to create the directory on the partition that the
3F DIR refers to.  The directory must be spelled exactly as the 3F DIR shows
it.

4.  Reboot the server in normal operating mode.

5.  Log in as the admin user.

6.  Type 3N MOD username.  Press Return through the questions until you
get to 3SHARE SERVER (servername)?.  Press ESC, then press Return.

The message  "Deleting [username] from share server [servername]...User
[username] modified."  will be displayed.

7.  Type 3N MOD username again.  Press Return through the questions until
you get to 3SHARE SERVER (servername)?.  Enter the name of the server
as it was entered originally.

8.  At the question HOME DIR?, enter the directory name exactly
as it was displayed by 3F DIR in step 1 for that user.

9.  At the question FILE SERVER DRIVE?, enter the physical
partition where the user's home directory now resides.  This is the
partition where it was incorrectly restored to.

The message "User [username] modified and Adding [username] to
share server [servername]" will be displayed.  No reboot is necessary.

