Unsolved
This post is more than 5 years old
1 Message
0
601
January 20th, 2008 16:00
admsnap SQL and multiple LUNs
We have an EMC CX3-10c that hosts our SQL Database. There are 3 Luns. One contains the log (ldf) file, the second contains the primary file group and the third the secondary file group.
Every night we run the following admsnap in a batch file via Windows Scheduled Tasks:
admsnap stop -s LogFile-o j:
admsnap flush -o j:
admsnap start -s LogFile-o j:
admsnap stop -s PrimaryFileGroup-o i:
admsnap flush -o i:
admsnap start -s PrimaryFileGroup-o i:
admsnap stop -s SecondaryFileGropu-o h:
admsnap flush -o h:
admsnap start -s SecondaryFileGroup-o h:
My question is this: If we find ourselves in the unfortunate position of having to do a rollback, will the data be consistent? My concern is that since the log file and database file are so interdependent that the snapshots won't occur in parallel and thus the snapshot would be virtually useless.
The example I' thinking of is that the log LUN is snapped and then a record is inserted then the DB and then the DB lun is snapped.
Is this a valid concern? If so what options (with admsnap) to we have?
Many thanks,
Every night we run the following admsnap in a batch file via Windows Scheduled Tasks:
admsnap stop -s LogFile-o j:
admsnap flush -o j:
admsnap start -s LogFile-o j:
admsnap stop -s PrimaryFileGroup-o i:
admsnap flush -o i:
admsnap start -s PrimaryFileGroup-o i:
admsnap stop -s SecondaryFileGropu-o h:
admsnap flush -o h:
admsnap start -s SecondaryFileGroup-o h:
My question is this: If we find ourselves in the unfortunate position of having to do a rollback, will the data be consistent? My concern is that since the log file and database file are so interdependent that the snapshots won't occur in parallel and thus the snapshot would be virtually useless.
The example I' thinking of is that the log LUN is snapped and then a record is inserted then the DB and then the DB lun is snapped.
Is this a valid concern? If so what options (with admsnap) to we have?
Many thanks,
0 events found
No Events found!


kelleg
6 Operator
•
4.5K Posts
0
January 21st, 2008 09:00
naviseccli -h ss1_spa snapview -startsession 2pmsession -lun one
two three -consistent
Please see "EMC® SnapView¿ Command Line Interfaces (CLI)" manual on PowerLink for instructions on using this command (Chapter 4 page 160).
Also see the Administrators guide for SnapView
regards,
glen kelley
AranH1
2.2K Posts
0
January 21st, 2008 12:00
Won't that only provide a crash consistent database and not an application consistent database?
I have SQL databases in our environment and have used at different times snaps, clones, Replication Manager, and RecoverPoint for the replication of these databases. Unless the replication method specifically freezes the database and creates a SQL consistent point in time version of the data, the data will only be crash consistent. SQL can usually recover from crash consistent data but officially Microsoft states that it is not a supported method for disaster recovery.
Replication Manager and RecoverPoint have the ability to create SQL consistent replicas, but with scripting you would have to create a custom script that includes calls to the SQL database to create a SQL consistent replica.
Aran
kelleg
6 Operator
•
4.5K Posts
0
January 21st, 2008 13:00
If the database is not "paused" or put into a mode for recovery, then the consistent snap only provides crash protect. Scripting this is very difficult and I do really not know how this is done.
regards,
glen kelley
dynamox
11 Legend
•
20.4K Posts
•
87.4K Points
0
January 22nd, 2008 20:00
kelleg
6 Operator
•
4.5K Posts
0
January 23rd, 2008 10:00
regards,
glen