lzhu1

updated

16 years ago

L

lzhu1

24 Posts

0

2700

August 10th, 2010 08:00

TF/Clone for MS sql server

2 Questions:

1) after "Create" and "Activate" symclone commands, the target SQL server host can be started to use the targer Device on symatrix?

2) when do we need to use "consistency" with TF/Clone?

  • AranH1

    2163 Posts

    525

    0

    Posted August 10th, 2010 13:00

    You don't need to take the host down for consistent clones, the database just needs to be put in hot backup mode. You can use scripts to put the database in backup mode, split the clones, then take the database out of hot backup mode. Your DBAs should be able to help you with the sql scripts.

    Depending on what you need the clone for though, you may be able to get by with a crash consistent copy of the DB. You just need to run recovery on the database. As long as you are cloning the log volumes in addition to the data volumes this should work.

    Ideally though if you want a good SQL consistent copy of the database you should use RM of TF/SIM. I use RM for making clones/bcv/snaps of SQL databases on our DMX. It works great.

  • lzhu1

    24 Posts

    313

    0

    Posted August 10th, 2010 14:00

    could be taking the sql db "offline" - before split and then putting db back "online" - after ? thanks

  • AranH1

    2163 Posts

    313

    0

    Posted August 10th, 2010 14:00

    Nope, it doesn't take the db offline. I am not sure why you think Microsoft SQL Server cannot be backed up online. There is a ton of documentation on MSDN about SQL backup and recovery. If SQL can run in backup mode and create a 'hot' backup to a file, then the API exists to put the database in backup mode and take it out of backup mode.

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    313

    0

    Posted August 10th, 2010 14:00

    that will sure work if your users/applications are willing to take that outage.

  • AranH1

    2163 Posts

    315

    0

    Posted August 10th, 2010 14:00

    I am not a DBA so don't know the correct term, but there is a backup mode in SQL server that allows you to get a consistent view of the data and log files on a volume for backup and recovery purposes.

  • lzhu1

    24 Posts

    315

    0

    Posted August 10th, 2010 14:00

    Thanks. I will definitly have to read more about RM TF/SIM. There is no "hot backup mode" in sql server. I am looking to use TF/Clone to creat our reporting databases.

  • AranH1

    2163 Posts

    313

    0

    Posted August 10th, 2010 14:00

    Looking through my RM logs I can see where the agent is talking to SQLServer agent within the instance hosting the database and freezes the database, peforms a consistent split of the clones, then thaws database. So this is scriptable, but it is most likely will require a bit of work.

  • lzhu1

    24 Posts

    313

    0

    Posted August 10th, 2010 15:00

    Sql server's backups are always hot backups but unlike Oracle there is no such thing to put sql server database in "backup mode". thanks.

  • AranH1

    2163 Posts

    313

    0

    Posted August 10th, 2010 15:00

    Like I said, I am no DBA so my terminology in reference to SQL backups may not be accurate. But I see in the logs that RM is able to freeze the SQL database for creating a consistent mirror/clone of the LUNs that the SQL data and log files use, and then RM issues a thaw command. Sounds like a backup mode to me .

  • RRR

    6 Operator

    •

    5739 Posts

    313

    0

    Posted August 11th, 2010 04:00

    I think the thing we need to focus on is that we all understand the reason why and how we need to get the db in a restartable mode, which is probably named differently in MS SQL or Oracle or DB2, or whatever.

    Consistency and restartability is what we need here !