Save original firmware for later restoration

Re: Save original firmware for later restoration

Postby matzi » Thu May 29, 2014 8:45 pm

OK I gave up chance to come back the easy way and erased the partition table, allowig fvdw-sl console to judge it as a new blank disc. In the console I could not use just "install fvdw software", that failed logging into the telnet client, I had to load standalone kernel and then go all steps one by one. Now it works! :rock
The 5big2 is now running fvdw 15.2 with one disc in slot one. Can I plug the remaining four discs now or is there a danger that it will try to come back to Lacie firmware? Remember all disc were together in a Lacie running sytem before.
matzi
Donator VIP
Donator VIP
 
Posts: 253
Joined: Wed Jul 06, 2011 8:08 am
Location: Hannover Germany

Re: Save original firmware for later restoration

Postby matzi » Thu May 29, 2014 9:14 pm

:beer:
Wireless access works!
matzi
Donator VIP
Donator VIP
 
Posts: 253
Joined: Wed Jul 06, 2011 8:08 am
Location: Hannover Germany

Re: Save original firmware for later restoration

Postby fvdw » Thu May 29, 2014 9:47 pm

:thumbup

in the download section you can find this file
It also explains how to prepare additional disks
You can not insert the discs previously used on the 5big2 with the lacie firmware on it. You need to remove all partitions and make a new partition table. Lacie use a raid setup so all files will contain the lacie firmware
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Save original firmware for later restoration

Postby matzi » Fri May 30, 2014 8:58 am

OK now let us go on installing the nwsp2 disc in 5big2:

I installed the 5big2 firmware (bin file) while it was installed in NWSP2. Then mounted it once again in 5big2. Booted 5big2 and it showed up in the webinterface. Installed 5big2 15.2 firmware again and rebooted. Now the webinterface runs fine. But the files are gone. It still shows the folders but folders are empty. Even reloading the old database does not change it. I also cannot make a new share. In the system information the drive is shown with 0 bytes available.


gdisk output:
root@fvdwsl-base:/ # gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.5

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 4883781168 sectors, 2.3 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 8881F69B-DDDA-4396-9C1F-A2687B0CD75C
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 4883781134
Partitions will be aligned on 2048-sector boundaries
Total free space is 3565 sectors (1.7 MiB)

Number Start (sector) End (sector) Size Code Name
1 2048 1034239 504.0 MiB EF00
2 1034240 2064383 503.0 MiB 0700
3 2064384 3096575 504.0 MiB 8200
4 3096576 3098623 1024.0 KiB 0700
5 3098624 4704255 784.0 MiB 0700
6 4704256 4720639 8.0 MiB 0700
7 4720640 5750783 503.0 MiB 0700
8 5750784 4883779583 2.3 TiB 0700



the line of dmesg output mentioning "gpt"
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda7 ro reset=0 productType=BIG5_KW cap=gpt,lba64


In the webinterface under setup-disk setup it shows drive A as unformatted.
matzi
Donator VIP
Donator VIP
 
Posts: 253
Joined: Wed Jul 06, 2011 8:08 am
Location: Hannover Germany

Re: Save original firmware for later restoration

Postby fvdw » Fri May 30, 2014 10:08 am

a very strange disk.
Looks klike sda8 is not mounted
Please post output of
Code: Select all
cat /boot.log

and
Code: Select all
mount
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Save original firmware for later restoration

Postby matzi » Fri May 30, 2014 6:45 pm

That gives me a hard time. AFter the system was running from late last night till this afternoon I came back to check its state. But I had no acces anymore!
Not through webinterface nor by file explorer.
I dismounted the disc and connected it to my linux pc. All shares and files in SDA8 seem to be OK. On sda1 I found this boot.log:

start boot log
detect and set platform
5big2
UIMAGE-395-199
5big2
update dev nodes
booting using sda1 root file system...
make dev node for buttons...
make dev node for tun device...
enable IP forwarding...
start buttons control daemon
device = 5big2
source = buttons-nwsp2
buttons-nwsp2 daemon started
Fri May 30 10:32:58 GMT+1 2014
create temporary passwd file
run udevstart to update dev nodes when necessary
inserting kernel modules:
configure loopback netwerk interface
setting reboot and standby
5big2
rebootd-nwsp2
5big2
standbyd-nwsp2
start fan
fan5big daemon started
starting php based setup routines step 1

* Found XML database configuration file... [ OK ]
* Updating Disks database... [ OK ]
* Starting mount of volumes...
* Finishing mount of volumes... [ OK ]
* Starting udevd... [ OK ]
* Generating Hosts File... [ OK ]
* Configuring System Hostname... [ OK ]
* Configuring LAN interface... [ OK ]
* Initializing Timezone... [ OK ]
* Starting web server... [ OK ]
* Configuring Disks... [ OK ]
* Configuring Samba... [ OK ]
* Configuring System Users...
Root password: use default password
Set users, linux and samba accounts [ OK ]
* Starting syncawayd... [ OK ]
* Starting Fvdw-sl Discovery Daemon... [ OK ]
start rpcbind service
starting php based setup routines step 2
* Starting dropbear... [ OK ]
* Kill temporary dropbear... [ OK ]
starting php based setup routines step 3
* Starting Explorer Service... * Starting daemon update Hosts File... [ OK ]
* Starting USB Spin-down Guard... [ OK ]
* Starting Disk Temperature Guard... [ OK ]
* Starting mount of remote shares...
* Finishing mount shares... [ OK ]
* Starting FTP Service...
Warning: Illegal string offset 'vol' in /etc/finc/get_mount_point_path.finc on line 12

Warning: Illegal string offset 'vol' in /etc/finc/get_mount_point_path.finc on line 15

Warning: Illegal string offset 'fs' in /etc/finc/get_mount_point_path.finc on line 15

Warning: Illegal string offset 'vol' in /etc/finc/get_mount_point_path.finc on line 12

Warning: Illegal string offset 'vol' in /etc/finc/get_mount_point_path.finc on line 15

Warning: Illegal string offset 'fs' in /etc/finc/get_mount_point_path.finc on line 15

Warning: Illegal string offset 'vol' in /etc/finc/dm_get_vol_name.finc on line 24
[ OK ]
* Starting NTP client... [ OK ]
* Starting CRON Service... [ OK ]
starting php based setup routines step banner


*** fvdw-sl NAS firmware
This is fvdw-sl version: fvdw-sl 15.2 patched
built on: March 14 2014

LAN IP address: 192.168.178.200 (static)

Port configuration:

LAN -> eth0
php based setup routines finished
web permission on resolv.conf
set device tuning for dms performance
else loop1 finished
rcS finished


I cannot post the mount command output obviously.

How do I know sda1 or another partition was in use last time?
matzi
Donator VIP
Donator VIP
 
Posts: 253
Joined: Wed Jul 06, 2011 8:08 am
Location: Hannover Germany

Re: Save original firmware for later restoration

Postby fvdw » Fri May 30, 2014 7:10 pm

on sda7 you will find a folder with name "lacie-boot"
It will contain one file, sda1boot or sda2boot, when it is sda1boot then the system boots from sda1 if it is sda2boot then it boots from sda2.

How many disk were you running when the system failed ?
It seems your database contains some illegal entries.
Boot the nas only with the separate disk you prepared so do not add the nwsp2 disk.
I think that your nwsp2 disk is not working correctly with smartctl commands. Jocko script to update the nas database automatically at boot uses these in smart commands. Via these commands the script reads information from the HDD and based on what it gets as answer form the disk it fills the database. If the disk returns no data are not all required data then it will not be added correctly to the database and data partition may not be mounted or the disk may not be present at all.

To see if the smart commands work with your nwsp2 disk put it back in the nwsp and open the webinterface. In the disk menu there is a sub menu to check the disk with smart commands.

Never seen this before.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Save original firmware for later restoration

Postby matzi » Fri May 30, 2014 7:36 pm

It does not boot in the nwsp2 anymore. Think I need to rewrite kernel and firmware. Can I use fvdw console for that without repartitioning and without touching sda8?

Ignore that post it is up again.
matzi
Donator VIP
Donator VIP
 
Posts: 253
Joined: Wed Jul 06, 2011 8:08 am
Location: Hannover Germany

Re: Save original firmware for later restoration

Postby matzi » Fri May 30, 2014 7:58 pm

smart functions seem correct
smartctl 6.0 2012-10-10 r3643 [armv5tel-linux-3.9.5] (local build)
Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family: Western Digital Caviar Green (AF, SATA 6Gb/s)
Device Model: WDC WD25EZRX-00AZ6B0
Serial Number: WD-WCC190001482
LU WWN Device Id: 5 0014ee 002fdfbfd
Firmware Version: 80.00A80
User Capacity: 2,500,495,958,016 bytes [2.50 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5400 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS (minor revision not indicated)
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Fri May 30 20:55:00 2014 GMT+1
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status: (0x84) Offline data collection activity
was suspended by an interrupting command from host.
Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: (42060) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 405) minutes.
Conveyance self-test routine
recommended polling time: ( 5) minutes.
SCT capabilities: (0x3035) SCT Status supported.
SCT Feature Control supported.
SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0
3 Spin_Up_Time 0x0027 243 240 021 Pre-fail Always - 9833
4 Start_Stop_Count 0x0032 096 096 000 Old_age Always - 4472
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0
9 Power_On_Hours 0x0032 088 088 000 Old_age Always - 8866
10 Spin_Retry_Count 0x0032 100 100 000 Old_age Always - 0
11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 366
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 268
193 Load_Cycle_Count 0x0032 160 160 000 Old_age Always - 122327
194 Temperature_Celsius 0x0022 118 102 000 Old_age Always - 34
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 3
200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline - 0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]


SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
matzi
Donator VIP
Donator VIP
 
Posts: 253
Joined: Wed Jul 06, 2011 8:08 am
Location: Hannover Germany

Re: Save original firmware for later restoration

Postby matzi » Fri May 30, 2014 8:04 pm

Are more than one copies of the database saved? The latest that I can restore through webinterface is corrupted, so i need an okder version.
matzi
Donator VIP
Donator VIP
 
Posts: 253
Joined: Wed Jul 06, 2011 8:08 am
Location: Hannover Germany

PreviousNext

Return to Lacie 5big Network vs2

Who is online

Users browsing this forum: No registered users and 6 guests