We've all had the problem: You haul out your trusty USB thumb-drive to put something on it. . . And there's no more space. So, you look to see what you can delete, and - damn it all! - there's nothing you can toss.
Or, you want to transfer a LARGE file or data object from point "A" to point "B" and it's just too big to put in your pocket. Uploading to an on-line file repository is an option, but that will take forever.
How would you like to have thumb-drives in the multi-terabyte size range?
The answer is "Hard Drive Docking Stations"
For those of you who are going "Wazzit?", a hard drive docking station is a (relatively) small plug-in device that you can put on your desk that has a slot in the top for a hard drive to fit. Though usually for SATA drives, there are IDE (PATA) options as well.
Here are a couple of examples:
This one is a NexStar caddy that fits two laptop size or two desktop size SATA drives. On the back, (not shown), are ports for both eSATA and USB. If you have an eSATA port on your computer that supports "Port Multiplier" functionality, you can put two drives in it, and access both of them at the same time.
And this little beastie is my Thermaltake BlacX caddy that fits one 2.5 / 3.5 SATA drive. It also has back panel connections for both eSATA and USB. In fact, I'm using this with a 1T drive in it - right now - to back up a customer's laptop before I rebuild it.
Now, granted, these little monsters are not cheap. But they're not all that expensive either, especially if you can get them on sale.
And!
They're damned handy. I've had situations where I had to work with a hard drive in a computer that would not boot, (the MoBo was fried, etc.), and with these things I can mount the hard drive under Windows or Linux, verify drive integrity, and suck the customers data off of it.
Likewise, if you remember the article I wrote about getting hard drives exchanged for (nearly) free, something like this is a great way to take a drive, test it, and get it ready for that all so important warranty return. Or to test the NEW drive they sent you, to verify they didn't send you someone else's crappy drive. (And yes, that does happen.)
If you want to take a lot of data somewhere, all you have to do is load the beastie up, slip it in an anti-static bag, tape it shut, and be on your way. (Don't forget to bring your caddy if the guy at the other end doesn't have one.)
A couple of important points:
First of all, eSATA is way, WAY faster than USB. However, if you are going to use an eSATA card and cable to hook the monster up to your computer, you may not be given the option to "disconnect" the drive in the same way you get that option to disconnect a USB device. The solution? Go to the Device Manager, find the external drive, "uninstall" it, and then you're set to go.
Second, if you are REALLY interested in using in the same way you'd use a USB thumb-drive, you should use a real eSATA port that supports AHCI. This allows you to remove the drive you uninstalled thirty seconds ago, slap another drive in the caddy, and have it come on-line automagically, without a reboot.
If you are desperate, you can use either the USB connection - which does allow disconnect - or one of the SATA ports on your system's motherboard. Unfortunately, most of the motherboards *I* have messed with get real annoyed if you unplug hard drives on 'em. As in frozen solid, or doing bizarre things. So, if you don't have an eSATA port, either bite the bullet and get one, or use USB.
Now you may say that an external USB/eSATA hard drive, or hard drive enclosure, will do the same thing.
I disagree. There is a qualitative difference between using a hot-swap dock and an external hard drive.
With the drive dock, you are not limited to the size of the one drive - or if you want to swap drives - you don't have to disassemble the little bastid.
Of course, there are a few caveats:
One: You don't have the shock-resistance of an enclosed drive, so don't go playing deck hockey with 'em.
Two: You probably want to invest in at least one or two anti-static wrist straps. That's assuming you really don't want to be zapping hundred-dollar-plus hard drives with the static electricity you built up walking across the carpet.
Three: Save the anti-static bags the drives come in. You'll use them to store and/or transport the drive.
The conclusion?
If you are a little bit careful, and a little bit inventive, you can use normal, plain-vanilla hard drives as REALLY HUGE thumb drives.
What say ye?
Jim (JR)
Technical information of interest to the Software QA community as well as others interested in the odd things that can happen with computers
Welcome to the QA Tech-Tips blog!
Some see things as they are, and ask "Why?" I dream things that never were, and ask "Why Not".
Robert F. Kennedy
“Impossible” is only found in the dictionary of a fool.
Old Chinese Proverb ?xml:namespace>
Robert F. Kennedy
“Impossible” is only found in the dictionary of a fool.
Old Chinese Proverb
Thursday, March 21, 2013
Wednesday, March 13, 2013
Internet Explorer 10
Prevent Automatic Install
Sheesh!
Hey! Microsoft! Yes, YOU over there!!! What's with this IE-10 as an Important Update stuff!!
Sigh. . . .
Yep, it's that time again. IE-10, (the Windows 8 version of IE), has now been released for Windows 7 et.al., and, as usual, we need to patch the registry to prevent it from being automagically installed.
Here's the patch. Copy this to notepad, and save it as Do Not Allow IE-10.reg
Double click the newly created file, dismiss the UAC by selecting "yes", let it do it's nefarious task, and reboot.
Update:
This file should update the registry properly - however it didn't work at first on my Win7 Home Premium and Professional boxes. I installed the key manually, and then exported it. Even though there was no visible difference, the newly exported file would properly install the key. Your Mileage May Vary.
If you want to read more about it, here is the TechNet article that explains it.
Note that they're offering a "toolkit" executable that (supposedly) does this for you, though I'd rather do the registry hack myself if you don't mind!
What I'd really like to see, is for Microsoft to stop releasing IE updates as "Important" updates. . .
What say ye?
Jim (JR)
Hey! Microsoft! Yes, YOU over there!!! What's with this IE-10 as an Important Update stuff!!
Sigh. . . .
Yep, it's that time again. IE-10, (the Windows 8 version of IE), has now been released for Windows 7 et.al., and, as usual, we need to patch the registry to prevent it from being automagically installed.
Here's the patch. Copy this to notepad, and save it as Do Not Allow IE-10.reg
Double click the newly created file, dismiss the UAC by selecting "yes", let it do it's nefarious task, and reboot.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Setup\10.0]
"DoNotAllowIE10"=dword:00000001And that's it.Update:
This file should update the registry properly - however it didn't work at first on my Win7 Home Premium and Professional boxes. I installed the key manually, and then exported it. Even though there was no visible difference, the newly exported file would properly install the key. Your Mileage May Vary.
If you want to read more about it, here is the TechNet article that explains it.
Note that they're offering a "toolkit" executable that (supposedly) does this for you, though I'd rather do the registry hack myself if you don't mind!
What I'd really like to see, is for Microsoft to stop releasing IE updates as "Important" updates. . .
What say ye?
Jim (JR)
Saturday, March 9, 2013
The New "NAS" Rated Hard Drives
What's The Difference?
Western Digital has announced a "new" series of hard drives specifically rated for NAS, (Network Attached Storage), devices called "Red" drives. (See the WD product page here.) Micro Center has begun selling them, and you can see the web-site ad for them here. At $114 for a 2 Tb, 7200 rpm, 64 meg cache, 6 Gb/second drive, the price is also reasonable compared to other "advanced" drives - and should come down.
As these gain traction, you can expect other manufacturers to follow suit with their own "NAS" rated drives.
The addition of a new "color" to the current hard drive rainbow is not surprising. However, the current cacophony of hard drive types, names, colors, and designations can be confusing - so this article hopes to sort some of this confusion into a reasonable order.
Seagate has their Barracuda, Momentus, (etc.), and just plain-vanilla branded hard drives.
Western Digital also has their "vanilla" branded drive, as well as the Green, Black, Blue, "Caviar," "Scorpio," and now their new "Red" drives.
Up until now, the differentiating factor among all these consumer level drives has been power consumption, speed, (including cache size and rpm rating), and retail price-point.
All of these drives, (except for the Red drive), have one thing in common: They are designed for use in personal computer applications; either desktop, laptop, tablet, netbook, or some other consumer computer product.
In contrast, the new Western Digital "Red" drives are designed to compete with higher-priced Enterprise class drives - at least the Enterprise class SATA drives - in array or RAID configurations, at a much lower price-per-unit.
Hard drives come in two basic flavors: Consumer drives, intended for the personal computer application, and Enterprise drives that are intended for heavy-duty array based usage.
So, what's the difference? (Besides the fact that "Enterprise" class drive can be hugely expensive!)
Basically, it's the firmware loaded into the drive. (At least in the SATA based drives. Fiber-channel, and other advanced interface technologies are a Horse of a Different Hue altogether.)
Consumer level drives have firmware that assumes that the drive is in an application with little to zero redundancy.
As a consequence, if the drive has trouble reading a sector/cluster on the platter it vigorously attempts to read - and recover - the data, which can take extended amounts of time. And this is reasonable. With one, (or at most a few), drives in the system, each one being independent of the others, reading the data - come hell or high water - is of paramount importance.
Enterprise level drive firmware takes an entirely different approach.
Enterprise drive firmware assumes that the drive is in an array or other type of RAID arrangement where data integrity is handled externally to each individual drive - via hardware error recovery, parity, or whatever. And as a consequence, the firmware on an Enterprise level drive is designed to be less anal about digging for the data.
In other words, it gives up and returns a "data fail" message sooner, (in some cases much sooner), the emphasis being on data throughput speed. Since there are other drives, or hardware, to handle the, (hopefully!), occasional data error issue, the drive isn't so eager to dig for data.
Additionally - at least in some cases - the drive's reliability and warranty is more highly rated. (Though there is a white-paper released by Google that claims that the MTBF and speed of the Enterprise level SATA drive is often no better than that of their consumer level counterparts. Despite their greatly advanced prices.)
So, what does this mean to you?
If you are using the drive in a NAS device, where there is some kind of data-recovery mechanism involved, the new NAS rated drives might be the best choice.
Though be careful. If you have a multiple-drive NAS device where the drives are arranged in a RAID-1, RAID-0 or Linear arrangement, (where there is simple mirroring, or all the drives are combined together as one huge drive),"red" drives are not for you, as you still need the built-in aggressive error recovery of the normal consumer rated drive.
Likewise, in a single, (or group of independent drives), arrangement - the NAS rated devices are not the best choice. If it's performance you want in an independent drive scenario, it's better to spend your money on the performance rated drives.
The big telling point is this:
How important is the ability to recover data on an individual drive? If there is no external redundancy, then it's absolutely critical. Otherwise the NAS rated drives might be a better choice.
Note: No matter how aggressive the error recovery may be, or how advanced the RAID technology, there is no substitute for regular backups.
What say ye?
Jim (JR)
(Stupid Disclaimer: The names and other descriptive attributes of the drives and manufacturers mentioned above may well be trademarks belonging to their respective manufacturers.)
As these gain traction, you can expect other manufacturers to follow suit with their own "NAS" rated drives.
The addition of a new "color" to the current hard drive rainbow is not surprising. However, the current cacophony of hard drive types, names, colors, and designations can be confusing - so this article hopes to sort some of this confusion into a reasonable order.
Seagate has their Barracuda, Momentus, (etc.), and just plain-vanilla branded hard drives.
Western Digital also has their "vanilla" branded drive, as well as the Green, Black, Blue, "Caviar," "Scorpio," and now their new "Red" drives.
Up until now, the differentiating factor among all these consumer level drives has been power consumption, speed, (including cache size and rpm rating), and retail price-point.
All of these drives, (except for the Red drive), have one thing in common: They are designed for use in personal computer applications; either desktop, laptop, tablet, netbook, or some other consumer computer product.
In contrast, the new Western Digital "Red" drives are designed to compete with higher-priced Enterprise class drives - at least the Enterprise class SATA drives - in array or RAID configurations, at a much lower price-per-unit.
Hard drives come in two basic flavors: Consumer drives, intended for the personal computer application, and Enterprise drives that are intended for heavy-duty array based usage.
So, what's the difference? (Besides the fact that "Enterprise" class drive can be hugely expensive!)
Basically, it's the firmware loaded into the drive. (At least in the SATA based drives. Fiber-channel, and other advanced interface technologies are a Horse of a Different Hue altogether.)
Consumer level drives have firmware that assumes that the drive is in an application with little to zero redundancy.
As a consequence, if the drive has trouble reading a sector/cluster on the platter it vigorously attempts to read - and recover - the data, which can take extended amounts of time. And this is reasonable. With one, (or at most a few), drives in the system, each one being independent of the others, reading the data - come hell or high water - is of paramount importance.
Enterprise level drive firmware takes an entirely different approach.
Enterprise drive firmware assumes that the drive is in an array or other type of RAID arrangement where data integrity is handled externally to each individual drive - via hardware error recovery, parity, or whatever. And as a consequence, the firmware on an Enterprise level drive is designed to be less anal about digging for the data.
In other words, it gives up and returns a "data fail" message sooner, (in some cases much sooner), the emphasis being on data throughput speed. Since there are other drives, or hardware, to handle the, (hopefully!), occasional data error issue, the drive isn't so eager to dig for data.
Additionally - at least in some cases - the drive's reliability and warranty is more highly rated. (Though there is a white-paper released by Google that claims that the MTBF and speed of the Enterprise level SATA drive is often no better than that of their consumer level counterparts. Despite their greatly advanced prices.)
So, what does this mean to you?
If you are using the drive in a NAS device, where there is some kind of data-recovery mechanism involved, the new NAS rated drives might be the best choice.
Though be careful. If you have a multiple-drive NAS device where the drives are arranged in a RAID-1, RAID-0 or Linear arrangement, (where there is simple mirroring, or all the drives are combined together as one huge drive),"red" drives are not for you, as you still need the built-in aggressive error recovery of the normal consumer rated drive.
Likewise, in a single, (or group of independent drives), arrangement - the NAS rated devices are not the best choice. If it's performance you want in an independent drive scenario, it's better to spend your money on the performance rated drives.
The big telling point is this:
How important is the ability to recover data on an individual drive? If there is no external redundancy, then it's absolutely critical. Otherwise the NAS rated drives might be a better choice.
Note: No matter how aggressive the error recovery may be, or how advanced the RAID technology, there is no substitute for regular backups.
What say ye?
Jim (JR)
(Stupid Disclaimer: The names and other descriptive attributes of the drives and manufacturers mentioned above may well be trademarks belonging to their respective manufacturers.)
Sunday, February 24, 2013
OOPS! - When disaster strikes
System Backups (Part 2 of a series)
In my previous article in this series - OOPS! - When disaster strikes (System Restore) - I discussed the importance of the System Restore functionality that has been included in Windows since Windows XP, and how it can save your butt big-time. This particular "safety net" is easy to implement, and easier to use, since it is essentially automatic once enabled.
System Restore, as good as it is, can't save you if the problem is more drastic. For example, a hard drive crash; or when malware, (or a poorly written piece of software), wanders willy-nilly over your hard drive leaving a trail of dead or wounded disk clusters in it's wake. In the case where the physical or logical integrity of your storage media has been damaged or destroyed, System Restore cannot help you.
In the same vein, System Restore cannot help you if you're brain-dead at the wheel and "accidentally" permanently delete your one-and-only draft of your Doctoral Thesis, some other document, file, or whatever that is similarly valuable and irreplaceable.
In this kind of situation, what you need is a backup.
Backups come in a whole host of shapes, sizes, colors and flavors, depending on what you need; ranging from something as simple as copying cherished family photos to a CD, to something as difficult as managing the backup methodology for Wikipedia's online databases and file servers to ensure data consistency.
If a particular file, or files, are important, you should invest time into making periodic copies of the data while it's evolving. In the case of program source files, or important document files that are subject to continuing edits, some kind of version control system could be vitally important as well.
However, in many cases what we want to preserve, and possibly restore, is the entire state of a particular computer system at a given point in time.
There are two basic methods for making these kinds of system backups:
Bare-metal Backups:
The easiest way to backup a system is via a complete system image, otherwise known as a "bare-metal" backup.
A bare-metal backup is one that takes an existing, known working, system and makes a literal, (clone), image of it, byte-for-byte, that can be used to re-create the exact same system on different hardware at some future time if need be. In other words, you can recreate the imaged system on "bare-metal" - that is a system that does not have a working operating system installed yet.
Example:
You have a computer that has Windows 7 on it, and it's working wonderfully. At some point in time, you decide you want to upgrade the system to Windows 8 by doing an in-place upgrade rather than re-installing the entire O/S from scratch. And. . . Though you are confident that the engineers and programmers at Microsoft have done a wonderfully thorough job of making sure the upgrade is painless, you want to be able to restore the original system if your upgrade experience is somewhat less than stellar.
In situations like this, bare-metal backups are the best way to preserve the system as it was prior to the upgrade.
Obviously, a literal byte-for-byte image of a three terabyte hard drive would be huge
Fortunately, modern system imaging software handles this problem using a two-pronged approach.
The disadvantages are more subtle: Unless your filesystem is absolutely pristine - totally consistent [1] [2] with no errors whatsoever - the image created may look more like Frankenstein's Monster, than a usable filesystem. Fortunately, most disk cloning software is particularly paranoid when it comes to file system integrity, and will stubbornly refuse to go any further if it sees anything out of the ordinary.
Theoretically, (and that really should be in quotation marks!), all cloning software should support most, if not all, modern filesystems. Despite the claims of some disk imaging software, I prefer to use the Windows based software for imaging Windows drives and Linux based software for imaging Linux drives.
My two favorites are:
Both Acronis True Image and Clonezilla can be used as "live CD's", meaning that you can boot the system from the CD and take an image of the entire filesystem while it is at rest. (IMHO, the best way to obtain a completely consistent system image.)
The advantage of taking an image while the system is not running is obvious: The filesystem is static so there is no chance of any changes taking place while the backup is being taken. Because the filesystem is static, the image created is an exact copy of the system state at that point in time. This can be useful when disinfecting a drive, or doing data recovery.
The disadvantage of a system like this is the same as its advantage: The filesystem must not be running.
In other words, the system must be stopped, the backup taken, (which can take non-trivial amounts of time depending on the size of the disks and the amount of the disk that is being used), and then the system must be re-started. Obviously, while the backup is being performed, the system is not available for use. Equally obvious is that systems which must be on-line 24/7 cannot tolerate this kind of "cold system" backup and it's associated downtime.
Likewise, most bare-metal backup software will not restore an image to a hard drive smaller than the original, even if most of the space on the drive is unused. Depending on the software being used, this can be mitigated by shrinking the partitions to the smallest size possible prior to making the backup, and then re-expanding them to the size of the hard drive they're installed on after the restore is finished.
Another potential disadvantage is that - in some cases - the image is atomic in and of itself, so that it is not possible to extract parts of the image, (particular files, for example), without restoring the entire image.
Luckily this is not universally true, and some of the better backup software allow the created images to be explored, and portions extracted, as if they were just one big zip file.
Snapshot Backups:
Snapshot backups are a little bit different than a bare-metal backup.
Snapshot backups are frozen-in-time copies of the state of a machine, taken while the machine is running.
There are various ways of taking snapshots[1] [2], however the method used by VMware is illustrative.
Restoring to a particular snapshot point-in-time is essentially the reverse of the above procedure.
Snapshot backups have some interesting advantages:
Snapshot backups have their disadvantages too:
The subject of backups is a complex one, as even a cursory on-line reading of the subject will show. The various backup methods have their individual supporters, and discussions about which backup method is best is akin to the religious wars during the Middle Ages.
Unfortunately, there is really no "one-size-fits-all" solution for backups, as it depends on what your individual requirements are, how much storage you can afford, and how much risk you are willing to take.
Update:
Bennette, in his comment below, pointed out that I had actually left out a good chunk of the "backup" process, and that is actually verifying that the backups are worth a damn. I have seen large and tech-savvy companies get their lunch eaten because they grew complacent about their backups.
An ISP provider that I used to use got trapped this way. They had a really fancy striped RAID-5+1 setup on their servers. . . And with all that redundancy, backups aren't really that important, right?
Good 'Ole Mr. Murphy steps in one night when everyone else is asleep at the wheel and introduces just a teeny, tiny bit of corruption. And, not unlike the Fabergé shampoo commercial, it corrupted two things, and they corrupted two more things, and. . . Well you get the picture. Many weeks, huge gobs of money, and a tremendous hit to their customer good-will later - they finally got everything back up and running.
I have had this happen to me as well. I learned my lesson awhile ago when I had a nice RAID-1 array go south on me - and there I am thinking about how clever I am with my (ahem!) "bulletproof" RAID with it's "built-in backup". Right?
WRONG!!!
I spent more than two weeks, not to mention hundreds of dollars that I really didn't have to spare, picking up the pieces after one side of the RAID got corrupted somehow, and dutifully copied the corruption to its mirror.
I guess the best advice I can give you is to quote part of what he said:
I hope that I have given you enough information so that you can begin to research the subject for yourself, and - ultimately - decide what kind of backup strategy works best for you.
What say ye?
Jim (JR)
System Restore, as good as it is, can't save you if the problem is more drastic. For example, a hard drive crash; or when malware, (or a poorly written piece of software), wanders willy-nilly over your hard drive leaving a trail of dead or wounded disk clusters in it's wake. In the case where the physical or logical integrity of your storage media has been damaged or destroyed, System Restore cannot help you.
In the same vein, System Restore cannot help you if you're brain-dead at the wheel and "accidentally" permanently delete your one-and-only draft of your Doctoral Thesis, some other document, file, or whatever that is similarly valuable and irreplaceable.
In this kind of situation, what you need is a backup.
Backups come in a whole host of shapes, sizes, colors and flavors, depending on what you need; ranging from something as simple as copying cherished family photos to a CD, to something as difficult as managing the backup methodology for Wikipedia's online databases and file servers to ensure data consistency.
If a particular file, or files, are important, you should invest time into making periodic copies of the data while it's evolving. In the case of program source files, or important document files that are subject to continuing edits, some kind of version control system could be vitally important as well.
However, in many cases what we want to preserve, and possibly restore, is the entire state of a particular computer system at a given point in time.
There are two basic methods for making these kinds of system backups:
- "Bare-Metal"backups
- Snapshots
Bare-metal Backups:
The easiest way to backup a system is via a complete system image, otherwise known as a "bare-metal" backup.
A bare-metal backup is one that takes an existing, known working, system and makes a literal, (clone), image of it, byte-for-byte, that can be used to re-create the exact same system on different hardware at some future time if need be. In other words, you can recreate the imaged system on "bare-metal" - that is a system that does not have a working operating system installed yet.
Example:
You have a computer that has Windows 7 on it, and it's working wonderfully. At some point in time, you decide you want to upgrade the system to Windows 8 by doing an in-place upgrade rather than re-installing the entire O/S from scratch. And. . . Though you are confident that the engineers and programmers at Microsoft have done a wonderfully thorough job of making sure the upgrade is painless, you want to be able to restore the original system if your upgrade experience is somewhat less than stellar.
In situations like this, bare-metal backups are the best way to preserve the system as it was prior to the upgrade.
Obviously, a literal byte-for-byte image of a three terabyte hard drive would be huge
Fortunately, modern system imaging software handles this problem using a two-pronged approach.
- It creates a sparse file, copying only the parts of the disk that are actually being used.
- It attempts to compress the data that is there, if safely possible.
The disadvantages are more subtle: Unless your filesystem is absolutely pristine - totally consistent [1] [2] with no errors whatsoever - the image created may look more like Frankenstein's Monster, than a usable filesystem. Fortunately, most disk cloning software is particularly paranoid when it comes to file system integrity, and will stubbornly refuse to go any further if it sees anything out of the ordinary.
Theoretically, (and that really should be in quotation marks!), all cloning software should support most, if not all, modern filesystems. Despite the claims of some disk imaging software, I prefer to use the Windows based software for imaging Windows drives and Linux based software for imaging Linux drives.
My two favorites are:
- Acronis True Image (payware), for Windows based filesystems.
- I have used, and can endorse, the 2012 version of Acronis True Image, though there is a newly released 2013 version that I have not yet tried.
- Clonezilla (GPL freeware) for Linux based filesystems.
- I have also used Clonezilla for backing up my Linux servers, especially prior to in-place upgrades, and it has worked well for me.
- Note that Clonezilla claims to support non-'nix based filesystems, like NTFS or HPFS. However I have not tried it using these filesystems and cannot vouch for it. Your Mileage May, (and probably will), Vary.
Both Acronis True Image and Clonezilla can be used as "live CD's", meaning that you can boot the system from the CD and take an image of the entire filesystem while it is at rest. (IMHO, the best way to obtain a completely consistent system image.)
The advantage of taking an image while the system is not running is obvious: The filesystem is static so there is no chance of any changes taking place while the backup is being taken. Because the filesystem is static, the image created is an exact copy of the system state at that point in time. This can be useful when disinfecting a drive, or doing data recovery.
The disadvantage of a system like this is the same as its advantage: The filesystem must not be running.
In other words, the system must be stopped, the backup taken, (which can take non-trivial amounts of time depending on the size of the disks and the amount of the disk that is being used), and then the system must be re-started. Obviously, while the backup is being performed, the system is not available for use. Equally obvious is that systems which must be on-line 24/7 cannot tolerate this kind of "cold system" backup and it's associated downtime.
Likewise, most bare-metal backup software will not restore an image to a hard drive smaller than the original, even if most of the space on the drive is unused. Depending on the software being used, this can be mitigated by shrinking the partitions to the smallest size possible prior to making the backup, and then re-expanding them to the size of the hard drive they're installed on after the restore is finished.
Another potential disadvantage is that - in some cases - the image is atomic in and of itself, so that it is not possible to extract parts of the image, (particular files, for example), without restoring the entire image.
Luckily this is not universally true, and some of the better backup software allow the created images to be explored, and portions extracted, as if they were just one big zip file.
- Acronis True Image allows its images to be explored and individual parts of an image can be retrieved if the True Image Windows software application is installed.
- Clonezilla does not directly support file extraction from within an image, though there is a workaround described on the Clonezilla site. (Note: It appears to be a butt ugly hack that involves jumping through flaming hoops and (IMHO), I would steer clear of it unless absolutely necessary.)
- Surprisingly enough, some of the expensive high-end backup solutions do not support file extraction from within an image either. (Ref: IBM Tivoli Support Technical Exchange Web Seminar: Differences between image and snapshot backups)
Snapshot Backups:
Snapshot backups are a little bit different than a bare-metal backup.
- Snapshot backups can be taken while the system is running. In other words, they do not need a "cold" or static filesystem prior to taking the snapshot.
- Snapshot backups are not "bare-metal" backups, despite what some people may think.
Snapshot backups are frozen-in-time copies of the state of a machine, taken while the machine is running.
There are various ways of taking snapshots[1] [2], however the method used by VMware is illustrative.
- You begin with a running virtual machine, configured and running the way you like it.
- The very first snapshot pauses the machine briefly while a complete copy of the machine state at that instant in time is created. This becomes the snapshot baseline.
- The filesystem is marked as a "copy on write" filesystem, where any writes to the disk made after the initial snapshot are created, are stored in a special file.
- The second snapshot is virtually instantaneous, as the currently running "copy on write" file is closed, marked as the second snapshot file, and a new copy-on-write file is created starting at that instant in time.
- Subsequent snapshots perform the same action as the second snapshot.
Restoring to a particular snapshot point-in-time is essentially the reverse of the above procedure.
Snapshot backups have some interesting advantages:
- Snapshots can be taken while the machine is running. (i.e. It does not require a "cold" system.)
- Individual snapshots, after the first one, are virtually instantaneous.
- Snapshots can be taken as often as desired, within the storage limits of the machine.
Snapshot backups have their disadvantages too:
- You cannot bare-metal restore from snapshots. However, if you stop to take a bare-metal baseline prior to creating your first snapshot, you have a convenient point of reference if everything goes to Hell in a Hand-Basket.
- Snapshots consist of an ordered sequence of files that contain the differences between each file and the file immediately proceeding it. Because of this, if any one of the snapshot files is destroyed or corrupted, any subsequent snapshot files are useless.
- Depending on the software being used, the effect of a snapshot on open files may not be well defined.
The subject of backups is a complex one, as even a cursory on-line reading of the subject will show. The various backup methods have their individual supporters, and discussions about which backup method is best is akin to the religious wars during the Middle Ages.
Unfortunately, there is really no "one-size-fits-all" solution for backups, as it depends on what your individual requirements are, how much storage you can afford, and how much risk you are willing to take.
Update:
Bennette, in his comment below, pointed out that I had actually left out a good chunk of the "backup" process, and that is actually verifying that the backups are worth a damn. I have seen large and tech-savvy companies get their lunch eaten because they grew complacent about their backups.
An ISP provider that I used to use got trapped this way. They had a really fancy striped RAID-5+1 setup on their servers. . . And with all that redundancy, backups aren't really that important, right?
Good 'Ole Mr. Murphy steps in one night when everyone else is asleep at the wheel and introduces just a teeny, tiny bit of corruption. And, not unlike the Fabergé shampoo commercial, it corrupted two things, and they corrupted two more things, and. . . Well you get the picture. Many weeks, huge gobs of money, and a tremendous hit to their customer good-will later - they finally got everything back up and running.
I have had this happen to me as well. I learned my lesson awhile ago when I had a nice RAID-1 array go south on me - and there I am thinking about how clever I am with my (ahem!) "bulletproof" RAID with it's "built-in backup". Right?
WRONG!!!
I spent more than two weeks, not to mention hundreds of dollars that I really didn't have to spare, picking up the pieces after one side of the RAID got corrupted somehow, and dutifully copied the corruption to its mirror.
I guess the best advice I can give you is to quote part of what he said:
A serious backup policy, especially one for systems that contain mission-critical data, should include regular "fire drills" where the steps for recovering a system are rehearsed.Truer words have never been spoken!
I hope that I have given you enough information so that you can begin to research the subject for yourself, and - ultimately - decide what kind of backup strategy works best for you.
What say ye?
Jim (JR)
Subscribe to:
Posts (Atom)

