VDI error 1000: Failed to create virtual device
Bern Anderson
Posts: 27
When I'm running several backup sessions from the command prompt concurrently, I frequently get the following error:
Backing up FIN_MGMT_PROJ_SUP_ACQ (full database) to \\bcbk1sn1\sqlbackups4\dwdev01\dwdev01_FIN_MGMT_PROJ_SUP_ACQ_FULL_20050520 155055.sqb ...
VDI error 1000: Failed to create virtual device. Check that the SQL Server instance you are trying to connect to is running. Error code: -2147024891 ()
Access is denied
SQL Backup 3.2.0, (c) Red Gate Software Ltd 2004 - 2005
This error occurs randomly and is not associated with a specific database. I'm running six batch jobs concurrently which are constructed simular to the following:
rem * dwdev01_user_db_full6.bat
rem * 20050518 BJA: Initial Development
@ECHO OFF
"C:\Program Files\Red Gate\SQL Backup\SqlBackupC.exe" -USE "dwdev01_user_db_full_acq_mgmt_ods"
"C:\Program Files\Red Gate\SQL Backup\SqlBackupC.exe" -USE "dwdev01_user_db_full_comm_ods"
"C:\Program Files\Red Gate\SQL Backup\SqlBackupC.exe" -USE "dwdev01_user_db_full_data_dictionary"
"C:\Program Files\Red Gate\SQL Backup\SqlBackupC.exe" -USE "dwdev01_user_db_full_data_request"
"C:\Program Files\Red Gate\SQL Backup\SqlBackupC.exe" -USE "dwdev01_user_db_full_info_res_invnt"
"C:\Program Files\Red Gate\SQL Backup\SqlBackupC.exe" -USE "dwdev01_user_db_full_opwhse"
"C:\Program Files\Red Gate\SQL Backup\SqlBackupC.exe" -USE "dwdev01_user_db_full_shared_stg"
IF %ERRORLEVEL% == 0 GOTO success
echo Failed with exit code %ERRORLEVEL%
GOTO end
:success
echo Successful
GOTO end
:end
What would be the cause of this error? Suggestions for further diagnosis?
Thanks,
- Bern
Backing up FIN_MGMT_PROJ_SUP_ACQ (full database) to \\bcbk1sn1\sqlbackups4\dwdev01\dwdev01_FIN_MGMT_PROJ_SUP_ACQ_FULL_20050520 155055.sqb ...
VDI error 1000: Failed to create virtual device. Check that the SQL Server instance you are trying to connect to is running. Error code: -2147024891 ()
Access is denied
SQL Backup 3.2.0, (c) Red Gate Software Ltd 2004 - 2005
This error occurs randomly and is not associated with a specific database. I'm running six batch jobs concurrently which are constructed simular to the following:
rem * dwdev01_user_db_full6.bat
rem * 20050518 BJA: Initial Development
@ECHO OFF
"C:\Program Files\Red Gate\SQL Backup\SqlBackupC.exe" -USE "dwdev01_user_db_full_acq_mgmt_ods"
"C:\Program Files\Red Gate\SQL Backup\SqlBackupC.exe" -USE "dwdev01_user_db_full_comm_ods"
"C:\Program Files\Red Gate\SQL Backup\SqlBackupC.exe" -USE "dwdev01_user_db_full_data_dictionary"
"C:\Program Files\Red Gate\SQL Backup\SqlBackupC.exe" -USE "dwdev01_user_db_full_data_request"
"C:\Program Files\Red Gate\SQL Backup\SqlBackupC.exe" -USE "dwdev01_user_db_full_info_res_invnt"
"C:\Program Files\Red Gate\SQL Backup\SqlBackupC.exe" -USE "dwdev01_user_db_full_opwhse"
"C:\Program Files\Red Gate\SQL Backup\SqlBackupC.exe" -USE "dwdev01_user_db_full_shared_stg"
IF %ERRORLEVEL% == 0 GOTO success
echo Failed with exit code %ERRORLEVEL%
GOTO end
:success
echo Successful
GOTO end
:end
What would be the cause of this error? Suggestions for further diagnosis?
Thanks,
- Bern
Comments
The error code relates to the message "Failed to create security environment" while trying to initiate the backup.
Can you try using the full command rather than saved settings. If you are running as a scheduled task please ensure that the operator has the correct permissions on SQL, if you use the -E option, and permissions on the remote location.
If you do use the saved setting make sure that the operator has permission to view the registry, as this is where the settings are saved.
Dan
Red Gate Software Ltd
Dan
Red Gate Software Ltd
Thanks,
- Bern
We'd appreciate it if you could send whatever information that you have to support (at) red-gate.com
- Bern
What I need to do:
Recover data from one table in a backup
What I am doing:
Restoring the database to a new (empty) database
I select the database to restore to, select overwrite database click next
Specifically, it says:
VDI Error 1000: Failed to create virtual device. Check that the Sql Server instance you are trying to connect to is running. Error Code: -2139684857
You have a different problem because the error message you have received relates to "Failed to recognize the SQL Server instance name".
Can you check that the server name / instance you have chosen is correct and that the file location has been changed to the blank database.
You may want to look at the vdi.log file which is found in the mssql\log directory.
Regards
Dan
Red Gate Software Ltd
Thanks for the response. I installed the trial version on a different machine and recovered the data I need. I think that maybe the version on the server needs to be updated as it's 3.00.
Best,
Shane
The latest version is 3.2 and can be downloaded from our web site.
Before you upgrade please uninstall the extended store procedure from the sql server. This is just a precaution as the latest version copies the xp in the sql\binn directory.
Regards
Dan
Red Gate Software Ltd
And again same error tonight
I'm read the previous recommendations, vdi.log does not exist anywhere on my machine.
This is my script that runs nightly as a service account that has admin privledges:
I just ran it with the same user ID, ran my batch file and it worked correctly.
Server: HP Integrity rx7620
OS: Windows 2003 Enterprise Edition
Procs: 4 x Itanium 2 1.5GHz
Mem: 16GB
Any ideas, having missing transaction logs and full nightly backups is not reliable to me. :?:
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
Still same issue.