Tuesday, October 13, 2009

The One That Got Away: True story of not taking backups

"You mean to tell me that we have absolutely no backups of paris whatsoever?" I will never forget those words. I had been in charge of backups for only two months, and I just knew my career was over. We had moved an Oracle application from one server to another about six weeks earlier, and there was one crucial part of the move that I missed. I knew very little about database backups in those days, and I didn't realize that I needed to shut down an Oracle database before backing it up. This was accomplished on the old server by a cron job that I never knew existed. I discovered all of this after a disk on the new server went south.

"Just give us the last full backup," they said. I started looking through my logs. That's when I started seeing the errors. "No problem," I thought, "I'll just use an older backup." The older logs didn't look any better. Frantic, I looked at log after log until I came to one that looked as if it were OK. It was just over six weeks old. When I went to grab that volume, I realized that we had a six-week rotation cycle, and we had over-written that volume two days before.

That was it! At that moment, I knew that I'd be looking for another job. This was our purchasing database, and this data loss would amount to approximately two months of lost purchase orders for a multibillion-dollar company.

So I told me boss the news. That's when I heard, "You mean to tell me that we have absolutely no backups of paris whatsoever?" Isn't it amazing that I haven't forgotten its name? I don't remember any other system names from that place, but I remember this one. I felt so small that I could have fit inside a 4mm tape box. Fortunately, a system administrator worked what, at the time, I could only describe as magic. The dead disk was resurrected, and the data was recovered straight from the disk itself. We lost only a few days' worth of data. Our department had to send a memo to the entire company saying that any purchase order entered in the last two days had to be reentered. I should have framed a copy of that memo to remind me what can happen if you don't take this job seriously enough. I didn't need to though; its image is permanently etched in my brain.

Monday, October 12, 2009

Backup cartoon #5

Backup cartoon #5"As a deterrent, we're finding 'not by the hair on my chinny chin chin' needs backup."

Friday, October 9, 2009

Hard Disks - cheap way to store backups

Disks have become a very attractive backup target these days. Here is a quick summary of some of the reasons why is it so:
  • Cost: The biggest reason that disk has become such an attractive backup target is that the cost of disk has been dramatically reduced in the last few years. The cost of a reasonably priced disk array is now approximately the same price as a similarly sized tape library filled with media. When you consider some of the things you can do with disk, such as eliminating full backups and redundant files, disk becomes even less expensive.
  • Reliability: Unlike tapes, disks are closed systems that aren't susceptible to outside contaminants. In addition, the actual media of a hard drive is, well, hard when compared to a piece of tape media. The result is that an individual disk drive is inherently more reliable than a tape drive. Disk drives become even more reliable when you put them in a RAID array.
  • Flexibility: Generally speaking, tape drives can only go two speeds: stop & very fast. Yes, some tape drives support variable speeds. However, they can usually only slow down to about 40% of the rated speed of the drive. Disk drives, on the other hand, work at whatever speed you need them to go. If you need to go a few hundred megabytes per second, put a few drives in a RAID group, and blast away. Then if you need that some RAID group to write at 10KB/s, go ahead. Unlike tape drives, disk drives have no problem writing slowly, then quickly, then slowly, then.... You get the picture. This makes disk a perfect match for unpredictable backup streams. Once all that random data has been written in a serial fashion on your disk device, the disks can easily stream backup data to tape - if that's what you want to do. Some people are foregoing that step altogether and replacing it with replication. Try doing that with a tape drive.
Disk based backups are also an extremely economical way to bring completely automated backups to small & medium businesses (SMBs). While a large tape library can be very inexpensive (on a dollars-per-GB basis) and very expandable, the same is not always true of smaller libraries aimed at the SMB market. The big challenge is expandability. The less expensive a tape library is, the less expandable it usually is.

Thursday, October 8, 2009

Backup cartoon #4

Backup cartoon #4'With McBride here as our fall-back, all our systems are virtually foolproof.'

Wednesday, October 7, 2009

cpio archive for UNIX

cpio archive for UNIXcpio is a binary file archiver & a file format basically for the UNIX based systems that ends with .cpio file extensions. Available under the GNU license, cpio software utility was meant to be a tape archiver that was originally part of PWB/UNIX and that was also part of UNIX System III & UNIX System V and is a stream of files & directories in a single archive. Though its later versions, such as tar, are more popular & considered to be a better solutions that cpio itself but it's usage in the RPM Package Manager, the Linux Kernel 2.6 series' initramfs, Oracle's distribution of its software in the cpio format and Apple's 'pax' installer archive continues to make cpio an important archive format.

The header of a cpio archive contains information such as the file names, time stamp, owners & permissions and was designed to store backups onto a tape device in a contiguous manner. Like the Tar format, CPIO archives are often compressed using Gzip and distributed as .cpgz or .cpio.gz files and supports the binary, old & new ASCII, crc, HPUX binary, HPUX old ASCII, old tar & POSIX.1 tar archive formats.

The cpio utility was standardized in POSIX.1-1988 & was dropped from later revisions, starting with POSIX.1-2001 due to its 8 GB filesize limit. The POSIX standardized pax utility can be used to read and write cpio archives instead. The latest release of cpio is version 2.10 that was released on 20-June-2009 after minor bugfixes.

Tuesday, October 6, 2009

Backup cartoon #3

Backup cartoon #3Ritz Cafe - Sorry, closed. Our regular, backup and emergency can openers are down.

Saturday, October 3, 2009

Implementing Backup and Recovery by David B Little & David A. Chapa

Implementing Backup and Recovery by David B Little & David A. ChapaImplementing Backup and Recovery: The Readiness Guide for the Enterprise is a book by David B Little & David A. Chapa that arms you with all the information you need to architect a backup and recovery system. System backup is essential in any enterprise - protecting data is equivalent to protecting the company or agency. Whether you have the task of putting together a backup and recovery system for your organization or you are thinking about how backup & recovery rits within the scope of total data availability, this book is an invaluable resource.

Implementing Backup and Recovery takes you through the necessary steps of deploying services by showing you how to address the architecture, limitations and capabilities of the existing network infrastructure. After an introduction to backup and recovery in the enterprise, Little and Chapa give a tutorial on the components of backup. Then, using VERITAS NetBackup as an example, they show you how to install and configure a backup application and how to customize services to meet customer needs. Throughout the book, the authors use real-life client situations to explain specific concepts. In addition, you'll also learn:
  • The business & legal requirements of backup systems
  • VERITAS NetBackup's tiered architecture and configuration elements
  • How to determine your need for additional backup services
  • What the future holds for backup and recovery