SQL Virtual Restore
Latest version: 2.4
Knowledge base
SQL Virtual Restore Error Checking Service Configuration - VirtualDiskSize setting required
Date: 14/09/2010
Product: SQL Virtual Restore
Applies to version : 2.1
Using the SQL Virtual Restore Wizard, you follow each step to create a virtual database from the backup file or files selected.
Viewing the summary on the final step, the wizard checks that the HyperBac Control service is running and is configured correctly for the virtual restore operation.
If the checks are successful, under the Service Configuration, the wizard will confirm that the HyperBac Service is running, HyperBac Extensions are configured correctly and HyperBac VirtualDiskSize setting is configured correctly. Also the 'finish' button will become available so that you can start the virtual restore process, as per the screen shot below:

In Version 2.0 of SQL Virtual Restore, if the disk space available for your compressed database files is less than the space they would have used if uncompressed, SQL Server will report Error 3257 when you attempt the restore:
Msg 3257, Level 16, State 1, Line 1
There is insufficient free space on disk volume '<volume>' to create the database. The database requires <x> additional free bytes, while only <y> bytes are available.
You can prevent this error by adding a parameter to the "hyperbac.conf" configuration file, as follows:
- Open the "hyperbac.conf" file in Notepad, or a similar text editor
"hyperbac.conf" is located at "C:\Program Files\Red Gate\HyperBac\bin" by default.
- Add the following line at the end of the file:
VirtualDiskSize=<size in GB>
Where <size in GB> is the size of the uncompressed database. For example, if you are trying to create a compressed database for which the uncompressed database files would require 100 GB of disk space, add the line:
VirtualDiskSize=100
You can set the VirtualDiskSize parameter to whatever value is necessary to accommodate the uncompressed size of the database files, irrespective of how much physical disk space is actually available.
- Restart the HyperBac Control Service.
You can now run the restore process again. Provided you have set the VirtualDiskSize parameter to a high enough value, the "insufficient free space" error will not be raised by SQL Server.
Note that the VirtualDiskSize parameter will affect all restore operations you run on this SQL Server. You should therefore edit the "hyperbac.conf" file to remove the VirtualDiskSize parameter, once you have successfully created your compressed database.
If you leave the VirtualDiskSize parameter in place, this may cause problems with subsequent restore operations, as the reported free space available on the disk volumes will be incorrect.
In Version 2.1 of SQL Virtual Restore Wizard, if the disk space available for your compressed database files is less than the space they would have used if uncompressed, the HyperBac VirtualDiskSize setting check will fail with the message below and the 'Finish' button will not be enabled:
VirtualDiskSize setting required: add the line 'VirtualDiskSize=<value>' to hyperbac.conf

To continue with the virtual restore operation, simply select the "Auto-configure HyperBac Service for this restore" checkbox which will automatically configure the HyperBac.conf file. The VirtualDiskSpace parameter will be added with the correct size value for the database before restore operation commences, and the parameter will be removed once the restore operation is complete.
This eliminates the need to manually edit the HyperBac Configuration file, saving you time and accidently leaving behind the VirtualDiskSize parameter which may cause restore problems in the future.

The virtual restore operation now runs and automatically configures the HyperBac configuration file, setting the VirtualDiskSize parameter. After completing the virtual restore operation, the process removes the VirtualDiskSize parameter from the HyperBac configuration. The virtual restore process displays a dialog box showing the progress of the operation.

Was this article helpful?
SQL Virtual Restore
- Upgrading the HyperBac engine components
- SQL Virtual Restore Error Checking Service Configuration - VirtualDiskSize setting required
all SQL products
- Compatibility of Red Gate tools in 64-bit environments
- Application has encountered an error and needs to close
- Error message after installing SQL Toolbelt - The description for Event ID ( 1 ) in Source ( nview_info ) cannot be found.
- Changing the temporary directory used by the installer
- Toolbelt Installer "hanging" while "scanning volumes"
- Login failing with "trusted SQL Server connection" error when using RunAs
all products
- Some Red Gate products identified as containing a trojan by Anti-Virus software
- Activation may fail with Unknown Error -1
- Product uses web help although a CHM file is available locally
- Argument exception resulting from missing environment variable
- Check for updates may fail when used through proxies
- 'Unidentified Publisher' error when repairing or uninstalling
- Licensing activates product as standard edition
- Moving Red Gate software products to another machine
- Red Gate tools log locations
- The application UI opening slowly when there is no internet access
SQL Virtual Restore
all SQL products
all products
- Red Gate product acknowledgements
- Activating your products
- Activating your products
- Red Gate bundle history
- Check for updates
- Troubleshooting Check for Updates errors
- Current versions
- Deactivating your products
- Installing Red Gate products from the .msi file
- Requesting additional activations
- Serial numbers for bundles
- Reactivating using a different serial number
- Extending your trial
- Finding your serial numbers
- Moving a serial number from one computer to another
- No response received for manual activation
- Licensing and activation resources
- Licensing and activation resources
- Troubleshooting licensing and activation errors
- Licensing and activation FAQs
- Red Gate tools log file locations
- Download old versions of products
- Download product prerequisites & utilities
- Support & upgrades
- Upgrading your software
- Upgrading FAQs

Using SQL Virtual Restore