Restoring a LaCie 5big Network

Restoring a LaCie 5big Network

Postby mietek » Mon Dec 17, 2018 9:11 am

I acquired a LaCie 5big Network, used, without disks. I’m having trouble getting it to work.

I’ve put in five 2TB HGST HUS724020ALA640 disks, replaced the capacitors on the motherboard, and added pins to the J29 header for accessing the serial console.

When connected to the serial console, the `ide reset` command almost always fails to initialise one or more disks. I can detect no clear pattern to the failures. The failing slots vary depending on the number of disks installed.

Any advice?

Code: Select all
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|  ** LOADER **
 ** MARVELL BOARD: RD-88F5281-LaCie LE

U-Boot 1.1.4 (Jun 26 2008 - 16:55:41) Marvell version: 2.4.9

U-Boot code: 00200000 -> 0026FFF0  BSS: -> 00283280

Soc: 88F5281 D0 (DDR2)
CPU running @ 500Mhz
SysClock = 166Mhz , TClock = 166Mhz

DRAM CS[0] base 0x00000000   size 128MB
DRAM Total size 128MB  32bit width
[4096kB@ffc00000] Flash:  4 MB
Addresses 4M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (4M - 3M): Done

CPU : ARM926 (Rev 0)
Streaming disabled
VFP initialized to Run Fast Mode.

USB 0: host mode
PCI 0: PCI Express Root Complex Interface
PCI 1: PCI-X, speed = 66000000
CPU: Write allocate Disabled
Net:   egiga0 [PRIME]
POWER ON
Hit any key to stop autoboot:  0
Marvell>> ide reset

Reset IDE:
Marvell Serial ATA Adapter
Found adapter at bus 1, device 7 ... Scanning channels
  Device 0: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUBWBP
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
Error - Failed initializing(SRST) drive on channel 1
Failed initializing storage deivce connected to SATA channel 1
Error - Failed initializing(SRST) drive on channel 2
Failed initializing storage deivce connected to SATA channel 2
  Device 3: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN1134P6GXKW0N
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
  Device 4: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUKY8P
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)

Marvell>> ide reset

Reset IDE:
Marvell Serial ATA Adapter
Found adapter at bus 1, device 7 ... Scanning channels
  Device 0: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUBWBP
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
  Device 1: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN1134P6GXG6NN
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
  Device 2: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUMX1P
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
  Device 3: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN1134P6GXKW0N
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
  Device 4: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUKY8P
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)

Marvell>> ide reset

Reset IDE:
Marvell Serial ATA Adapter
Found adapter at bus 1, device 7 ... Scanning channels
  Device 0: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUBWBP
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
Error - Failed initializing(SRST) drive on channel 1
Failed initializing storage deivce connected to SATA channel 1
Error - Failed initializing(SRST) drive on channel 2
Failed initializing storage deivce connected to SATA channel 2
  Device 3: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN1134P6GXKW0N
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
  Device 4: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUKY8P
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)

Marvell>> ide reset

Reset IDE:
Marvell Serial ATA Adapter
Found adapter at bus 1, device 7 ... Scanning channels
  Device 0: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUBWBP
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
  Device 1: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN1134P6GXG6NN
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
  Device 2: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUMX1P
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
  Device 3: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN1134P6GXKW0N
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
  Device 4: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUKY8P
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)

Marvell>> ide reset

Reset IDE:
Marvell Serial ATA Adapter
Found adapter at bus 1, device 7 ... Scanning channels
  Device 0: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUBWBP
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
Error - Failed initializing(SRST) drive on channel 1
Failed initializing storage deivce connected to SATA channel 1
Error - Failed initializing(SRST) drive on channel 2
Failed initializing storage deivce connected to SATA channel 2
  Device 3: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN1134P6GXKW0N
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
  Device 4: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUKY8P
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)

Marvell>> ide reset

Reset IDE:
Marvell Serial ATA Adapter
Found adapter at bus 1, device 7 ... Scanning channels
  Device 0: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUBWBP
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
  Device 1: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN1134P6GXG6NN
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
Error - Failed initializing(SRST) drive on channel 2
Failed initializing storage deivce connected to SATA channel 2
  Device 3: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN1134P6GXKW0N
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
Error - Failed initializing(SRST) drive on channel 4
Failed initializing storage deivce connected to SATA channel 4

Marvell>> ide reset

Reset IDE:
Marvell Serial ATA Adapter
Found adapter at bus 1, device 7 ... Scanning channels
  Device 0: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUBWBP
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
  Device 1: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN1134P6GXG6NN
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
Error - Failed initializing(SRST) drive on channel 2
Failed initializing storage deivce connected to SATA channel 2
  Device 3: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN1134P6GXKW0N
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
  Device 4: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUKY8P
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)

Marvell>> ide reset

Reset IDE:
Marvell Serial ATA Adapter
Found adapter at bus 1, device 7 ... Scanning channels
  Device 0: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUBWBP
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
  Device 1: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN1134P6GXG6NN
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
Error - Failed initializing(SRST) drive on channel 2
Failed initializing storage deivce connected to SATA channel 2
  Device 3: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN1134P6GXKW0N
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
  Device 4: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUKY8P
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)

Marvell>> ide reset

Reset IDE:
Marvell Serial ATA Adapter
Found adapter at bus 1, device 7 ... Scanning channels
  Device 0: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUBWBP
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
Error - Failed initializing(SRST) drive on channel 1
Failed initializing storage deivce connected to SATA channel 1
  Device 2: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUMX1P
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
  Device 3: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN1134P6GXKW0N
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
  Device 4: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUKY8P
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)

Marvell>> ide reset

Reset IDE:
Marvell Serial ATA Adapter
Found adapter at bus 1, device 7 ... Scanning channels
  Device 0: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUBWBP
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
Error - Failed initializing(SRST) drive on channel 1
Failed initializing storage deivce connected to SATA channel 1
Error - Failed initializing(SRST) drive on channel 2
Failed initializing storage deivce connected to SATA channel 2
  Device 3: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN1134P6GXKW0N
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
  Device 4: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUKY8P
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)

Marvell>> ide reset

Reset IDE:
Marvell Serial ATA Adapter
Found adapter at bus 1, device 7 ... Scanning channels
  Device 0: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUBWBP
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
Error - Failed initializing(SRST) drive on channel 1
Failed initializing storage deivce connected to SATA channel 1
Error - Failed initializing(SRST) drive on channel 2
Failed initializing storage deivce connected to SATA channel 2
  Device 3: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN1134P6GXKW0N
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
  Device 4: OK
Model: HGST HUS724020ALA640                     Firm: MF6OAC50 Ser#:       PN2134P6GUKY8P
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)

Marvell>>
Last edited by mietek on Thu Dec 20, 2018 5:01 am, edited 2 times in total.
mietek
 
Posts: 4
Joined: Wed Nov 07, 2018 1:06 pm

Re: `ide reset` trouble

Postby fvdw » Tue Dec 18, 2018 4:03 pm

This could be a result of unstable power supply.
You could try if using a power supply with sufficient power solves it.
With 5 disk it should be able to supply at least 100 Watt (12V 8 amp, or higher amp. This if disks spin up they need most power.
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Restoring a LaCie 5big Network

Postby mietek » Thu Dec 20, 2018 4:58 am

Thanks for the response. I tried using a stronger power supply, but it didn’t help. I replaced the disks with 2TB WDC WD20EFRX-68EUZN0 (WD Red), and got past this problem. Unfortunately, I’m still not done.

I wanted to try using the original LaCie firmware, as shared by Mijzelf. However, the included instructions are incorrect.

After a couple attempts, I figured out that the 5big requires only a single master disk. The remaining four disks can be completely blank; the 5big will partition them on first boot. The 5big will also create RAID arrays on first boot, so it is not necessary to use mdadm on the master disk.

I partitioned the master disk to match the partitions 5big creates on the blank disks:
Code: Select all
label: dos
label-id: 0x00000000
device: /dev/sda
unit: sectors

/dev/sda1 : start=          63, size=     2008062, type=5
/dev/sda2 : start=     2008125, size=  3905015940, type=83
/dev/sda5 : start=         126, size=      256914, type=82
/dev/sda6 : start=      257103, size=       16002, type=83
/dev/sda7 : start=      273168, size=       16002, type=83
/dev/sda8 : start=      289233, size=      353367, type=83
/dev/sda9 : start=      642663, size=     1349397, type=83
/dev/sda10 : start=     1992123, size=       16002, type=83

Then, I populated the partitions as follows:
Code: Select all
mkfs.xfs -f /dev/sda2 # home partition (/dev/md4 array)

mkswap -f /dev/sda5 # swap partition (/dev/md3 array)

gzip -cd /full/path/to/sda6.gz | dd of=/dev/sda6 # kernel partition

mke2fs -j /dev/sda7 # boot partition (/dev/md0 array)
mkdir /tmp/sda7
mount /dev/sda7 /tmp/sda7
cd /tmp/sda7
tar xjf /full/path/to/sda7.tar.bz2
cd
umount /tmp/sda7

mke2fs -j /dev/sda8 # read-only root partition (/dev/md1 array)
mkdir /tmp/sda8
mount /dev/sda8 /tmp/sda8
cd /tmp/sda8
tar xjf /full/path/to/sda8.tar.bz2
vi etc/shadow # remove root user password
cd
umount /tmp/sda8

mke2fs -j /dev/sda9 # read-write root partition (/dev/md2 array)

dd if=/dev/zero of=/dev/sda10 # spare kernel partition

echo "LaCieFirstBootLaCie" | dd bs=1 seek=1536 of=/dev/sda

With this done, the 5big boots almost all the way. Unfortunately, there are two problems, which may or may not be related.

The first problem is that messages similar to the following appear a few times in /var/log/messages:
Code: Select all
attempt to access beyond end of device
md1: rw=0, want=372626, limit=353152

/dev/md1 is the RAID array that corresponds to /dev/sda8, the read-only root partition, and that is mounted on /oldroot/var/original. Note this array appears to be 100% full:
Code: Select all
Filesystem                Size      Used Available Use% Mounted on
rootfs                  648.4M     17.6M    597.9M   3% /
udev                    648.4I     17.6M    597.9M   3% /dev
df: /dev/pts: No such file or directory
/dev/md0                  7.6M      5.9M      1.3M  82% /oldroot
udev                     10.0M         0     10.0M   0% /oldroot/dev
udev                     10.0M         0     10.0M   0% /oldroot/dev
none                     62.0M         0     62.0M   0% /oldroot/dev/shm
/dev/md1                167.1M    162.8M         0 100% /oldroot/var/original
/dev/md2                648.4M     17.6M    597.9M   3% /oldroot/snapshots
unionfs                 648.4M     17.6M    597.9M   3% /
/dev/md2                648.4M     17.6M    597.9M   3% /var
/dev/md2                648.4M     17.6M    597.9M   3% /tmp
/dev/md4                  7.3T      1.4M      7.3T   0% /home

The second problem is that the following services fail to start:
Code: Select all
      dhcdbd                            [DAEMON_FAIL_START_TIMEOUT_PIDFILE]
      edconfd                           [DAEMON_FAIL_START_TIMEOUT_PIDFILE]
      runlevel/default                  [START_DEPS_FAILED]
      NetworkManager                    [DAEMON_START_DEPS_FAILED]
      recovery                          [SERVICE_START_DEPS_FAILED]

I don’t see any log messages related to the failing services, beyond the uninformative “InitNG: Service dhcdbd FAILED”, etc.

I’m wondering if the 5big can deal with 2TB disks. Has anyone tried that before?

I’m also wondering if 4096-byte sectors could be a factor. Newer versions of fdisk complain that the partitions created by the 5big are misaligned. However, I thought that such misalignment could, at worst, cause some performance degradation, not complete failure.

Any advice?
mietek
 
Posts: 4
Joined: Wed Nov 07, 2018 1:06 pm

Re: Restoring a LaCie 5big Network

Postby mietek » Thu Dec 20, 2018 7:29 am

Never mind. I started over. I imaged the master disk using the flat dump shared by Mijzelf, added the first boot signature, and erased the other four disks. With this done, the 5big successfully booted all the way!

Code: Select all
dd if=/full/path/to/2008221.img of=/dev/sda
echo "LaCieFirstBootLaCie" | dd bs=1 seek=1536 of=/dev/sda

I guess that either my simplified method for populating partitions was incorrect, or someone may have made a mistake when converting the flat dump to archives of individual partitions.

Removing the root user password is a little tricky. This isn’t enough:
Code: Select all
mdadm --assemble --run /dev/md1 /dev/sda8
mkdir /tmp/md1
mount /dev/md1 /tmp/md1
vi /tmp/md1/etc/shadow # remove root user password
umount /tmp/md1
mdadm --stop /dev/md1

I think it’s also necessary to log into the machine via the serial console before first boot is finished.

Specifically, log in as root before a snapshot is created, and /etc/shadow becomes overlaid by /oldroot/snapshots/snaps/00/etc/shadow. This overlay seems to be created during first boot, with the original root password still present. Once logged in, wait for the snapshot to be created, and edit /oldroot/snapshots/snaps/00/etc/shadow as well.

Whew!

Now, it looks like synchronising RAID 6 will take 90 hours… Why bother? Well, LaCie’s original software for the 5big includes a sufficiently old version of netatalk with support for DDP (AppleTalk). This means it works with Mac OS 9 and earlier. Ironically, this also means it doesn’t work with macOS 10.14, over AFP at least.
mietek
 
Posts: 4
Joined: Wed Nov 07, 2018 1:06 pm


Return to Lacie 5Big Network vs1

Who is online

Users browsing this forum: No registered users and 2 guests