If you are attaching a library through the Autodesk Data Management Server Console (=ADMS) you can choose different locations for the MDF file and LDF file.
Now you want to detach the library via command line to run a backup and re attach the library after the backup process. You used the example from the ADMS console help to create the commands.
Issue: The detach command and the backup are working fine.
However you get an error message by reattaching the library:
A file system has error occured: C:\Program Files (x86)\Microsoft SQL Server\MSSQL.10.AUTODESKVAULT\MSSQL\DATA\AIS2010_InventorANSI_log.ldf
The issue is that the Option -DF in the command is only for the location of the MDF file. If the LDF file in the same location as the MDF file this works fine.
But in this case the LDF file is on a different location.
Resolution: You have to use the option -DL to specify the location of the LDF file. This option is currently not described in the ADMS console help but we are planing to add a description of the -DL option in the next release of Vault.
Here the updated example from the ADMS console help for attaching the library incuding this option:
Connectivity.ADMSConsole.exe -Oattachlibrary -N"Inventor Standard Content" -DF"c:\My Library Repository\Inventor Standard Content.mdf"-DL"d:\MyLibrary\Logfile\Inventor Standard Content.ldf"
-VUadministrator -VPadmin -DBUsername –DBPassword