Go Back   Pro/Forums > ProCooling Technical Discussions > Snap Server / NAS / Storage Technical Goodies
Password
Register FAQ Members List Calendar Chat

Snap Server / NAS / Storage Technical Goodies The Home for Snap Server Hacking, Storage and NAS info. And NAS / Snap Classifides

Reply
Thread Tools
Unread 10-20-2006, 12:54 PM   #1
kugeln
Cooling Neophyte
 
Join Date: Feb 2006
Location: Houston, TX
Posts: 12
Howto: Upgrade/Recover a 4500 with Ghost

NOTE: I have since found out that this procedure does not seem to work on GOS > 4.0, so making a backup ghost image that works will require downgrading to 3.2.019 (where I started) or 3.2.026 (where I ended up trying to fix an issue I was having with ghosting). After the recovery is complete, you can still upgrade to whatever you want. The GRUB boot loader in the 4.x series doesn't seem to like being ghosted. YMMV.


This is the result of a few days of testing. It should probably work on other GuardianOS units as well.

You need:
  • One working drive from a GuardianOS unit
    *OR*
  • A ghost image of the boot partition. (~5 MB)
  • A GuardianOS Image (.gsu) to load onto the new drive
  • and of course, four new drives (BLANK!!! If they've been used, I suggest you zero them out with a utility of your choice).

To make the image:
Using a recent version of ghost (I used 8.x) you need to make an image of the boot partition off the original drive. This partition is mirrored across all four drives on the 4500 (and probably other GOS units too) and I believe you can use any of the drives to make the image from.
  1. In ghost select Local, Partition, then To Image.
  2. Select the disk from the Snap Server. Click OK.
  3. Select the first (~15 MB) partition on the Partition selection screen. Click OK.
  4. Choose where to save the image and what you want to call it. Click OK.
  5. Choose Fast Compression, and yes, you want to proceed with image creation.
  6. In about 5-10 seconds, you have your boot image.

To set up the first new drive:
  1. In Ghost, again, Choose Local, Disk, From Image.
  2. Choose the image you just made. Click OK.
  3. Choose the target disk. *be careful and make sure you pick the right one* Click OK.
  4. Make sure the new size of the first partition is equal to the old size. Ghost tries to resize the partition to use the rest of your new disk. Change it to match what is shown for "Old Size" (15 in my case). The rest of the space should be indicated as "Free Space". Click OK.
  5. At the "Are you sure". Click Yes. In a few seconds you have a new drive, ready to install in your Snap Server.

Getting ready:
  1. Install the drive you just ghosted as drive one. Install the remaining drives in the other slots.
  2. Power on your Snap.
  3. After the boot up process completes it should be in recovery mode.
  4. Connect to the snap with your web browser. There's no way of knowing what it'll come up as, so you either have to know how to identify your DHCP clients on your router, or maybe try SSM or Assist (don't know haven't tried either).
  5. Now, pick your OS Image you want to load, select the Fresh (full) Install option, and then start your recovery.

After that completes, you should have a fully working GuardianOS Snap Server.

Notes:
I only have a 4500 to test this on. I have *not* tried it with all four drive positions populated--only one. I would recommend *not* using it on your original drives unless they're already blank anyway. I'd suggest trying it on four small (100) gb drives first to make sure it works for you. I assume if all four drives are in place, it will begin building the default RAID5 array immediately after it finishes the recovery and reboots. You may be unable to access it during the rebuild process. Using only one drive seems to keep this from occurring.

I welcome questions and constructive comments. If I got something horribly wrong let me know. If it works for you, let me know.

YMMV, and I'm not responsible if you hose your computer or your Snap. If you do not know how to use Ghost safely, DON'T.

-Levi

Last edited by kugeln; 11-14-2006 at 12:37 PM.
kugeln is offline   Reply With Quote
Unread 10-20-2006, 01:19 PM   #2
blue68f100
Thermophile
 
blue68f100's Avatar
 
Join Date: Jul 2005
Location: Plano, TX
Posts: 3,135
Default Re: Howto: Upgrade/Recover a 4500 with Ghost

Good info.

I was going to use dd for the cloning, mainly because it's free. Not everyone has a copy of ghost.

Good to know that I only need the 1st partition.

But if you have a working drive, it is easy to transfer the OS.

1. Power down and remove all drives but #1
2. Boot the unit with a single drive.
3. Once fully up and disk activty stops, Hot mount drive #2
4. Once the disk activity is finished, you have a working drive #2
5. Power down and remove the Original Drive #1.
6. Move drive #2 into Drive #1 position.
7. Boot the server with the new drive.
8. Once fully up, Hot mount drives 2-4
9. Now you are ready to do the inital setup.
__________________
1 Snap 4500 - 1.0T (4 x 250gig WD2500SB RE), Raid5,
1 Snap 4500 - 1.6T (4 x 400gig Seagates), Raid5,
1 Snap 4200 - 4.0T (4 x 2gig Seagates), Raid5, Using SATA converts from Andy

Link to SnapOS FAQ's http://forums.procooling.com/vbb/showthread.php?t=13820
blue68f100 is offline   Reply With Quote
Unread 10-20-2006, 02:15 PM   #3
kugeln
Cooling Neophyte
 
Join Date: Feb 2006
Location: Houston, TX
Posts: 12
Default Re: Howto: Upgrade/Recover a 4500 with Ghost

Quote:
Originally Posted by blue68f100
Good info.

I was going to use dd for the cloning, mainly because it's free. Not everyone has a copy of ghost.

Good to know that I only need the 1st partition.

But if you have a working drive, it is easy to transfer the OS...

I was shooting for more the "I bought a 4500 from xxxx but without drives" type of problem than someone actually having at least one working disk. The added bonus is that after you do this once, you have a backup that you can use to reload from scratch in case for some freaky reason all four drives fail at once.

I tried it the easy way too--and it did work as long as the new drive you were actually putting in was blank (found that if the drive, in this case a 160 GB out of one of my 4100's, did wierd things when I stuck it in for the process). I didn't go far enough with it to see if it automatically takes advantage of larger drives or not.

You also get a truly *factory default* setup that you don't necessarily get with the easy way. I'm wondering if you can swap drives one at a time and retain all your data (if you had it loaded up). Granted it might take 2 or 3 days to get all four drives swapped...

Another option besides Ghost you might could try is G4U though I haven't actually tried it yet.


Any option besides paying Adaptec $600 for a new drive with the OS loaded is a good thing™.
kugeln is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:36 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
(C) 2005 ProCooling.com
If we in some way offend you, insult you or your people, screw your mom, beat up your dad, or poop on your porch... we're sorry... we were probably really drunk...
Oh and dont steal our content bitches! Don't give us a reason to pee in your open car window this summer...