The lowdown on storage and data protection
Backup to tape, disk and beyond
SaaS data loss: The problem you didn’t know you had
Deep dive El Reg has teamed up with the Storage Networking Industry Association (SNIA) for a series of deep dive articles. Each month, the SNIA will deliver a comprehensive introduction to basic storage networking concepts. The first article explores data protection.
Part1: Fundamental Concepts in Data Protection
Data protection is about making data available when something is going wrong.
There is no business continuity without data availability. Data is a valuable yet vulnerable asset; it can be accidentally compromised or destroyed by viruses, a wrong patch or administrative errors. In addition human error can contribute to data loss (for example deletion of the wrong file), and also software can misbehave. Whenever this occurs you need an uncorrupted, clean copy to restore. This process is called recovery and data protection is bout making such a copy and the process of retrieving it.
Recovery is so much more than just restore
As data protection revolves much more around recovery than back up, it is worth looking at the recovery process, and in particular at its five phases.
Detection First of all, we need to be aware of the issue by detecting it. If you just deleted a file or a directory the loss will be obvious but if your data has been corrupted by a virus for example, quite some time can pass before you notice and then you need to find out when the virus struck and what data has been affected. This leads us to phase two, the diagnosis.
Diagnosis The key point at this stage is to understand to what point in time you need to go back to retrieve the correct copy of the data, when it was still consistent and error-free. This is when you will also have to decide if you just need to recovery single files or a full back up. This will depend on your backup strategy and policies.
Restoration Now we come to phase three, the restoration of the compromised data, often mistaken for the complete process of recovery. This is the step where you physically copy (old) data to your production system. Depending on the accident before you can resume normal operations you might need to restart all your applications, replay logs from a database, or replay from a journal for a file system. This ensures that the amount of data you lose is kept to the bare minimum possible.
Test and Verification All the steps outlined above are going to be pointless if an error has occurred and you cannot recover or use the data you need. As a result the final stage is to test and verify that your data recovery was successful. It is only once this stage has been successfully completed that the data recovery process can be signed off.
RPO and RTO?
Whenever there is an incident that corrupts data, you typically will have a backup with non- corrupted data. Let’s call this the “last known good image”. If your most recent backup of uncorrupted data took place, say, last night, and today at lunch time your data was corrupted, your recovery point objective or RPO is last night and you would potentially lose half a day’s work or, in other words, any changes you have made to your data since your last backup of clean data.
Can you live with losing half a day’s work? This will probably depend on what data was affected. In some cases you might only want to lose the last ten minutes of data (an RPO of just a few minutes would however be considered quite aggressive for most scenarios).
The recovery time objective or RTO is how fast your applications come back, based on your last backup of a good image. As discussed above this period of time is not just the duration of the data restore from the backup but also that of all the phases of the recovery process.
Although the restore can be made quicker by using disk instead of tape or by using snapshots for example, restore is only one element of the recovery process and that is why an RTO of zero is science fiction.

Slide from SNIA Tutorial: Introduction to Data Protection, Disk, Tape and Beyond: http://www.snia.org/education/tutorials/2010/fall
Minimising RTO and RPO
When you look at how critical some services, applications, and data are to your organisation you realise how important it is to minimise data loss i.e. to move your RTO and RPO as close to zero as possible.
With RTOs we have seen how the fresher the last ‘good’ backup (in other words, the shorter your RPO), the less time a log-based recovery will take. However the actual recovery point will rarely be just before the incident because not every point is suitable to recover from.
When we talk about application data e.g. an Oracle database for an SAP application, we need to be sure that we have consistent data. For instance: if we restore from a point in the middle of a transaction we might get into big trouble. Therefore, for backup applications you will need to first ensure the consistency of data and then backup. Obviously this reduces the number of points in time that are available for a restore.
As a rule of thumb, the higher the frequency of backups the higher your chances to have a workable RPO. The other side of the coin however is that the more often you backup the more expensive your data protection strategy will be. But the good news is that frequent backups are not necessary or beneficial. There are only a limited number of points in time that are really relevant.
If we look at the causes of data corruption many of them do not come as that much of a surprise and can be avoided. For example if you want to install a patch, make a back up before you do so; if the patch or upgrade fails, you have a working point of recovery. Let’s call such points of recovery, significant or relevant points in time and it is really helpful to be able to capture all these points. And there are certainly more of them than just one every evening.
Creating consistent backups of applications
The easiest way to create a reliable, consistent backup of an application is to shut the application down and then backup its data. The shutdown will create a consistent state. On the other hand it will result in downtime which today is unacceptable.
Another option is given by applications that support backups and allow you to put sets of data in a consistent mode before backing them up while the application is still running.
The third way is to generate a snapshot at a moment in time when data is consistent then backup from this snapshot while the application continues to run and change the original data. This is the path chosen today for very demanding applications.
Data protection strategies trade offs
There are numerous backup and recovery technologies currently available on the market and all of them have their price tag. Before you can decide you need to define your requirements. Not all data is the same; is every application service equally important to your company? You also need to differentiate between file services, email systems, databases and how quickly these must be available after an incident. How much data could you afford to lose? And how much you are ready to invest?
However, data protection is not just about RPO and RTO; the safety of your backed up copies is just as important. Would they survive a disaster? Depending on the criticality of your data you might wish to create multiple copies of your back up, on different types of media, and store them in separate locations.
The more copies you have and the further apart they are away from each other, the more secure your data is. But having several copies and moving them off site costs money. Some companies put data on tapes and store these in mines, sometimes deep in the Swiss Alps so they might survive a nuclear blast. Not every organisation needs this level of data protection, though.
To work out how much to spend on your data protection strategy ask yourself how much would data loss cost your organisation; at what stage would the unavailability of critical services and applications cost more than said strategy? How long could your organisation go without access to data?
Putting in place an infrastructure to protect information is like buying an insurance policy: you need to understand the impact of the incident to determine the price you are ready to pay to overcome this incident.
Bootnote
This article was written by Marcus Schneider, SNIA Europe Board member, and Director of Product Marketing at Fujitsu for Storage Solutions.
Part 2: Overview of a backup infrastructure will discuss how a backup infrastructure is put in place and operated.
For more information on this topic, visit: www.snia.organd www.snia-europe.org. To download the tutorial and see other tutorials on this subject, please visit: www.snia.org/education/tutorials/2010/fall
About the SNIA
The Storage Networking Industry Association (SNIA) is a not-for-profit global organisation, made up of some 400 member companies spanning virtually the entire storage industry. SNIA's mission is to lead the storage industry worldwide in developing and promoting standards, technologies, and educational services to empower organisations in the management of information. To this end, the SNIA is uniquely committed to delivering standards, education, and services that will propel open storage networking solutions into the broader market. About SNIA Europe SNIA Europe educates the market on the evolution and application of storage infrastructure solutions for the data centre through education, knowledge exchange and industry thought leadership. As a Regional Affiliate of SNIA Worldwide, we represent storage product and solutions manufacturers and the channel community across EMEA.
COMMENTS
@ammaross
"Such CDP systems would only benefit DBs if they grab the transaction log. Then you can have the DB roll back the log to a consistant state. The CDP system isn't, in itself, magical enough to do this on its own."
-- Yes the CDP system can and will capture the logs too. Yes, the roll back though will be done through the database. Its the only way I know of at least......
"Such a fail comment. In the event of a database foobar, that corruption is automagically replicated to your mirror. Same goes for corrupting (modifying/deleting) files. The only time mirroring to a hotsite is useful is for system failure. Server bursts into flames? No problem, we have a hotsite. Directory tree got deleted? You lose your zero RTO due to having to restore files."
--- Such a fail response..... thats what snapshots are for. Run snapshots on your mirrors (heck on your source too).
Oh dear ...
>> I work in banking and for obvious reasons, we have to have a zero RTO on our online financial transaction systems (you can't lose transactions, that would be really bad!)
Who didn't read the article and still doesn't understand what they are commenting on then ?
You do NOT have a zero RTO, that (as pointed out) is completely science fiction except for certain classes of problem. What you are after is a zero RPO which is something completely different. Ie, it may take you a few minutes to a few hours (depending on what happened) to recover systems to a working state - but if you are able to recover all transactions up to the moment of failure then you can have a zero RPO.
@ Steven Jones
>> Uhm - how can this be introduced without reference to Oracle's transactional inegrity or archive logging? Assuming that a backup has been taken properly, it's impossible to recover a database in the middle of a transaction without doing some bizarre things.
But not all systems use Oracle, or even an "online RDB". When designing the technical elements of your business continuity (BC) strategy (which is what this is about) it would be nice to be able to say all your apps use a well behaved RDB with full transaction and journalling capabilities (which they actually use), but back on planet earth that is not always the case.
OK, in general, the bigger the system the more likely that is the case, but I've worked with plenty of systems where data is in various forms - one in particular used an Informix C-ISAM engine. Yes you may turn your nose up and suggest something along the lines of "well if you use software like that then your deserve all you get", but at the time it was put in it was the best of the products on offer both in terms of fitting the business requirements and being affordable.
The downside of course is that neither the software, nor the underlying database (which was actually just a load of files on disk), supports transactions - which also had issues in areas other than BC. The software also had no way to tell a module to quit and rollback anything it was up to - so we did need to be careful over who was able to do what during our backup window, and we couldn't automatically terminate any sessions still in use.
But this wasn't the end of the world - it just meant that our RPO could never be anything other than "last night" (other than for special cases where we'd kick everyone out and do a data copy before some process (eg financial month end)). Our technical RTO would be "as long as the restore takes", and the business RTO would be that plus whatever time it took for people to redo their work for the day.
And yes, it did get tested for real a couple of times :-( Management would make use of the down time to get people tidying their desks and filing cabinets !
I do think there is one aspect I believe the article really missed though - and that's how to have a meaningful discussion with management about it - and the place of the technical stuff in the overall BC plan. Naturally management want a zero RPO, zero RTO, and zero cost. They also don't want to consider other vital elements of BC - such as "when the 'server room' burns down and you've recovered to some spare hardware, where are the staff going to sit since the office probably went up with the server room ?"
At my last job (no names, no pack drill - hence the AC posting) I tried to raise such issues, but management refused to accept that DR was anything other than an IT issue. One day we had a false fire alarm in the factory, and when everyone was stood outside in the cold and rain, soaked to the skin (literally for many) ... I casually mentioned to one of the directors that if this was a real fire (so we weren't going to be going back in the building today), then the BC plan would tell us where we were going to put the staff, how they were going to get home (car keys or money for bus fare in desk drawers), etc.
I think you can imagine how far that got me !
Pedant alert: not spindles but LUNs
You are right on the architecture and most financials do the same, particularly for messaging apps. However, these are not on separate spindles but rather separate LUNs.
Motherhood & apple pie explanation: the enterprise storage device your app runs on 'virtualises' the physical spindles by breaking them into thousands of small extents and then groups these extents into LUNs which the server uses. These LUNs may well have blocks of data on the same spindles. The same principle exists if you run on NFS from an enterprise filer.
We've been trying to educate DBAs to stop talking about spindles for 15 years...

IT infrastructure monitoring strategies
Agentless Backup is Not a Myth
Top 10 SIEM implementer’s checklist
Steps to Take Before Choosing a Business Continuity Partner
Enabling efficient data center monitoring