Error: 'E20446: CreateDirectory(\\?\UNC\Name\Folder\Backup)=183. Cannot create a file when that file (NETIQKB34788)

  • 7734788
  • 02-Feb-2007
  • 26-Jun-2008

Resolution

fact
Server Consolidator 7.x

symptom
Error: 'E20446: CreateDirectory(\\?\UNC\Name\Folder\Backup )=183. Cannot create a file when that file already exists' occurs when migrating files and folders.

symptom
Error occurs when migrating files and folders to NetApp Filers.

symptom
Error message is displayed in the DCTLog.txt file.

cause
This is a known issue with Server Consolidator. Files that exist on both the source and target machines are migrated with the Delete target files that are not on the source option, resulting in deletion of the source file rather than the target file. This issue will occur when there is a directory on the target machine, but not on the source machine, that begins with a non-alphanumeric character (other than a hyphen or an apostrophe).

For example:

Source Target
  ~dir
AA
BB

Using the above example, if you migrate the source share to the target share with the Delete target files not on the source option selected:

  1. Server Consolidator attempts to migrate A and B from the source machine, even though they already exist on the target machine. 
  2. Server Consolidator generates a 183 error when trying to create the directories on the target machine.
  3. Server Consolidator removes ~dir, A, and B from the target machine, which results in an empty target share.

This issue most often occurs with NetApp Filers, as they typically have a directory named ~snapshot. (The ~snapshot directory is used on NetApp Filers for backup and restore purposes.)  When the ~snapshot directories are visible on the NetApp Filer, Server Consolidator incorrectly determines that a source file or directory exists on the target machine. 



fix

To workaround this issue with NetApp filers:

  1. Turn off the visibility of the ~snapshot directories when running Server Consolidator:
    1. Open FilerView.
    2. Under Filer, select Use Command Line.
    3. In the telnet command prompt, type vol options vol0 nosnapdir on    (where vol0 is the name of the volume that Server Consolidator will copy files and folders to.)
    4. Launch Server Consolidator.
  2. Make the ~snapshot directories available again:
    1. Open FilerView.
    2. Under Filer, select Use Command Line.
    3. In the telnet command prompt, type vol options vol0 nosnapdir off.


Additional Information

Formerly known as NETIQKB34788