Showing posts with label backup. Show all posts
Showing posts with label backup. Show all posts

Friday, December 7, 2012

Maintaining Power in an Outage Event


The experience of a power loss at the local school and seeing how the battery backup systems work is a good one. The experience is good from the point of view that as an IT administrator and front line worker, you can see how the process functions in real time. It also allows for reflection and adjusting the plan to better serve the users of the technology systems at the school.

The school system has two legs of electrical power coming into the school system. One of those legs of electrical power shutdown at 8:30 am on this Friday morning. Lighting and outlet power were affected to portions of the building. Interestingly enough, the electrical wiring in any given room might have a portion of the circuits functional, while other outlets were dead. I am not exactly sure why the electrical circuits of the school were designed and engineered this way, but it is what it is.

When the electricity in one leg went down this morning, the main elementary computer telecommunications closet lost partial power. The phone system was unaffected along with some amplifier equipment. However, the three racks of computer switching, telecommunications and server equipment were immediately pushed to battery backup. The beeping of battery power was regular as the power continued to flow from their lead acid cells.

Within the first minute, the building's occupants were notified and by minute 5, non essential servers were shutdown including video surveillance and some backup devices. The storage server units were shutdown after users were notified; they were given 2 - 5 minutes of lead time. Our 1:1 students were able to function for about 15 minutes until the main telecommunication switching rack lost its battery inside the UPS.

The center rack containing iBoss, router, firewall and Ruckus wireless controller stayed up for an hour on its new CyberPower UPS. Other UPS units which were now lightly loaded stayed functional 30+ minutes into the event.

The take away at 45 minutes into the power outage event was that in order to preserve the wireless system in the building for a longer period of time, the primary HP ProCurve switch and the Elementary primary PoE HP ProCurve switch need their own UPS that can provide power for their functions as they are far more critical. They connect the high school to the elementary over fiber and also connect the Ruckus controller to the wireless APs. Maintaining that service for a minimum of 1 hour seems like a future goal worth attaining.

Once the power came back online, most of the battery UPS units rebooted themselves. Those UPS units shutdown manually, were restarted manually and the servers rebooted and tested. The process of bringing the main systems back online was probably 3 minutes. Some UPS units in closets at the high school needed to be manually restarted to power PoE and standard switches.

Some older small desktop UPSes showed their age and now are being seriously considered for replacement. We also know now that PoE switches draw power based upon the number of devices drawing power. At the high school, 8 PoE access points draw far less juice than the elementary school PoE which has 14 access points drawing power. Those 24 port PoE switches can draw up to 490 watts which is sure to hammer a usually good UPS in short order.

Our elementary switch structure comprised of 6 switches running at near 850 watts of power on a single SmartUPS 1500 lasted about 20 minutes. As mentioned above, 2 of those 6 switches will get their own CyberPower 2200 UPS. We will also move our X1 (Mac Mini server) that maintains the DNS and DHCP services to that new UPS to keep Internet access up as long as possible for our 1:1 folks and teachers. We believe we can go from 20 minutes of access to about 1 hour of access with a power outage.

Sunday, October 14, 2012

FreeNAS Experiment - Part 1

One of the potential projects that I have wanted to experiment with is building a SAN (storage area network) box. After hearing about some positive experiences from friends like Retr0Rob (Twitter) and Bob Martens with FreeNAS over the past year, I found myself with the means to build a nice looking FrankenSAN box without any cash expenditures. Going forward, I think putting some money into the second project box will be helpful. But for this first experiment, I am in learning mode, so using existing hardware is fine.

The first decision to make for my experimental SAN box is to determine the purpose for which it shall be used in my home environment. Looking at how I currently use technology at home, there were immediately two processes that I knew I could move to a FreeNAS box. The Macbook Air I use was being backed up via a USB hard drive which meant a cable (ball and chain) attachment. The backup solutions I have in place are CrashPlan (off site backup) and Time Machine (local backup). CrashPlan works over the Internet wirelessly. FreeNAS would give me the opportunity to backup wirelessly inside my home. Secondly, I wanted to put CDs / DVDs I owned on a digital storage device that could play back through my PS/3. FreeNAS promised this functionality via its plugin architecture.

The hardware available was an HP xw4600 workstation with 4GB of DDR2 RAM, (2) 1 TB Hitachi SATA hard drives, and internal USB port connector and gigabit Ethernet. The software released this past Friday was FreeNAS 8.3 RC1. I guess timing is everything. I downloaded a FreeNAS guide and read some of the initial setup instructions. With a copy of FreeNAS downloaded, I initiated the terminal commands necessary to prepare a 4GB USB thumb drive with a bootable copy of FreeNAS. I plugged the 4GB stick into the internal USB port inside the HP xw4600, put the side cover back in place and pressed the power button.

Within 60 seconds, a text menu was showing on the monitor that allowed for refinements to the network interface settings (if needed) and the ability to reboot, reset and shutdown the FreeNAS box. Most importantly was the WebUI IP address needed for the administration of the FreeNAS box.



My first priority was to setup account passwords and add myself as a user / group for use later in assigning permissions to the shared dataset (volume) that I would create for storing Time Machine data. One of the cool features of FreeNAS is that you can use ZFS as a filing system. I used the volume management tools to create a ZFS mirrored volume of 931.5 GB out of the two 1 TB Hitachi hard drives.

Let me take some time to explain that when using ZFS to create mirrored RAID sets, there are some issues to be aware of in management. ZFS is a serious file system with safety protocols in place that make you consider how hard drive management should be done. For instance, if you create a ZFS mirror of two hard drives, then mess up your FreeNAS experiment and start from scratch, those hard drives are locked into a mirror that is not immediately usable. You must become comfortable with some command line work to fix or destroy old mirrors.

I became familiar with the gmirror and gpart commands in order to destroy the existing mirror from a previous failed FreeNAS experiment. ZFS is really pretty straightforward to learn, is logical in its command structure, and worth learning its commands to make it perform well. Here is a gmirror wiki page to learn about the command structure.


After created the ZFS mirrored volume, I created a ZFS dataset to be used as a Time Machine backup volume. For my experiment with just my Macbook Air doing backups, I carved out 250 GB of space. I then assigned permissions for this ZFS dataset to my user / group. As my friend Bob Martens pointed out, multiple Macs could use the same login credentials to use the Time Machine backup. Each Mac would identify itself by machine name.

Once the permissions were set and verified on the ZFS dataset for the backup, I next moved over to setup the Apple (APF) Share so that my Macbook Air could see the network store. I look at this process as connecting a volume with the ZFS file system to the Macintosh world which uses the Apple Filing Protocol. For those living in the Windows world, ZFS would need to be connected using the SMB (Simple Message Block) protocol.

Using the Apple Share settings of FreeNAS, I connected the ZFS dataset on the path shown in the image to the left here. /mnt/LundNAS/LundBackup

The Allow List and Read-write Access boxes are the places in which you specify the users / groups that will have Apple Share access to the ZFS dataset. To make things simple, the user / group permissions and these users for Apple Share should be aligned. I did try to use a group called Family with two users - my wife Julie and myself Perry. However, I found that it did not work well initially because of my bad ZFS dataset permissions. More future testing is required for multiple users with different login credentials.

Lastly, FreeNAS requires that the Disk Discovery checkbox should be enabled and the mode should be set to Time Machine in order for clients to backup.

My observations when configuring and using Time Machine on my Macbook Air showed me a few interesting tidbits. The Time Machine volume visible to select as my backup destination. Once selected, my Macbook Air showed it was "Looking for Backup Disk" and after finding it, mounted the Time Machine backup volume on the desktop and did the backup. Once the backup was done, the mounted desktop volume is unmounted. This is important since the Macbook is mobile and a mounted volume would cause problems for mobility.

So far the Time Machine backup server and service is working well.


Wednesday, September 19, 2012

Mobility Account Synching with Teachers

Currently the North Mahaska laptops issues to teachers and staff use Apple's mobility accounts. This has the benefit of keeping a copy of the files from the laptop on the local network server. To keep data synching to a reasonable level of activity, only documents and desktop files are synchronized and the ~/Library, ~/Movies, ~/Pictures, ~/Music are prevented from synching.

Managing Home Synchronization folders and exceptions


A couple typical issues have come up in the past year that prevent good solid synchronized files between the laptops and the server. Again, the primary culprit is human interaction and usage of the laptop in ways that while natural for them, cause issues on the technical level.

Issue 1 - I need to use my laptop now; I can't wait for synchronization of my files. By pausing or canceling the synchronization process, the local files on the laptop will not get pushed to the server. In affect, over time the number and size of the files for synching grows. And when a teacher or technology person needs to ensure a complete synchronization, then it takes a long time. In addition, if the server synch is a primary means of backup, the backup is NO good.

Issue 2 - I decided to save a new iPhoto library in my Documents folder and have been saving iDVD and video projects on my Desktop; its just easier that way! Apple's server technology is designed to exclude paths. When teachers make decisions on where they store large files like photos and movies, this makes synchronization more challenging. Combine Issue 1 with this issue and the synchronization issues really get messy.

Since the use of mobility accounts has generally worked well for the past 4 years, it seems natural to continue their use with Mountain Lion. However, we will continue to educate teachers on backups in hopes they buy the low cost USB external hard drives and use them for Time Machine backups. Now there may be those whom believe we could use our LAN and server hard drive space for Time Machine machines, but that space is limited right now. We are implementing Time Machine backups for network account users like secretaries and the nurse.

Good education and training for the teachers must be followed by teachers practicing what they learned to keep operations moving ahead smoothly. When teachers have solid reasoning for doing things contrary to their training from the school administration, they must communicate those ideas and practices so the technology can be adapted to work. After all, change is constant and we want to adapt to the needs of the classroom teacher in so far as it is possible and timely.

Monday, September 10, 2012

Time Machine Backups to USB Thumb Drives

"You are one crazy dude."

I can hear and see the comments coming a mile and a half away on this shin-dig. Many technology savvy people will be questioning the idea of using a USB thumb drive for a regular backup device. I agree with those technology folks and for my own personal and professional use, I would not use any sized USB thumb drive. So why am I publishing a YouTube how to video on this topic?



The school and the Apple 1:1 support team thought this was a workable solution for the students at a reasonable cost. Perhaps the thinking was that since other schools had tried USB thumb drives with some success, it was a good idea. Perhaps the thumb drives were the school's solution to providing a escape clause if the primary drive in the Macbook Pro died and the student forgot to backup.

The reason the YouTube video was created was to give the students with a screencast to show them how to do a Time Machine backup. It just happens that the Lexar 8 GB thumb drives they received along with their Macbook Pro is an option for a Time Machine backup. At the beginning of the video, I make a subtle hint on the USB drive's fragility and small capacity. I also point out the low cost of 500 GB external hard drives that connect via USB.

To further promote the idea of moving toward the external hard drive idea, here are some reasons why the USB thumb drives are not the best media for a Time Machine (or any regular) backup.


  • Thumb drives do not integrate well into backups because of versions and metadata.
  • Thumb drives do not integrate well with pockets, bags, dogs and small children since they are small and very easy to lose or misplace.
  • Thumb drives are physically flimsy and fragile. One local school in 2010-11 report a 50% + failure of thumb drives given to 7th & 8th graders over that school year - most due to physical damage.
  • Thumb drives are subject to corruption. People tend to unplug a drive without unmounting it.
  • Thumb drives have low read-write speeds relative to spinning disk media. Thumb drives are NOT solid state drives.
  • Thumb drives are not ubiquitous and their data does not naturally integrate with net-based cloud storage.
  • Thumb drives take up an extra USB slot on the Macbook Pro system.
My final thoughts here go towards the idea that Time Machine is a great built in backup utility that works very well - just not with USB thumb drives. Google yourself an appropriate sized external hard drive that works with either USB, Firewire or Thunderbolt and start backing up correctly.