Koozali.org: home of the SME Server

Hardware Failure

Offline nicholasaa

  • *
  • 14
  • +0/-0
Hardware Failure
« on: November 29, 2007, 09:23:05 PM »
I have a major hardware failure. So i took the Drive out of the computer it was in and put it into a External USB enclosere. I want to read the files from it. Itried mounting it as ext3 but that just shows me some image files and i know there is a lot more on it. What FS type do i need to mount it as to see the files on it? OR is there something more that i need to do ?

Offline Boris

  • *
  • 783
  • +0/-0
Re: Hardware Failure
« Reply #1 on: November 29, 2007, 09:33:17 PM »
There are three partitions on the drive by default. One is (100MB) is boot partition that you found, with kernel images and grub menu. It mounts normally to /boot folder. You don't need it for data rescue.
The main partition there data is the biggest and third partition for swap memory.
Try to mount the second partition to the temporary folder and copy data from it.
...

Offline nicholasaa

  • *
  • 14
  • +0/-0
Re: Hardware Failure
« Reply #2 on: November 29, 2007, 09:48:15 PM »
I have tried mounting it and it says wrong FS type and i i leave fs type blan it says i need one. I used INSERT Linux to find out it's fs type was LVM2. Is that the FS type that i should mount as? When i try Ext3 is says Wong FS type.

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Hardware Failure
« Reply #3 on: November 29, 2007, 10:42:01 PM »
Have a look at this:

http://wiki.contribs.org/Recovering_SME_Server_with_lvm_drives

If you installed without using the boot parameter "nolvm" then your drives will be lvm and not ext3.
« Last Edit: December 01, 2007, 12:08:17 PM by byte »
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline Confucius

  • *****
  • 235
  • +0/-0
Re: Hardware Failure
« Reply #4 on: November 30, 2007, 12:27:42 AM »
If you installed with using the boot parameter "nolvm" then your drives will be lvm and not ext3.

I guess the correct word would have been "without". Got me confused for a moment.

Offline nicholasaa

  • *
  • 14
  • +0/-0
Re: Hardware Failure
« Reply #5 on: November 30, 2007, 12:54:50 AM »
I went through the link you sent and i was good stuff but it assumed that you were starting an raid aray with no existing one. I need to get to it while keeping my curernt one going. THe part where it starts to differ is when the have you run pvs that shows you the physical volumes. It should show the one i am trying to start and the existing one. but it only show the existing one. and when i try to acitvate all volumes it says this.

~]# vgchange main -a n
  Can't deactivate volume group "main" with 2 open logical volume(s)
 
So how do i get it to activate both volumes ?

So i need to include active volumes in the mdadm -AR part or just the ones i want to add.

Offline nicholasaa

  • *
  • 14
  • +0/-0
Re: Hardware Failure
« Reply #6 on: November 30, 2007, 02:08:22 AM »
So it appers that it is not detecting the Physical volumes after i build them with "mdadm -AR /dev/md8 /dev/sda2" is there a way to foce discovery of the md device ?

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Hardware Failure
« Reply #7 on: November 30, 2007, 04:41:19 PM »
I guess the correct word would have been "without". Got me confused for a moment.

Yes you guess right  :lol: - Thanks.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Hardware Failure
« Reply #8 on: November 30, 2007, 04:42:35 PM »
So it appers that it is not detecting the Physical volumes after i build them with "mdadm -AR /dev/md8 /dev/sda2" is there a way to foce discovery of the md device ?

Can you maybe copy and paste exactly what you are seeing as I'm not sure where you got up to and what state you are now in ?! and your doing this in an external device ?
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline nicholasaa

  • *
  • 14
  • +0/-0
Re: Hardware Failure
« Reply #9 on: November 30, 2007, 06:21:25 PM »
Yes i took the old hard drive a put it into a USB Enclosure. SO from the begining this is what is happening.

[root@altrogcoturret ~]# mdadm -E /dev/sda1
/dev/sda1:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : facfe2d3:65d22c65:c50eb6df:7e08ddc5
  Creation Time : Wed Sep 12 20:14:52 2007
     Raid Level : raid1
    Device Size : 104320 (101.88 MiB 106.82 MB)
   Raid Devices : 2
  Total Devices : 1
Preferred Minor : 1

    Update Time : Mon Nov 26 08:15:23 2007
          State : clean
 Active Devices : 1
Working Devices : 1
 Failed Devices : 1
  Spare Devices : 0
       Checksum : db1a48b4 - correct
         Events : 0.696


      Number   Major   Minor   RaidDevice State
this     0       3        1        0      active sync   /dev/hda1
   0     0       3        1        0      active sync   /dev/hda1
   1     1       0        0        1      faulty removed
[root@altrogcoturret ~]# cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 hda1[0]
      104320 blocks [2/1] [U_]

md2 : active raid1 hda2[0]
      38957504 blocks [2/1] [U_]

unused devices: <none>
[root@altrogcoturret ~]# mdadm -AR /dev/md8 /dev/sda2
mdadm: /dev/md8 has been started with 1 drive (out of 2).
[root@altrogcoturret ~]# cat /proc/mdstat
Personalities : [raid1]
md8 : active raid1 sda2[0]
      78067776 blocks [2/1] [U_]

md1 : active raid1 hda1[0]
      104320 blocks [2/1] [U_]

md2 : active raid1 hda2[0]
      38957504 blocks [2/1] [U_]

unused devices: <none>
[root@altrogcoturret ~]# pvs
  PV         VG   Fmt  Attr PSize  PFree
  /dev/md2   main lvm2 a-   37.12G 32.00M
[root@altrogcoturret ~]# vgchange main -a n
  Can't deactivate volume group "main" with 2 open logical volume(s)
[root@altrogcoturret ~]#


That is everything and where we end.

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Hardware Failure
« Reply #10 on: November 30, 2007, 07:31:44 PM »
[root@altrogcoturret ~]# vgchange main -a n
  Can't deactivate volume group "main" with 2 open logical volume(s)
[root@altrogcoturret ~]#

What do you see if you skip that part and use:

vgchange main -a y

then follow the rest of the document ?
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline nicholasaa

  • *
  • 14
  • +0/-0
Re: Hardware Failure
« Reply #11 on: November 30, 2007, 09:27:02 PM »
when i contimue with the process by mounting with

user@user-desktop:~$ mount /dev/main/root /mnt/oldsmeserver/
user@user-desktop:~$

It just mounts the existing file system not the one on the external drive. I checked for the files i needed and they were not there. So it still didn't work.  :? any other idea's


Offline byte

  • *
  • 2,183
  • +2/-0
Re: Hardware Failure
« Reply #12 on: November 30, 2007, 09:54:44 PM »
What do you see if you do:

fdisk -l /dev/sda

?

Are the /dev/hda1/2 your current system raid your trying to load the recovery on from the external device ?
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline nicholasaa

  • *
  • 14
  • +0/-0
Re: Hardware Failure
« Reply #13 on: November 30, 2007, 11:35:45 PM »
When i type what you ask this is what i get

[root@altrogcoturret ~]# fdisk -l /dev/sda

Disk /dev/sda: 60.6 GB, 60653093888 bytes
64 heads, 32 sectors/track, 57843 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Disk /dev/sda doesn't contain a valid partition table
[root@altrogcoturret ~]#


yes hda1/2 are the current Raid array i am tring to load another raid aray from a External USB brive.So that i can recover files from the Old Array that is on the USB Drive

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Hardware Failure
« Reply #14 on: December 01, 2007, 12:07:09 PM »
[root@altrogcoturret ~]# mdadm -E /dev/sda1
/dev/sda1:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : facfe2d3:65d22c65:c50eb6df:7e08ddc5
  Creation Time : Wed Sep 12 20:14:52 2007
     Raid Level : raid1
    Device Size : 104320 (101.88 MiB 106.82 MB)
[..]

What do you see with  /dev/sda2 in that command. What OS you got the external drive on ?
« Last Edit: December 01, 2007, 12:10:00 PM by byte »
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!