Running the utility
HP DButil is run from a Windows command line, typically using the following methods:
• Windows batch files
• HP Replication Solutions Manager jobs that call batch files or scripts
HP DButil creates a metadata file in the directory where it is run. HP DButil uses this metadata to
restore the database. A metadata file is valid only for the snapshot that it is created for. If you run HP
DButil from the directory of the SQL Server database, you can keep separate metadata files for
restoring multiple databases.
HP DButil commands
HP DButil supports the following commands.
DButil –pre
The DButil -pre command suspends an SQL Server database and places it in a transactionally
consistent state. Write operations to the database are suspended until the DButil –post command
is issued. Use this command just before you replicate the database.
Syntax:
DButil –pre <sqlserver_name> <database_name> <username> <password>
DButil –post
The DButil -post command resumes a suspended SQL Server database and allows write operations
to continue. Use this command just after you replicate the database.
Syntax:
DButil –post <sqlserver_name> <database_name> <username> <password>
DButil –mfreeze
The DButil –mfreeze command suspends multiple databases residing on a single LUN or a set
of LUNs that must be replicated as a group. Write operations to specified databases are suspended
until the DButil –mthaw command is issued. For example, if three databases reside on the same
LUN, the following commands would suspend all three:
DButil –mfreeze 1 of 3 <sqlserver_name> <database_name> <username> <password>
DButil –mfreeze 2 of 3 <sqlserver_name> <database_name> <username> <password>
DButil –mfreeze 3 of 3 <sqlserver_name> <database_name> <username> <password>
Complete this procedure by issuing a matching DButil –mthaw command before issuing any
subsequent DButil –mfreeze or DButil –pre commands.
Using HP StorageWorks DButil8
Commentaires sur ces manuels