General NAS-Central Forums

Welcome to the NAS community
It is currently Thu Nov 23, 2017 6:29 pm

All times are UTC




Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Rebuilding EBD
PostPosted: Sat Dec 26, 2009 9:11 pm 
Offline

Joined: Sat Dec 26, 2009 8:56 pm
Posts: 5
Hi,

I have 1Tb EBD, which is not under warranty anymore and which died on me. During the boot I hear that clucking sound which you usually get when HDDs cannot read a sector. After pulling hard drives out, sticking them into external cases and plugging to an Ubuntu box I was able to reconstruct the array and retrieve the data. When I've got the data I was free to do whatever I want with the drives and I decided to scan those for bad sectors, which I found plenty. No wonder it was unable to boot. I don't want to lose my data so will buy new HDDs and rebuild the device. Luckily there are plenty if instructions on these forums on how to do that.

The question I have though is whether the instructions for EBD rebuild will work the same for 2x 1Tb? 2x 1.5Tb? 2x 2Tb? Will the images for those three partition still work? The price difference between say 500Gb and 1Tb drives is not significant these days, so it'd be nicer to have a larger array.

Another question is about RAID type. By default, Lacie configures two drives in linear RAID. Is it possible to configure it as RAID 1? Have anybody done that and are there any instructions on how to do that?

Andre

PS: Merry Christmas and Happy New Year!


Top
 Profile  
 
 Post subject: Re: Rebuilding EBD
PostPosted: Thu Feb 04, 2010 12:19 pm 
Offline

Joined: Sat Dec 26, 2009 8:56 pm
Posts: 5
Ok, it is possible to build EBD in raid1 mode. I also built it with 2x 250Gb drives, so I would assume it's possible to do with 2x 1Tb or 2x 1.5Tb.

To build raid1, create a partition on second disk identical to /dev/sda2. on /dev/sda8 modify (or create if you are building from the images on this website) /etc/mdadm.conf file to have the following:

Quote:
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST <system>

# instruct the monitoring daemon where to send mail alerts
MAILADDR root

# definitions of existing MD arrays
DEVICE /dev/sda2 /dev/sda2
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=163218f3:299b9ccc:3c666c38:60539313

# This file was auto-generated on Mon, 21 Dec 2009 20:19:21 +1100
# by mkconf $Id$



Also, run this command to build the array. You will need to replace sdd2 and sde2 with whatever the drive appear as on your Linux system.
Quote:
mdadm --create /dev/md0 -v --raid-devices=2 --level=linear /dev/sdd2 /dev/sde2


Top
 Profile  
 
 Post subject: Re: Rebuilding EBD
PostPosted: Tue Mar 02, 2010 1:00 pm 
Offline

Joined: Sat Dec 26, 2009 8:56 pm
Posts: 5
These are the steps I've used to rebuild my EBD in RAID1 configuration with two 1.5Tb HDDs. You'll need to connect two drives to a linux system (VMWare one works great!).

1. Run
Code:
fdisk /dev/sdd

(or whatever the second drive comes up as). Create primary /dev/sdd2 with same parameters as /dev/sde2
2. Run
Code:
fdisk /dev/sde

(or whatever the first drive comes up as). Create the following table:
Code:
   Device Boot    Start       End    Blocks   Id  System
/dev/sde1               1         125     1004031    5  Extended
/dev/sde2             126       38913   311564610   83  Linux
/dev/sde5               1          16      128457   82  Linux swap
/dev/sde6              17          17        8001   83  Linux
/dev/sde7              18          18        8001   83  Linux
/dev/sde8              19          34      128488+  83  Linux
/dev/sde9              35         125      730926   83  Linux

4. Run
Code:
mdadm --create /dev/md0 -v --raid-devices=2 --level=raid1 /dev/sdd2 /dev/sde2

to create raid1 array. Make sure new partitions are not mounted, otherwise will be reported as "resource busy"
5. Copy images to partitions:
Code:
dd if=/home/andre/Lacie/sda6 of=/dev/sde6
dd if=/home/andre/Lacie/sda7 of=/dev/sde7
dd if=/home/andre/Lacie/sda8 of=/dev/sde8

6. Format partitions:
Code:
mke2fs -j /dev/sde9
mke2fs -j /dev/md0

7. Copy default /etc/mdadm.info from any Linux system into 133Mb partition's /etc
And modify/add the lines:
Code:
DEVICE /dev/sdb2 /dev/sda2
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=163218f3:299b9ccc:3c666c38:60539313

The final file should look like:
Code:
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST <system>

# instruct the monitoring daemon where to send mail alerts
MAILADDR root

# definitions of existing MD arrays
DEVICE /dev/sdb2 /dev/sda2
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=163218f3:299b9ccc:3c666c38:60539313

# This file was auto-generated on Mon, 21 Dec 2009 20:19:21 +1100
# by mkconf $Id$

8. Mount hard drives in Lacie case, start it and connect via browser.
9. Optional: Apply the latest software updates (as of today, 1.0.10 and than 1.1.2.1) and hardware updates


Top
 Profile  
 
 Post subject: Re: Rebuilding EBD
PostPosted: Sun Mar 06, 2011 10:11 pm 
Offline

Joined: Sun Mar 06, 2011 9:45 pm
Posts: 16
I've tried this but only get either half of the hard disk space reported i.e just sda2 or if I create a linear partition across sda2 and sdb then within disks in web admin nothing is reported. In this later case I get a corrupt share and although I can seem to connect to the share and copy data to it the disk isn't happy.

The problem seems to be that there are clear differences between the big and mini disks mainly from what I can see due to the fact that mdadm doesn't figure in the firmware for the mini disk. The program is there but nothing seems to start it, which I think may be part of the problem.

Does anybody out there have an dd images from an actual ethernet big disk?


Top
 Profile  
 
 Post subject: Re: Rebuilding EBD
PostPosted: Mon Mar 07, 2011 3:44 pm 
Offline

Joined: Sun Mar 06, 2011 9:45 pm
Posts: 16
I think I may have found a person who is willing to dd me a copy of sda6, sda7 and sda8.

Could somebody please confirm that they are the only partitions I'll need? Also how do I upload them here assuming I get them?


Top
 Profile  
 
 Post subject: Re: Rebuilding EBD
PostPosted: Thu Mar 10, 2011 12:43 pm 
Offline

Joined: Sun Mar 06, 2011 9:45 pm
Posts: 16
Right, sorry for the delay but I had to guide somebody over messenger on how to do dump the partitions, have not had the chance yet to try them out but will tonight and report back.

The dumps were taken from a Lacie Ethernet BigDisk 1Tb which has 2 500gb drives set up in linear mode, as far as I know.

You can get the zip from here www.fileserve.com/file/xJ4URBP

Zip contains text file showing fdisk -l of the boot HDD and sda6, sda7 and sda8 partition dumps.

As I said I've not had the chance to try them out so can't report them as working but will hopefully post an update later on tonight.


Top
 Profile  
 
 Post subject: Re: Rebuilding EBD
PostPosted: Thu Mar 10, 2011 8:08 pm 
Offline

Joined: Sun Mar 06, 2011 9:45 pm
Posts: 16
Right I've dumped the partitions onto my drive and although the drive is now reported as a Big Disk whereas before it was reporting itself as an Ethernet Mini.

But I still get nothing being shown under the Disks tab, so no size or type and there is no format button either.

So it looks like it doesn't like the /dev/md0 partition I created when booted up off ubuntu.

Anybody have any words of wisdom as to how I need to create the partitions so that the firmware correctly picks up the disk?


Top
 Profile  
 
 Post subject: Re: Rebuilding EBD
PostPosted: Thu Mar 10, 2011 9:00 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6075
I looked at the partitions you uploaded, and found this in sda8/etc/mdadm.conf:
Code:
DEVICE /dev/sda2 /dev/sdb
ARRAY /dev/md0 level=linear num-devices=2 UUID=799e1a1c:7ef619b1:6e102cdc:4d64e62d
So I suppose you have to edit this file to make the UUID (and level?) match with the raid array you created.


Top
 Profile  
 
 Post subject: Re: Rebuilding EBD
PostPosted: Thu Mar 10, 2011 9:39 pm 
Offline

Joined: Sun Mar 06, 2011 9:45 pm
Posts: 16
Yes I've just realised that that's the reason but only after putting in a cgi exploit so that I could run the command mdadm -QE --scan.

So I'm just mid way through correcting mdadm.conf hoping that the drive will burst into life after I correct things :)


Top
 Profile  
 
 Post subject: Re: Rebuilding EBD
PostPosted: Thu Mar 10, 2011 10:29 pm 
Offline

Joined: Sun Mar 06, 2011 9:45 pm
Posts: 16
Right I've changed the UUID to match that reported by mdadm but I still don't get any info presented in the disk tab.

Can anybody help with recreating the array from scratch?


Top
 Profile  
 
 Post subject: Re: Rebuilding EBD
PostPosted: Thu Mar 10, 2011 10:40 pm 
Offline

Joined: Sun Mar 06, 2011 9:45 pm
Posts: 16
I'm getting this in the messages log

Mar 10 19:42:48 (none) user.info kernel: md: md0 stopped.
Mar 10 19:42:48 (none) user.warn kernel: XFS: SB read failed

Also is /home supposed to show when I issue a mount command as at the momment it doesn't.


Top
 Profile  
 
 Post subject: Re: Rebuilding EBD
PostPosted: Fri Mar 11, 2011 5:56 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6075
Quote:
Can anybody help with recreating the array from scratch?
Didn't you build the array from scratch? If yes, what is the problem redoing it, if no, how did you get your current array?


Top
 Profile  
 
 Post subject: Re: Rebuilding EBD
PostPosted: Fri Mar 11, 2011 6:03 pm 
Offline

Joined: Sun Mar 06, 2011 9:45 pm
Posts: 16
Mijzelf wrote:
Quote:
Can anybody help with recreating the array from scratch?
Didn't you build the array from scratch? If yes, what is the problem redoing it, if no, how did you get your current array?


Yes I rebuilt the array when I had the disks connected to my PC via Ubuntu.

mdadm seems to recognise that there is an array but the Lacie refuses to mount it when it boots.

I don't mind trashing the array and starting again to be honest.


Top
 Profile  
 
 Post subject: Re: Rebuilding EBD
PostPosted: Fri Mar 11, 2011 7:35 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6075
I think it's a good idea to arrange shell access by installing telnetd or sshd. Then you can create a guaranteed compatible array locally.


Top
 Profile  
 
 Post subject: Re: Rebuilding EBD
PostPosted: Fri Mar 11, 2011 8:08 pm 
Offline

Joined: Sun Mar 06, 2011 9:45 pm
Posts: 16
I've had some success, if format /dev/md0 using mkfs.xfs the partiton mounts after a reboot but if I then format it using the admin dialog I get an error and then the disk tab again doesn't show the disk info until I do a reboot where it's pretty obvious that it didn;t even do a format as the test data I copied on is still there.

Also after the format, when it shows no disk info if I issue the command mount it shows /dev/md0 mounted twice?

I think I agree, am going to assemble the array on the disk itself.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group