TechRadar: All latest feeds How to maintain your Mac's storage
Managing Mac storage
Storage just stores, but to keep retrieval reliable it needs to be cared for. Over the long term, files progressively get messier and require periodic tidying. While managing what's stored is an important first step in maintaining storage, that isn't our focus here.
Instead, we'll concentrate on managing how your files are stored and maintaining the storage medium itself, whether it's a hard disk, solid-state drive (SSD), or a combination.
You can, of course, keep most of your files and their backups in remote cloud storage, but the cost of leaving others to do your maintenance is high, and you're reliant on its availability.
Our overriding concerns are performance and reliability. Left untended, hard disks can become progressively slower to access, and impact on a Mac's performance in use. This is becoming increasingly controversial: at one time many users believed that if they did not defragment (defrag) the files on their drives every month or so, everything would grind to a halt.
Improvements in disk systems and the changing demands of OS X now make this a questionable practice, provided that sufficient free space is kept to allow the ready creation and use of cache and other temporary files.
OS X also performs its own background defragmentation when possible, and old ways of forcing it to happen have become more difficult. If you try to clone your startup disk to an external drive and back again – formerly an effective way to consolidate free space – the result may not start up at all.
Only if your startup volume is a hard disk, and you're certain its performance has fallen due to fragmentation on it, should you consider trying to defragment it yourself.
Deal with different mediums
Ultimately, all storage systems develop sporadic errors and may fail catastrophically. Planning for those events is the basis for keeping backups, and determines the storage medium used for them. If you could happily see all your stored documents and files blown away at an instant, you do not need a backup, but most of us need good and extensive fallbacks, for which Time Machine running to an external drive is usually ideal.
As far as maintenance is concerned, there are now four main types of local storage: hard disks; SSDs; Fusion Drives, which incorporate both a hard disk and an SSD working together in a Core Storage Logical Volume Group; and network-attached storage (NAS).
A hard disk spins platters coated with magnetic materials inside a sealed enclosure, and is consequently liable to mechanical and electrical failure, and to data corruption. It undergoes maximum stress when being spun up from rest, so tends to last longer when left spinning constantly. It is also sensitive to high temperatures, and a disk running hot is more likely to fail.
Though more usually used as single units, multiple hard disks can also be installed in larger enclosures to be used individually (JBOD) or in concert as a RAID array. RAID used to be a specialist pursuit, but is increasingly common. It is not an instant solution, as there are different levels with performance and robustness trade-offs.
Many people find RAID 5 across four hard disks is an ideal compromise, as it allows one of the disks to fail without any loss of data. Simple mirroring, RAID 1, provides redundancy but may impair performance, especially when implemented in software.
Hardware RAID implementations are more robust and faster than software RAID, but also more costly. Hard disks usually fail once their warranty period has expired, commonly after four or more years. Those from the same batch tend to fail around the same time, so it's worth sourcing from different batches when building an array, or two could fail in a short period.
Hard disks older than about five years can last longer, but are worth replacing before failure. SMART monitoring (Self-Monitoring, Analysis, and Reporting Technology) aims to detect early warning signs of failure, and you should always take steps to replace a hard disk with a worrying status before complete failure occurs.
However, OS X only supports status monitoring for internal and Thunderbolt drives; USB or FireWire drives can only be monitored by installing third-party extensions.
Disk Utility provides only basic monitoring, and more thorough checking requires a third-party tool such as DriveDx.
Good status is no guarantee a disk won't fail in the next instant, just a statement that the chances are very low.
Modern storage types
SSDs have no moving parts, but their memory chips can be written to a set number of times before they start to fail. In practice, that limit is beyond the life of most people's Macs. However, it's wise to avoid actions that write more to an SSD than is strictly needed, and defragmenting one is pointless and wasteful.
Ensure the TRIM feature is active; it allows the blocks used by deleted data to be reset to a fresh state, and improves performance. It's enabled for Apple's flash storage by default; for other SSDs, the maker should disclose whether it's handled in hardware; if not, the command
sudo trimforce enable
in OS X 10.10.4 or higher enables OS X's software implementation for third-party flash storage. Fusion Drives, fitted by Apple in iMacs and Mac minis, need care for the hard disk component, but OS X should keep them working efficiently. Many third-party apps do not yet work fully with them, so disaster recovery can be tricky.
Networked storage normally uses one or more hard disks but must be managed through its own software, which often has very limited maintenance facilities. Apple's Time Capsules are managed using AirPort Utility, which lacks manual check and repair commands. So, you can do little to care for them, and failure is usually fatal.
End of life
Storage has a life cycle which must be planned for from the outset. Careful choice rather than impulse buying will meet your needs better. Now that OS X supports huge volume sizes, there are few benefits to partitioning large drives into several smaller volumes, although Time Machine backups are best given their own volume to guarantee their size and life.
When drives fail or are replaced, ensure no one else can recover data from them: use Disk Utility to erase and overwrite them mulitply if you can spare the time. It's generally thought that the more cycles you can manage, the less likely it is anyone will be able to recover data.
Finally, use a sledgehammer to render a drive physically unusable before disposing of it.
How to spring-clean your Mac's storage
1. Do the housekeeping
Before tackling anything else, use a tool like DaisyDisk, in conjunction with using Finder to browse the folders where you normally store work, to clear out temporary files and folders, duplicates, and any other large files that you no longer need.
2. Check SMART status
Inspect the SMART status and other drive health indicators of each of your drives using a specialist tool such as DriveDx. This app also supports monitoring the status of USB and FireWire drives – which Disk Utility doesn't – if you install the extension provided for that.
3. Run a surface scan
If you notice a hard drive is accumulating errors or bad blocks, consider performing a physical check of the medium, including a surface scan. You'll need a third-party utility such as Drive Genius to do this, and scans take hours.
4. Make any necessary repairs
Run Disk Utility's First Aid command on each drive to check and repair it. This is usually better with the drive unmounted first, so you're best checking your startup disk by restarting your Mac in its Recovery system (hold Command+R at the startup sound), if it needs repair.
5. Test backup retrieval
There's no point making backups if they don't work, leaving you unable to access files in them. Open Time Machine, or your preferred backup utility, and verify that you can browse your backups and recover a couple of files from them. Some tools can verify their backups.
6. Archive important files
Finally, archive important documents onto removable storage media. For optical discs, you can use Finder's Burn command or the likes of Toast Burn (from the Mac App Store) or Burn. Keep one set of all essential work off-site in case disaster strikes.
- Enjoyed this article? Get more tutorials, guides, and tips on how to get the most from your Apple devices inside MacFormat. Take advantage of an exclusive offer in our sampler today.
http://www.techradar.com/us/how-to/computing/how-to-maintain-your-mac-s-storage-1322125?src=rss&attr=all
Sent with Reeder
Brief message sent from a mobile device
No comments:
Post a Comment