Koozali.org: home of the SME Server

howto mount old mirrored disk?

Reggae

howto mount old mirrored disk?
« on: November 17, 2005, 06:05:32 PM »
My server crashed.
During upstart it told me to run fsck manually because of "short read".
So done I couldn't run configuration and there was no network  :-(
I tried to update to 6.5 hoping it would solve my problems but no luck.
Finaly I disabled the raid-mirror and made a fresh install on hde with 6.5 which runs nicely (not a permanent solution)
Question:
How do I mount hdg so I can retrieve my data?

Offline meanpenguin

  • ****
  • 138
  • +0/-0
howto mount old mirrored disk?
« Reply #1 on: November 18, 2005, 07:36:06 PM »
Hi,

login to to the console and type "man mount" for the all the details.

First,
   fdisk -l

   to get a list of what drives are available for mounting

Second,
   mount

   to get a list what drives are currently mounted


third,
   mount the drive to an empty dir
   
   Just an example,
        mount -t ext3 /dev/hdg1 /mnt/cdrom


edward

aaron

howto mount old mirrored disk?
« Reply #2 on: November 20, 2005, 08:00:34 PM »
I just went through this twice twice in the last month. I kept notes but I dont guarentee they are 100% accurate!

In both cases what I did was extract the faulty drive(s), install replacement drive(s), reload SME, then attempt to salvage the data by attaching the (or one of a mirror)device to a spare IDE/SCSI cable connection. This worked 100% both times and, again, I tip my hat at SME and how simple solutions and (now) recovery is with the product.

Anyway, onto the specifics:
1) Attach the faulty device to the operational SME & reboot
2) Drop down to the root prompt (alt-F1/f2/f3) and sign in as root
3) Use fdisk /dev/hdb (IDE) or /dev/sda (SCSI) , substituting the correct identifer name for your situation. A cat of the /etc/fstab should reveal your existing drives (I can recall if the added one shows ) . The new (guest) drive is normally one alpha letter higher than the resident disk names (hda,hdb,hdc for IDE, sda,sdb, etc for SCSI) then use the "p" option to print the partition table. In my last case it looked like this:
Quote
Device Boot    Start       End    Blocks   Id  System
/dev/sda1   *         1         2     16033+  83  Linux
/dev/sda2             3       522   4176900    5  Extended
/dev/sda5             3        35    265041   82  Linux swap
/dev/sda6            36       522   3911796   83  Linux

The "dead" disk is the sda5/sda6 combination , the data clearly (by the size) is the sda6 partition.
4) I created a new folder to act as a mount point with a "mkdir oldsmeserver".
5) I then mapped the above data partition of the old drive to this new mount point with a "mount -t ext2 /dev/sda6 oldsmeserver".
6) The old disk now appears within this newly created folder and I was able to copy/untar etc the content within.

The other option I have used in the past is to hook the SME disk up to a Lindows/Linspire workstation (linux) and pull data off using a visual tool. That trick once worked for an SME software mirror set that was so corrupted neither would boot on the server nor would it even be accepted by the technique above.

Hope this helps!

Librarian

howto mount old mirrored disk?
« Reply #3 on: November 22, 2005, 02:24:46 PM »
Just amazing. Gives new meaning to the term fault tolerant.

A  :pint: to all those guys who've made it possible.

Regards

Librarian