serial number does not match the expected device

serial number does not match the expected device

Postby DavidJDor » Wed Jan 19, 2022 3:42 am

Hi All,
I have a Lacie 5Big network 2 that i have just upgraded to your firmware (due to the Lacie firmware crashing all the time and not allowing connections) all has gone well installed version 18 and did an upgrade to 18.2 with one disk in slot 1 (all went well) installed another disk into slot 2 and formatted it through the web interface (again all went well) Installed another disk into slot 3 and tried to do the same process and get this error "serial number does not match the expected device : sdc" and the scrip ends.
Unsure of how to insert the error message
Setup task reset.sh is now running
serial number does not match the expected device : sdc
Screenshot 2022-01-19 133751.jpg

Please help, I am not sure if it is me or something I have done wrong
You do not have the required permissions to view the files attached to this post.
DavidJDor
Donator VIP
Donator VIP
 
Posts: 19
Joined: Mon Jan 17, 2022 9:17 am
Location: Ipswich Queensland Australia

Re: serial number does not match the expected device

Postby Jocko » Wed Jan 19, 2022 8:57 am

Hi

Yes it is not the expected behaviour.

Note: I assume you have restored the regular mode

Some output to deepen that. Open a shell window (use putty) and do
Code: Select all
ls -al /dev/sd[abcde]
cat /proc/partitions|grep sd[abcdef]$
/etc/api/nasapi.php mrvlGetDisk high all
Now the last setup script on sdc should be still present
Code: Select all
cat /etc/.setup.fs/reset.sh
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: serial number does not match the expected device

Postby DavidJDor » Wed Jan 19, 2022 9:45 am

Hi Jacko
Thanks for that, have run the scripts using Putty
Do I try formatting the drive again?
Output of the scripts are as follows

Code: Select all
root@Lacie-fvdwsl:/ # ls -al /dev/sd[abcde]
brw-rw----  1 root root 8, 32 2022-01-19 14:19 /dev/sda
brw-rw----  1 root root 8, 16 2022-01-19 14:19 /dev/sdb
brw-rw----  1 root root 8,  0 2022-01-18 18:49 /dev/sdc
brw-rw----  1 root root 8, 64 2022-01-18 18:49 /dev/sdd
brw-rw----  1 root root 8, 48 2022-01-18 18:49 /dev/sde
root@Lacie-fvdwsl:/ # cat /proc/partitions|grep sd[abcdef]$
   8        0 1953514584 sdc
   8       16 1953514584 sdb
   8       32 1953514584 sda
root@Lacie-fvdwsl:/ # /etc/api/nasapi.php mrvlGetDisk high all
PHP Warning:  Illegal string offset 'size' in /etc/finc/dm_get_disk_partition_summary.finc on line 44

Warning: Illegal string offset 'size' in /etc/finc/dm_get_disk_partition_summary.finc on line 44
PHP Warning:  Illegal string offset 'volid' in /etc/finc/dm_get_disk_partition_summary.finc on line 45

Warning: Illegal string offset 'volid' in /etc/finc/dm_get_disk_partition_summary.finc on line 45
PHP Warning:  Illegal string offset 'color' in /etc/finc/dm_get_disk_partition_summary.finc on line 46

Warning: Illegal string offset 'color' in /etc/finc/dm_get_disk_partition_summary.finc on line 46
PHP Warning:  Illegal string offset 'lvname' in /etc/finc/dm_get_disk_partition_summary.finc on line 47

Warning: Illegal string offset 'lvname' in /etc/finc/dm_get_disk_partition_summary.finc on line 47
Array
(
    [0] => Array
        (
            [diskid] => S1E34MLL
            [name] => Disk-A
            [blockdev] => /dev/sda
            [isusb] => 0
            [isesata] => 0
            [isformated] => 1
            [isinternal] => 1
            [issystem] => 1
            [totalsize] => 1860.24
            [freesize] => 0
            [table] => gpt
            [partitions] => Array
                (
                    [0] => Array
                        (
                            [size] => 1860.24909163
                            [volid] => 1000
                            [color] => #8d7bac
                            [lvname] => /dev/sda8
                        )

                )

        )

    [1] => Array
        (
            [diskid] => Z5228Z6C
            [name] => Disk-B
            [blockdev] => /dev/sdb
            [isusb] => 0
            [isesata] => 0
            [isformated] => 1
            [isinternal] => 1
            [issystem] => 0
            [totalsize] => 1860.24
            [freesize] => 0
            [table] => gpt
            [partitions] => Array
                (
                    [0] => Array
                        (
                            [size] => 1860.24909163
                            [volid] => 1001
                            [color] => #ef9b14
                            [lvname] => /dev/sdb8
                        )

                )

        )

    [2] => Array
        (
            [diskid] => WD
            [name] => Disk-C
            [blockdev] => /dev/sdc
            [isusb] => 0
            [isesata] => 0
            [isformated] => 0
            [isinternal] => 1
            [issystem] => 0
            [totalsize] => 1863.01
            [freesize] => 1863.01668549
            [table] => gpt
            [partitions] => Array
                (
                    [0] => Array
                        (
                            [size] =>
                            [volid] =>
                            [color] =>
                            [lvname] =>
                        )

                )

        )

)
root@Lacie-fvdwsl:/ # cat /etc/.setup.fs/reset.sh
#!/bin/sh

# Jocko : version 1.3 19/01/2017

. /etc/.setup.fs/setupjob.ini
. /etc/.setup.fs/dic_setup.ini

LOG=/etc/.setup.fs/setupjob.log

stopjob(){
 stop=$(date '+%s')
 [ -n "$1" ] && error=$@ || error=
 sed -rie "s/.*(stop=).*/\1$stop/g;s/.*(status=).*/\1$status/g;s/.*(error=).*/\1\"$error\"/g" /etc/.setup.fs/setupjob.ini
 [ $status -eq 3 ] && echo '<span style="color:red;"><b>'$@'</b></span><br>'>> $LOG
}

check_mode(){
 if ps x -o cmd|grep -v grep|grep -c noflushd > /dev/null
 then
  status=3
  stopjob 'setup mode is not available !'
  exit 1
 fi
}

unlink /rw_fs/tmp/setup 2>/dev/null
check_mode

status=0
stop=
error=

if [ -z "$start" ] || [ $start -eq 0 ]
then
 start=$(date '+%s')
 sed -rie "s/.*(start=).*/\1$start/g;s/.*(stop=).*/\1$stop/g;s/.*(status=).*/\1$status/g" /etc/.setup.fs/setupjob.ini
 echo -e '<b>'$task_start"</b><br>"> $LOG
else
 echo -e '<br><b>'$task_restart"</b><br>">> $LOG
 sed -rie "s/.*(stop=).*/\1$stop/g;s/.*(status=).*/\1$status/g" /etc/.setup.fs/setupjob.ini
fi

if [ -f /etc/.setup.fs/check_disk ]
then
 . /etc/.setup.fs/check_disk 'sdc,WD,0 '

 if [ -e '/etc/.setup.fs/delete_table.0' ]
 then
  src=$(readlink -f '/etc/.setup.fs/delete_table.0')
  . $src sdc
  unlink "$src"
 fi
 sleep 20
 if [ -e '/etc/.setup.fs/set_table.0' ]
 then
  src=$(readlink -f '/etc/.setup.fs/set_table.0')
  . $src sdc8 gpt
  unlink "$src"
 fi
 sleep 10
 if [ -e '/etc/.setup.fs/set_fs.0' ]
 then
  src=$(readlink -f '/etc/.setup.fs/set_fs.0')
  . $src sdc8 ext4
  unlink "$src"
 fi
 if [ -e '/etc/.setup.fs/set_partid.0' ]
 then
  src=$(readlink -f '/etc/.setup.fs/set_partid.0')
  . $src sdc8
  unlink "$src"
 fi
 status=1
 stopjob
 echo '<b>'$task_end'</b><br>'>> $LOG
 # unlink "$0"
 /etc/leds_switch off
 sleep 5
 /etc/leds_bootup
else
 status=3
 stopjob $err_missing_info
fi


David
DavidJDor
Donator VIP
Donator VIP
 
Posts: 19
Joined: Mon Jan 17, 2022 9:17 am
Location: Ipswich Queensland Australia

Re: serial number does not match the expected device

Postby Jocko » Wed Jan 19, 2022 10:11 am

Ok, it seems the firmware on nas booting failed to set rightly the disk id on your WD disk
Code: Select all
[2] => Array
        (
            [diskid] => WD     <--------------- it is not really an id !!!
I assume because there are some spaces on the returned value.

So post
Code: Select all
 /sbin/ata_id -x /dev/sdc
/usr/sbin/smartctl -a /dev/sdc

 /usr/sbin/smartctl -a  /dev/sdc | grep -i 'Serial Number' | awk '{print $3}'               <------------ this is the way used on nas booting
ata_id -x /dev/sdc|tr "\n" " "|awk -F '[ =]' '{print $6}'                       <------------ this is the way used by the setup job
and another output
Code: Select all
 grep '<disk>' /etc/nas_conf_db.xml -A 20
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: serial number does not match the expected device

Postby DavidJDor » Wed Jan 19, 2022 10:27 am

Please see below after running scripts

Code: Select all
root@Lacie-fvdwsl:/ # /sbin/ata_id -x /dev/sdc
ID_TYPE=disk
ID_MODEL=WDC_WD20EFRX-68EUZN0
ID_SERIAL=WD_WCC6X2DE6335
ID_REVISION=15.02C.0
ID_BUS=ata
root@Lacie-fvdwsl:/ # /usr/sbin/smartctl -a /dev/sdc
smartctl 6.3 2014-07-26 r3976 [armv5tel-linux-4.14.133] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, http://www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Red
Device Model:     WDC WD20EFRX-68EUZN0
Serial Number:    WD WCC6X2DE6335
LU WWN Device Id: 0 000000 000000000
Firmware Version: 15.02C.0
User Capacity:    2,000,398,934,016 bytes [2.00 TB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   [No Information Found]
Local Time is:    Wed Jan 19 20:17:30 2022 EST
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:  (0x00) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Disabled.
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:                (25440) 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:        ( 257) minutes.
Conveyance self-test routine
recommended polling time:        (   5) minutes.

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   100   253   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0027   217   214   021    Pre-fail  Always       -       4150
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       47
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002f   100   253   051    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       11
 10 Spin_Retry_Count        0x0033   100   253   051    Pre-fail  Always       -       0
 11 Calibration_Retry_Count 0x0032   100   253   051    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       44
184 End-to-End_Error        0x0033   100   100   097    Pre-fail  Always       -       0
187 Reported_Uncorrect      0x0032   001   001   000    Old_age   Always       -       174
188 Command_Timeout         0x0032   001   001   000    Old_age   Always       -       160
190 Airflow_Temperature_Cel 0x0022   060   053   000    Old_age   Always       -       40
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       34
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       39
194 Temperature_Celsius     0x0022   110   103   000    Old_age   Always       -       40
195 Hardware_ECC_Recovered  0x0036   100   253   000    Old_age   Always       -       0
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       1
198 Offline_Uncorrectable   0x0030   100   253   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0009   100   253   051    Pre-fail  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.

root@Lacie-fvdwsl:/ # /usr/sbin/smartctl -a  /dev/sdc | grep -i 'Serial Number'
| awk '{print $3}'
WD
root@Lacie-fvdwsl:/ # ata_id -x /dev/sdc|tr "\n" " "|awk -F '[ =]' '{print $6}'
WD_WCC6X2DE6335
root@Lacie-fvdwsl:/ # grep '<disk>' /etc/nas_conf_db.xml -A 20
                        <disk>
                                <device>/dev/sda</device>
                                <inactivityperiod>15</inactivityperiod>
                                <lastselftest>0</lastselftest>
                        </disk>
                </hdparams>
                <notify>
                        <eventbmp>3</eventbmp>
                        <email>
                                <enable>false</enable>
                                <address/>
                                <smtpip/>
                        </email>
                        <icq>
                                <enable>false</enable>
                                <idnum/>
                                <passwd/>
                                <dest_idnum/>
                        </icq>
                        <sms>
                                <enable>false</enable>
--
                <disk>
                        <size>1860.24909163</size>
                        <internal>true</internal>
                        <name>Disk-A</name>
                        <system>true</system>
                        <blockdev>/dev/sda</blockdev>
                        <diskid>S1E34MLL</diskid>
                        <model> ST2000DM001-1CH164</model>
                        <usb>false</usb>
                        <freesize>0</freesize>
                        <init>true</init>
                        <partitions>
                                <partition>
                                        <lvname>/dev/sda8</lvname>
                                        <color>#8d7bac</color>
                                        <volid>1000</volid>
                                        <index>0</index>
                                        <size>1860.24909163</size>
                                </partition>
                        </partitions>
                </disk>
                <disk>
                        <size>1860.24909163</size>
                        <internal>true</internal>
                        <name>Disk-B</name>
                        <system>false</system>
                        <blockdev>/dev/sdb</blockdev>
                        <diskid>Z5228Z6C</diskid>
                        <model> ST2000VN004-2E4164</model>
                        <usb>false</usb>
                        <freesize>0</freesize>
                        <init>true</init>
                        <partitions>
                                <partition>
                                        <lvname>/dev/sdb8</lvname>
                                        <color>#ef9b14</color>
                                        <volid>1001</volid>
                                        <index>0</index>
                                        <size>1860.24909163</size>
                                </partition>
                        </partitions>
                </disk>
                <disk>
                        <size>1863.01668549</size>
                        <internal>true</internal>
                        <name>Disk-C</name>
                        <system>false</system>
                        <blockdev>/dev/sdc</blockdev>
                        <diskid>WD</diskid>
                        <model> WDC WD20EFRX-68EUZN0</model>
                        <usb>false</usb>
                        <freesize>1863.01668549</freesize>
                        <init>false</init>
                        <partitions>
                                <partition/>
                        </partitions>
                </disk>
        </disks>
        <vols>
                <vol>
                        <volid>1000</volid>
                        <md>/dev/sda8</md>
                        <fs>1000</fs>


David
DavidJDor
Donator VIP
Donator VIP
 
Posts: 19
Joined: Mon Jan 17, 2022 9:17 am
Location: Ipswich Queensland Australia

Re: serial number does not match the expected device

Postby Jocko » Wed Jan 19, 2022 10:45 am

So here the issue...
Code: Select all
root@Lacie-fvdwsl:/ # /usr/sbin/smartctl -a  /dev/sdc | grep -i 'Serial Number'
| awk '{print $3}'
WD
root@Lacie-fvdwsl:/ # ata_id -x /dev/sdc|tr "\n" " "|awk -F '[ =]' '{print $6}'
WD_WCC6X2DE6335


You have to wait a patch to fix this (on today)

Note: Please to use the BBcode '[ code][/code]' (https://plugout.net//faq.php?mode=bbcode) to paste your outputs (much more readable, see your previous messages)
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: serial number does not match the expected device

Postby DavidJDor » Wed Jan 19, 2022 11:08 am

Thanks for all the work you have put into this issue of mine
do you think there will be any issues with the other two disks, I want to build this into a 5 drive raid5 nas
Thanks
David
DavidJDor
Donator VIP
Donator VIP
 
Posts: 19
Joined: Mon Jan 17, 2022 9:17 am
Location: Ipswich Queensland Australia

Re: serial number does not match the expected device

Postby Jocko » Wed Jan 19, 2022 11:16 am

For disk-B there is no issue but if the other disks are WD disk with spaces in their SN, yes it is an issue.

I go to send you a beta-patch within 1 hour. So I'd rather than you wait
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: serial number does not match the expected device

Postby Jocko » Wed Jan 19, 2022 11:37 am

So I sent you a pm for testing the beta roll-up patch05.

To install it, do
- Save the zip archive (pm) in the share 'fvdw'. If you do not do it again, create it on Vol-A
- Go to the upload patch menu of the web interface
- Select the file in the first field (click on the small button "...")
- Put in the second field (control code) the following code : "shell" (without quotes)

If there is no error message, reboot the nas, and post again
Code: Select all
grep '<disk>' /etc/nas_conf_db.xml -A 20
You should have now the value 'WD_WCC6X2DE6335' with sdc disk.

If yes you can resume your disk setup jobs
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: serial number does not match the expected device

Postby DavidJDor » Wed Jan 19, 2022 12:07 pm

Please see output after running the patch and restarting the nas

Code: Select all
root@Lacie-fvdwsl:/ # grep '<disk>' /etc/nas_conf_db.xml -A 20
                        <disk>
                                <device>/dev/sda</device>
                                <inactivityperiod>15</inactivityperiod>
                                <lastselftest>0</lastselftest>
                        </disk>
                </hdparams>
                <notify>
                        <eventbmp>3</eventbmp>
                        <email>
                                <enable>false</enable>
                                <address/>
                                <smtpip/>
                        </email>
                        <icq>
                                <enable>false</enable>
                                <idnum/>
                                <passwd/>
                                <dest_idnum/>
                        </icq>
                        <sms>
                                <enable>false</enable>
--
                <disk>
                        <size>1860.24909163</size>
                        <internal>true</internal>
                        <name>Disk-A</name>
                        <system>true</system>
                        <blockdev>/dev/sda</blockdev>
                        <diskid>S1E34MLL</diskid>
                        <model>ST2000DM001-1CH164</model>
                        <usb>false</usb>
                        <freesize>0</freesize>
                        <init>true</init>
                        <partitions>
                                <partition>
                                        <lvname>/dev/sda8</lvname>
                                        <color>#b17ee6</color>
                                        <volid>1000</volid>
                                        <index>0</index>
                                        <size>1860.24909163</size>
                                </partition>
                        </partitions>
                </disk>
                <disk>
                        <size>1860.24909163</size>
                        <internal>true</internal>
                        <name>Disk-B</name>
                        <system>false</system>
                        <blockdev>/dev/sdb</blockdev>
                        <diskid>Z5228Z6C</diskid>
                        <model>ST2000VN004-2E4164</model>
                        <usb>false</usb>
                        <freesize>0</freesize>
                        <init>true</init>
                        <partitions>
                                <partition>
                                        <lvname>/dev/sdb8</lvname>
                                        <color>#5047d7</color>
                                        <volid>1001</volid>
                                        <index>0</index>
                                        <size>1860.24909163</size>
                                </partition>
                        </partitions>
                </disk>
                <disk>
                        <size>1863.01668549</size>
                        <internal>true</internal>
                        <name>Disk-C</name>
                        <system>false</system>
                        <blockdev>/dev/sdc</blockdev>
                        <diskid>WD_WCC6X2DE6335</diskid>
                        <model>WDC WD20EFRX-68EUZN0</model>
                        <usb>false</usb>
                        <freesize>1863.01668549</freesize>
                        <init>false</init>
                        <partitions>
                                <partition/>
                        </partitions>
                </disk>
        </disks>
        <vols>
                <vol>
                        <volid>1000</volid>
                        <md>/dev/sda8</md>
                        <fs>1000</fs>


Also
after the patch was loaded the menu changed
DavidJDor
Donator VIP
Donator VIP
 
Posts: 19
Joined: Mon Jan 17, 2022 9:17 am
Location: Ipswich Queensland Australia

Next

Return to Lacie 5big Network vs2

Who is online

Users browsing this forum: No registered users and 9 guests