Archive for the ‘Uncategorized’ Category

Errata

Monday, May 10th, 2010

On the Mac Pro (Early 2008): The BIOS emulation that Bootcamp uses with windows when you dual-boot has an interesting error: If you attempt to boot using a device plugged into the unused SATA connectors marked “ODD_SATA”, it fails. Since Apple never shipped a Early 2008 Mac Pro with SATA optical devices, they never bothered to write the BIOS emulation to support them. Oops.

Expanding RAID & Partitions on Mac (part 2)

Sunday, December 6th, 2009

So I’ve been doing some thinking on why the mac has problems with expanded volumes. By expanded volumes, i mean a volume that gets bigger after initial creation. This isn’t an issue for physical disks, since their size is set. But virtual volumes, such as those presented by a RAID card can be “grown” through raid magical goodness.Once they’ve been grown - someone/something needs to update the GPT headers to say “this disk is much larger than before”. Part 1 accomplishes that through destroying the GPT headers, and re-creating them. It works, but man is it nerve-wracking.The other way one could do this, is by directly editing the GPT headers.In the GPT headers there are some fields:

FirstUsableLBA

The first usable logical block that may be used by a partition described by a GUID Partition Entry.

LastUsableLBA

The last usable logical block that may be used by a partition described by a GUID Partition Entry. 

AlternateLBA

LBA address of the alternate GUID Partition Table Header.

HeaderCRC32

CRC32 checksum for the GUID Partition Table Header structure. This value is computed by setting this field to 0, and computing the 32-bit CRC for HeaderSize bytes.

What has to get updated is that LastUsableLBA and AlternateLBA. AlternateLBA should be = the last block on the hard drive.LastUsableLBA should be something like AlternateLBA-32.Once you’ve updated these, you have to calculate a new CRC32 checksum.If you’re a good person, you would go ahead and write the alternate header to the end of the disk - a bad person would just let the OS panic about the lack of backup headers and fix it itself.I’ll be doing some testing of this over the coming weeks, and i’ll let you know what i find.

Never enough storage

Sunday, December 6th, 2009

Why is there never enough storage available? The 13TB array keeps on getting full - so time to build Array2. I should name my arrays - got suggestions?Anyways, I want Array2 to be a little less hacked together than Array1. So, my choices for enclosure include:

  • Norco RPC-4220 $362 shipped from MWave
    • 4U (19″ x 25″ x 7″)
    • 20 Hot Swap SAS/SATA bays
    • Five internal SFF-8087 Mini SAS connectors 
  • Norco RPC-3216 $346 shipped from MWave
    • 3U  (19″ x 25″ x 5.1″)
    • 16 Hot Swap SAS/SATA bays
    • Four internal SFF-8087 Mini SAS connectors  

These are nice enclosures, but you also need a power supply($100ish), power supply controller, and a sas expander ($250). So you’re really looking at $750 ish.Supermicro (who makes the drive bays in Array1), makes some nice enclosures.

  • SC936E1 $1029  or $64/bay
    • 16 hot swap bays in 3U
  • SC933E1  $942
    • 15 hot swap bays in 3U
  • SC836E1 $1010
    • 16 hot swap bays in 3U
  • SC846E1 $1180 or $49/bay
    • 24 hot swap bays in 4U

Yes, the supermicro cases are spendy. But - they include the power supply and sas expander. And they’re great quality.My only bitch is with the depth of the cases. I don’t need space to put a motherboard in the case, so something 25″ deep is just…. overkill.PS: With any case that doesn’t have a motherboard in it, you can use the Supermicro CSE-PTJBOD-CB1 to control the power supply. It’s $25 well spent.

Expanding RAID & Partitions on Mac

Wednesday, April 22nd, 2009

IMPORTANT NOTE:The following procedures are ONLY for people with RAID cards who have upsized their raid array. If you have a MacBook or MacBook Pro, this is not for you! If you want to move from a smaller single drive to a larger single drive, try CarbonCopyCloner or SuperDuper .Once my raid array had finished upsizing from 5.5GB to 9.1GB, I had to resize the partition in order to actually use the space. OS X’s Disk Utility gives the oh so friendly error   Partition Failed (Partition failed with the error: MediaKit reports partition (map) too small. )  Not particularly helpful, is it. All my googling has never found an answer, so I thought I’d post my solution here.

  1. First thing - if you have the ability to, backup your data. Or at least back up your most critical data.
  2. If you have DiskWarrior, run it. You definitely want to take care of any potential problems before you go mucking around with your drive. If you don’t have DiskWarrior, at least run fsck or Disk Utility repair. DiskWarrior is only $99.95 and I know it’s saved my data a few times. (Side note: I personally do not trust DiskWarrior’s overlapping file repair mechanism. I have no way of proving it, but I believe that DiskWarrior fubar’d my overflow extents (the mechanism hfs uses to keep track of file fragments for files with over 8 fragments). As long as you keep 10%ish free on your volume, overlapping files should not ever be an issue. Don’t let this stop you from running DiskWarrior. I know of no other tool that works as well, and they’ll do whatever they can to help you out if DiskWarrior is stumped by problems with your disk).
  3.  Open up a terminal
  4. run ‘df’
  5. Note the mount point for the drive you’re trying to expand. Mine was “/dev/disk4s1″. We’re only interested in the disk, not the slice, so I’m going to use “/dev/disk4″.
  6. In Disk Utility, unmount the current partition on the disk.
  7. run “sudo gpt show /dev/disk4″. If this fails, you probably didn’t unmount the partition first.gpt show /dev/disk4
  8. The line with the largest size is the partition we care about.
  9. In Disk Utility, unmount the partition again.
  10. run “sudo gpt destroy /dev/disk4″
  11. run “sudo gpt create -f /dev/disk4″
  12. run “sudo gpt add -b 409640 -s 11719262168 /dev/disk4″. Notice those numbers came from the start and length of the partition we want to save.gpt destroy/create/add
  13. Reboot.
  14. Make sure you have rebooted! If you don’t reboot, I can almost guarantee that bad bad things will happen.
  15. Now use Disk Utility to resize the partition.. Reboot now.

Basically what’s going on here is that the GPT table is built only big enough for the drive it’s on. That’s a logical assumption - hard drives don’t magically get larger - unless they’re RAID arrays. We’re just removing the GPT partition information, and replacing it. Should things go crazy, as long as you’ve got the start and size information for the partition you care about, you should be good.  No guarantees obviously, but I’ve done this three times and no data loss yet.

SAS Cables

Saturday, March 21st, 2009

Searching for cheap sas cables….

1M SFF-8088 to SFF-8088 cable

.5M SFF-8087(host) to 4 SATA(device)

SFF-8087 to SFF-8088 Adapter

All pricing is as of 3/21/2009

Update! PC-Pitstop will match the $15 SAS breakout cable price if you ask.

Goodbye stump, hello concrete!

Friday, March 20th, 2009

There once was a bad tree.It had to go. So I played arborist with a chainsaw, and there was nothing but a stump left.Bad Tree anyways - that stump was there for ages. It had chain link fence in it, so i couldn’t just use the chainsaw on it. im000609_2.jpg (seen here in a pic from 2007)Fast forward a couple years. I got the great idea to move the back fence in a bit, and carve out a place for the trash cans to sit where they would be on my property, but accessible to the trash men. How do you remove a stump? Kerosene. Charcoal briquettes, and scrap wood to burn as a fuel source.  img_0207.jpgimg_0208.jpgimg_0218.jpgimg_0220.jpgAfter a couple weeks of lighting everything on fire every night - the stump was gone. So I poured the concrete, laid the brick pavers on top - and voila! img_0221.jpgThe classiest trash can pad in the neighborhood.