NAS doesn't boot after setup Raid

Re: NAS doesn't boot after setup Raid

Postby Jocko » Mon Nov 21, 2016 7:29 pm

You need to upload gdisk as mdadm (same command) and of course set run permissions
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: NAS doesn't boot after setup Raid

Postby jungfichte » Mon Nov 21, 2016 7:49 pm

Damn! The NAS won't boot. :fists
Now i got again telnet access and checked gdisk
Code: Select all
root@(none):/ # gdisk /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.

Command (? for help): p
Disk /dev/sda: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 7E18297E-FF7C-406B-AC8F-F036FBA89800
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 8-sector boundaries
Total free space is 663701 sectors (324.1 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1          128520         1156679   502.0 MiB   8300  Linux filesystem
   2         1156680         2184839   502.0 MiB   8300  Linux filesystem
   3         2184840         3212999   502.0 MiB   8200  Linux swap
   5         3341520         5012279   815.8 MiB   8300  Linux filesystem
   6         5140800         5269319   62.8 MiB    8300  Linux filesystem
   7         5397840         6425999   502.0 MiB   8300  Linux filesystem
   8         6554520       976751999   462.6 GiB   8300  Linux filesystem

Command (? for help): q
root@(none):/ # gdisk /dev/sdb
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.

Command (? for help): p
Disk /dev/sdb: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): F910D1B9-54D2-4EA4-AA5D-B1765BC47475
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 8-sector boundaries
Total free space is 3748181 sectors (1.8 GiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   5         3341520         5012279   815.8 MiB   8300  Linux filesystem
   6         5140800         5269319   62.8 MiB    8300  Linux filesystem
   7         5397840         6425999   502.0 MiB   8300  Linux filesystem
   8         6554520       976751999   462.6 GiB   8300  Linux filesystem

Command (? for help): q
root@(none):/ #
jungfichte
Donator VIP
Donator VIP
 
Posts: 37
Joined: Thu Nov 10, 2011 7:54 pm
Location: Dachau, Germany

Re: NAS doesn't boot after setup Raid

Postby Jocko » Mon Nov 21, 2016 7:58 pm

:scratch
At least that would mean the issue is not on the raid side.

Do you have a boot.log file on sda7 ?
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: NAS doesn't boot after setup Raid

Postby jungfichte » Mon Nov 21, 2016 8:02 pm

Do you have a boot.log file on sda7 ?

No:
Code: Select all
root@(none):/ # mkdir /sda7
root@(none):/ # mount /dev/sda7 /sda7
root@(none):/ # ls -l /sda7/boot.log
ls: /sda7/boot.log: No such file or directory
root@(none):/ #
jungfichte
Donator VIP
Donator VIP
 
Posts: 37
Joined: Thu Nov 10, 2011 7:54 pm
Location: Dachau, Germany

Re: NAS doesn't boot after setup Raid

Postby Jocko » Mon Nov 21, 2016 8:08 pm

So the bootloader still fails to handle the disk sda.

Now stop the NAS and try to load an external kernel with fvdw-sl console (action "External kernel, load and start"). You must select the kernel image UIMAGE-13142-2BIG1-6 in the subfolder firmware/2big1
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: NAS doesn't boot after setup Raid

Postby jungfichte » Mon Nov 21, 2016 8:16 pm

done.
The NAS is online
I have reached the webinterface

Code: Select all
root@LaCiePussy:/ # cat /boot.log
start boot log
detect and set platform
2big1
UIMAGE-3142-2BIG1-6
Current kernel: 3.14.2 #6 Sat Nov 29 22:15:32 CET 2014
2big1
 mount dev/pts
update dev nodes
booting using  root file system...
make dev node for buttons...
make dev node for tun device...
enable IP forwarding...
start buttons control daemon
device = 2big1
source = buttons-nwsp2
buttons-nwsp2 daemon started
Mon Nov 21 22:18:36 UTC 2016
create temporary passwd file
run udevstart to update dev nodes when necessary
inserting kernel modules:
modprobe: module 'xor.ko' not found
create temporary group file
configure loopback network interface
setting reboot and standby
2big1
rebootd-isp1
2big1
standbyd-isp1
starting php based setup routines step 1

 * Starting udevd...                                     [ OK ]
 * Found XML database configuration file...      [ OK ]
 * Finishing restore RAID devices...     [ OK ]
 * Updating Disks database...                    [ OK ]
 * Starting mount of volumes...
   - Mounting volume Vol-A:  [ OK ]
   - Mounting volume Vol-B:  [ OK ]
 * Finishing mount of volumes...                 [ OK ]
 * Generating Hosts File...                      [ OK ]
 * Configuring System Hostname...                [ OK ]
 * Configuring LAN interface...                  [ OK ]
 * Initializing Timezone...                      [ OK ]
 * Starting web server...                                [ OK ]
 * Starting mount of internal USB ...
 * Finishing mount internal USB ...      [ OK ]
 * Configuring Disks...                                  [ OK ]
 * Configuring Samba...                                  [ OK ]
 * Configuring System Users...
        Root password: use default password
        Set users, linux and samba accounts      [ 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 daemon update Hosts File...  [ OK ]
 * Starting mount of remote shares...
 * Finishing mount shares...                     [ OK ]
starting php based setup routines step banner


*** fvdw-sl NAS firmware
    This is fvdw-sl version: fvdw-sl 16.1
    built on: Oct 01 2015

    LAN IP address: 192.168.18.201 (static)

    Port configuration:

    LAN   -> eth0
php based setup routines finished
web permission on resolv.conf
set device tuning for dms performance
LED settings
else loop1 finished
rcS finished
root@LaCiePussy:/ #

Code: Select all
root@LaCiePussy:/ # 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>462.626209259</size>
                        <internal>true</internal>
                        <name>Disk-A</name>
                        <system>true</system>
                        <blockdev>/dev/sda</blockdev>
                        <diskid>9QM659QK</diskid>
                        <model> ST3500620AS</model>
                        <usb>false</usb>
                        <freesize>0</freesize>
                        <init>true</init>
                        <partitions>
                                <partition>
                                        <lvname>/dev/sda8</lvname>
                                        <color>#ed8326</color>
                                        <volid>1000</volid>
                                        <index>0</index>
                                        <size>462.626209259</size>
                                </partition>
                        </partitions>
                </disk>
                <disk>
                        <size>462.626209259</size>
                        <internal>true</internal>
                        <name>Disk-B</name>
                        <system>false</system>
                        <blockdev>/dev/sdb</blockdev>
                        <diskid>9QG7HFPZ</diskid>
                        <model> ST3500630AS</model>
                        <usb>false</usb>
                        <freesize>0</freesize>
                        <init>true</init>
                        <partitions>
                                <partition>
                                        <lvname>/dev/sdb8</lvname>
                                        <color>#8aab58</color>
                                        <volid>1001</volid>
                                        <index>0</index>
                                        <size>462.626209259</size>
                                </partition>
                        </partitions>
                </disk>
root@LaCiePussy:/ #

Code: Select all
root@LaCiePussy:/ # grep '<vol>' /etc/nas_conf_db.xml -A 12
                <vol>
                        <volid>1000</volid>
                        <md>/dev/sda8</md>
                        <fs>1000</fs>
                        <lastindex>1</lastindex>
                        <name>Vol-A</name>
                        <devices/>
                        <raidtype>single</raidtype>
                        <color>#ed8326</color>
                        <formatting>0</formatting>
                        <size>462.626209259</size>
                </vol>
                <vol>
                        <volid>1001</volid>
                        <md>/dev/sdb8</md>
                        <fs>1001</fs>
                        <lastindex>1</lastindex>
                        <name>Vol-B</name>
                        <devices/>
                        <raidtype>single</raidtype>
                        <color>#8aab58</color>
                        <formatting>0</formatting>
                        <size>462.626209259</size>
                </vol>
        </vols>
root@LaCiePussy:/ #

Code: Select all
root@LaCiePussy:/ # grep '<addonsvolume>' /etc/nas_conf_db.xml
                <addonsvolume>1000</addonsvolume>
root@LaCiePussy:/ #

Code: Select all
root@LaCiePussy:/ # ls -l /direct-usb
lrwxrwxrwx  1 root root 11 2016-11-21 22:19 /direct-usb -> /share/1000
root@LaCiePussy:/ #

Code: Select all
root@LaCiePussy:/ # ls -l /usr/local
lrwxrwxrwx  1 root root 23 2016-11-21 22:19 /usr/local -> /share/1000/fvdw/addons
root@LaCiePussy:/ #
Last edited by jungfichte on Mon Nov 21, 2016 8:23 pm, edited 1 time in total.
jungfichte
Donator VIP
Donator VIP
 
Posts: 37
Joined: Thu Nov 10, 2011 7:54 pm
Location: Dachau, Germany

Re: NAS doesn't boot after setup Raid

Postby Jocko » Mon Nov 21, 2016 8:21 pm

:thumbup
that would mean sda6 is corrupted! :scratch :scratch :scratch

So open a ssh window, post the previous outputs asked here viewtopic.php?f=29&t=2602&start=20#p24110(---edit--- as you have posted them on your previous) and also these ones
Code: Select all
mount
ls /share/1000
ls /share/1001
(which must list the created shares before your raid attempt
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: NAS doesn't boot after setup Raid

Postby jungfichte » Mon Nov 21, 2016 8:25 pm

Code: Select all
root@LaCiePussy:/ # mount
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,relatime,errors=continue,barrier=1,data=ordered)
none on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
none on /dev/pts type devpts (rw,relatime,mode=600)
/dev/sda5 on /rw_fs type ext3 (rw,noatime,errors=continue,barrier=1,data=ordered)
tmpfs on /rw_fs/tmp/usr/var type tmpfs (rw,relatime,size=5000k)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
/dev/sda8 on /share/1000 type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)
/dev/sdb8 on /share/1001 type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)
root@LaCiePussy:/ #

Code: Select all
root@LaCiePussy:/ # ls /share/1000
fvdw  lost+found  public
root@LaCiePussy:/ #

Code: Select all
root@LaCiePussy:/ # ls /share/1001
fvdw  lost+found
root@LaCiePussy:/ #
jungfichte
Donator VIP
Donator VIP
 
Posts: 37
Joined: Thu Nov 10, 2011 7:54 pm
Location: Dachau, Germany

Re: NAS doesn't boot after setup Raid

Postby Jocko » Mon Nov 21, 2016 8:29 pm

So check if fvdw on /share/1000 contains all your previous data.
if yes, remove the folder on /share/1001
Code: Select all
rm -r /share/1001/fvdw
then create again the share fvdw on Vol-A (as it should disappear)

otherwise check if fvdw on /share/1001 contains all your previous data.
if yes, remove the folder on /share/1000
Code: Select all
rm -r /share/1000/fvdw

then create again the share fvdw on Vol-B (as it should disappear)

With the share public on /share/1000, create it again a share public on Vol-A
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: NAS doesn't boot after setup Raid

Postby jungfichte » Mon Nov 21, 2016 8:43 pm

Vol-A should be /share/1000 right?
there is a share "fvdw" on /share/1000 but i can't open / or delete it
Code: Select all
root@LaCiePussy:/share/1000 # ls
fvdw  lost+found  public
root@LaCiePussy:/share/1000 # cd fvdw
-sh: cd: can't cd to fvdw
root@LaCiePussy:/share/1000 # rm -r /fvdw
rm: cannot remove `/fvdw': No such file or directory
root@LaCiePussy:/share/1000 #

--- edit
share "public" can be opened
Last edited by jungfichte on Mon Nov 21, 2016 8:51 pm, edited 1 time in total.
jungfichte
Donator VIP
Donator VIP
 
Posts: 37
Joined: Thu Nov 10, 2011 7:54 pm
Location: Dachau, Germany

PreviousNext

Return to Lacie 2Big Network vs1

Who is online

Users browsing this forum: No registered users and 3 guests