[Solved] fvdw technical share with addons sub-folder

[Solved] fvdw technical share with addons sub-folder

Postby stamy » Tue Dec 22, 2015 9:35 am

First of all, many thank's for this great project that i discovered last week after my 5Big net2 disks were wiped by someone not knowing there is a kernel on it, and of course i was unable to use the NAS since then.

Now i installed your firmware 16.1 with the patches.
I had some hardware issues with a disk (smart short test was ok, but the 1 min test failed).

Before i figured out what was going on, i tried to create many times a RAID5 with the 5 disks, including /dev/sda.

I moved the fvdw tech share to RD5-0, but then i lost the raid and all the data stored on it. I also deleted the special "Dummy" user to "clean" the user list :)
Now that i lost the RAID content i also lost this special fvdw share.

How can i recreate this fvwd share ? When i try to create it as a normal share in the web interface i got an error message => Statut du système: Ne peut pas créer : fvdw (-1)
The french error message is "Unable to create : fvdw (1)"

Thank you for your help.
Last edited by stamy on Wed Dec 23, 2015 12:21 pm, edited 1 time in total.
stamy
Donator VIP
Donator VIP
 
Posts: 18
Joined: Fri Dec 18, 2015 11:09 pm

Re: fvdw technical share with addons sub-folder

Postby Jocko » Tue Dec 22, 2015 11:15 am

Hi stamy,

Need more information.

So can you explain in detail how do you move fvdw.

Why do you think your RAID5-0 volume is destroyed? What do you read in the disk setup menu about its status ? Please to post
Code: Select all
cat /proc/mdstat
grep 'md0' /proc/partitions
.
if md0 exists post also
Code: Select all
 mdadm --detail /dev/md0
and the output of the mount command.

Currently what is the selected addons volume (see the main setup menu) and post the outputs of
Code: Select all
ls -l /direct-usb /usr/local


stamy wrote:How can i recreate this fvwd share ? When i try to create it as a normal share in the web interface i got an error message => Statut du système: Ne peut pas créer : fvdw (-1)
The french error message is "Unable to create : fvdw (1)"
What is the error value ? -1 or 1 ? (-1 is not an expected error code :scratch )
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: fvdw technical share with addons sub-folder

Postby stamy » Tue Dec 22, 2015 12:58 pm

Hello,

thank you for your reply. I had some hardware failures and the raid was broken after a restart. Now the problem is solved, as i have done a low level format of the faulty disk, (/dev/sdd) which is now no more part in the new raid device.
So the current situation is that the new raid5 is up and running flawlessly.


Here are the answer of your questions:

To copye the tech shares, i followed the PDF tutorial "Tutorial to build a RAID 5 for fvdw.pdf" and the section "II. Create a raid 5 in two phases":

2) Copy data to the raid
- Select a new add-ons volume
In the setup menu, select the RD5-0 as add-ons volume: check the option “Move the technical shares on the new volume”, to move the required technical shares from Vol-A to RD5-0

root@lacie-rei:/bin # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
md0 : active raid5 sda8[0] sde8[4] sdc8[2] sdb8[1]
2921581056 blocks super 1.0 level 5, 64k chunk, algorithm 2 [4/4] [UUUU]
unused devices: <none>

root@lacie-rei:/bin # grep 'md0' /proc/partitions
9 0 2921581056 md0

root@lacie-rei:/bin # mdadm --detail /dev/md0
/dev/md0:
Version : 01.00.03
Creation Time : Mon Dec 21 05:33:03 2015
Raid Level : raid5
Array Size : 2921581056 (2786.24 GiB 2991.70 GB)
Device Size : 1947720704 (928.75 GiB 997.23 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Tue Dec 22 09:46:06 2015
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0

Layout : left-symmetric
Chunk Size : 64K

Name : 0
UUID : 2caf6107:3d889a8b:e5d606e6:f7dcf910
Events : 106

Number Major Minor RaidDevice State
0 8 40 0 active sync /dev/sda8
1 8 24 1 active sync /dev/sdb8
2 8 8 2 active sync /dev/sdc8
4 8 56 3 active sync /dev/sde8

root@lacie-rei:/bin # ls -l /direct-usb /usr/local
lrwxrwxrwx 1 root root 11 2015-12-22 08:28 /direct-usb -> /share/1003
lrwxrwxrwx 1 root root 23 2015-12-22 13:41 /usr/local -> /share/1003/fvdw/addons

root@lacie-rei:/share/1003 # df -h .
Filesystem Size Used Available Use% Mounted on
/dev/root 226.2M 142.7M 71.0M 67% /

The /dev/sdd has no filesystem yet, as i want to add it into the Raid5 volume. But before doing this i tried to check the smart command on this specific disk. The short test and the 1 minute test are ok now. But when i try the long smart test, it abort: "Extended offline Aborted by host 90% 34105 -"

The error code when trying to create the new share fvdw is "-1".

Thank you.
stamy
Donator VIP
Donator VIP
 
Posts: 18
Joined: Fri Dec 18, 2015 11:09 pm

Re: fvdw technical share with addons sub-folder

Postby Jocko » Tue Dec 22, 2015 1:25 pm

There are at least 2 wrong things :
Code: Select all
root@lacie-rei:/bin # ls -l /direct-usb /usr/local
lrwxrwxrwx 1 root root 11 2015-12-22 08:28 /direct-usb -> /share/1003
lrwxrwxrwx 1 root root 23 2015-12-22 13:41 /usr/local -> /share/1003/fvdw/addons
It should use 1100 instead of 1003 if you have selected the raid volume.

and
Code: Select all
root@lacie-rei:/share/1003 # df -h .
Filesystem Size Used Available Use% Mounted on
/dev/root 226.2M 142.7M 71.0M 67% /
Several lines are missing ...

So please to post
Code: Select all
mount
(already asked) and the boot.log file
Code: Select all
cat /boot.log
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: fvdw technical share with addons sub-folder

Postby stamy » Tue Dec 22, 2015 2:19 pm

Here are the results:

Code: Select all
root@lacie-rei:/ # 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/sda1 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/md0 on /share/1100 type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)
/dev/root on /lacie-boot type ext3 (rw,relatime,errors=continue,barrier=1,data=ordered)


Sorry i forgot boot.log on last post, so here it is:

Code: Select all
root@lacie-rei:/ # cat /boot.log
start boot log
detect and set platform
5big2
UIMAGE-3142-NWSP2CL-8
5big2
 mount dev/pts
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
Tue Dec 22 08:27:19 CET 2015
create temporary passwd file
run udevstart to update dev nodes when necessary
inserting kernel modules:
create temporary group file
configure loopback network interface
setting reboot and standby
5big2
rebootd-nwsp2
5big2
standbyd-nwsp2
start fan
fan5big daemon started
starting php based setup routines step 1

 * Starting udevd...                                     [ OK ]
 * Found XML database configuration file...      [ OK ]
 * Starting RAID monitor:                                [ OK ]
 * Starting restore RAID devices...
   - Assembling device /dev/md0:  [ OK ]
 * Finishing restore RAID devices...     [ OK ]
 * Updating Disks database...
Warning: Illegal string offset 'share' in /etc/finc/dm_update_single_db.finc on line 241

Warning: Illegal string offset 'user' in /etc/finc/dm_update_single_db.finc on line 243

Warning: Invalid argument supplied for foreach() in /etc/finc/dm_update_single_db.finc on line 265

Warning: Invalid argument supplied for foreach() in /etc/finc/dm_update_single_db.finc on line 272

Warning: Invalid argument supplied for foreach() in /etc/finc/dm_update_single_db.finc on line 325

Warning: Invalid argument supplied for foreach() in /etc/finc/dm_update_single_db.finc on line 335

Warning: Invalid argument supplied for foreach() in /etc/finc/dm_update_single_db.finc on line 445

Warning: Invalid argument supplied for foreach() in /etc/finc/dm_update_single_db.finc on line 452

Warning: Invalid argument supplied for foreach() in /etc/finc/dm_update_single_db.finc on line 492

Warning: Invalid argument supplied for foreach() in /etc/finc/dm_update_single_db.finc on line 501
                         [ OK ]
 * Starting mount of volumes...
   - Mounting volume Vol-D:  [ Fail ]
   - Mounting volume RD5-0:  [ OK ]
 * Finishing mount of volumes...                 [ Fail ]

Warning: Illegal string offset 'share' in /etc/finc/exthddfunc_wait_allmountExtHdd.finc on line 104

Warning: Invalid argument supplied for foreach() in /etc/finc/exthddfunc_wait_allmountExtHdd.finc on line 104
 * Generating Hosts File...                      [ OK ]
 * Configuring System Hostname...                [ OK ]
 * Configuring LAN interface...                  [ OK ]
 * Initializing Timezone...                      [ OK ]
 * Starting web server...
Warning: Illegal string offset 'user' in /etc/finc/sysfunc_password_configure.finc on line 34

Warning: Invalid argument supplied for foreach() in /etc/finc/sysfunc_password_configure.finc on line 35
                                 [ 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 patched
    built on: Oct 01 2015

    LAN IP address: 10.23.148.132 (DHCP)

    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
stamy
Donator VIP
Donator VIP
 
Posts: 18
Joined: Fri Dec 18, 2015 11:09 pm

Re: fvdw technical share with addons sub-folder

Postby Jocko » Tue Dec 22, 2015 3:10 pm

Well, I think your nas database is corrupted (or you delete all shares):
it seems that there is no share set (and also user). The firmware can not handle this configuration !

As no share is set, even if you selected the raid volume as addons volume, the firmware selects the last single disk as addons volume (sdd8 <=> 1003). But this disk has an issue
Code: Select all
 Mounting volume Vol-D:  [ Fail ]
, you can not create fvdw because the firmware fails to create its folder on sdd8.

First we try to restore your nas database:
- As md0 is mounted, post
Code: Select all
ls -l /share/1100
and
Code: Select all
grep sharename -B 1 -A 20 /etc/nas_conf_db.xml
(later I will send you a command to restore the shares)
- See if you have some user accounts
Code: Select all
grep '</shares>' -A 999 /etc/nas_conf_db.xml|grep username -B 1 -A 4
. If not try to create at least one.
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: fvdw technical share with addons sub-folder

Postby stamy » Tue Dec 22, 2015 3:21 pm

Here are the results:
Code: Select all
root@lacie-rei:/ # ls -l /share/1100
total 16
drwx------  2 root root 16384 2015-12-22 08:21 lost+found


The result of second command is empty:

Code: Select all
root@lacie-rei:/ # grep sharename -B 1 -A 20 /etc/nas_conf_db.xml
root@lacie-rei:/ #


Third command is empty too:

Code: Select all
root@lacie-rei:/ # grep '</shares>' -A 999 /etc/nas_conf_db.xml|grep username -B 1 -A 4
root@lacie-rei:/ #


I will try to create an account when i have a few minutes and i will let you know then.
stamy
Donator VIP
Donator VIP
 
Posts: 18
Joined: Fri Dec 18, 2015 11:09 pm

Re: fvdw technical share with addons sub-folder

Postby Jocko » Tue Dec 22, 2015 3:29 pm

So you have no data on your raid.
Try to create on RD5-0 a share (for example public).

Then go to the main setup menu (recheck RD5-0 if it is no longer selected as the addons volume) and reboot the NAS.

After rebooting, post again
Code: Select all
cat /boot.log
and
Code: Select all
ls -l /direct-usb /usr/local
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: fvdw technical share with addons sub-folder

Postby stamy » Wed Dec 23, 2015 9:20 am

Hello,

i have successfully created a user "dymmy" as follow:

user: dummy
password: dummy
description: dummy
home dir: /share/1003/public/
no email

Then i was trying to create a share "public" and i got still the same error (-1)
I reboot the NAS, retry, same problem creating a share.

Results:

Code: Select all
root@lacie-rei:/ # cat /boot.log
start boot log
detect and set platform
5big2
UIMAGE-3142-NWSP2CL-8
5big2
 mount dev/pts
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
Wed Dec 23 10:09:55 CET 2015
create temporary passwd file
run udevstart to update dev nodes when necessary
inserting kernel modules:
create temporary group file
configure loopback network interface
setting reboot and standby
5big2
rebootd-nwsp2
5big2
standbyd-nwsp2
start fan
fan5big daemon started
starting php based setup routines step 1

 * Starting udevd...                                     [ OK ]
 * Found XML database configuration file...      [ OK ]
 * Starting RAID monitor:                                [ OK ]
 * Starting restore RAID devices...
   - Assembling device /dev/md0:  [ OK ]
 * Finishing restore RAID devices...     [ OK ]
 * Updating Disks database...
Warning: Illegal string offset 'share' in /etc/finc/dm_update_single_db.finc on                                                                                                                                                              line 241

Warning: Invalid argument supplied for foreach() in /etc/finc/dm_update_single_d                                                                                                                                                             b.finc on line 265

Warning: Invalid argument supplied for foreach() in /etc/finc/dm_update_single_d                                                                                                                                                             b.finc on line 325

Warning: Invalid argument supplied for foreach() in /etc/finc/dm_update_single_d                                                                                                                                                             b.finc on line 445

Warning: Invalid argument supplied for foreach() in /etc/finc/dm_update_single_d                                                                                                                                                             b.finc on line 492
                         [ OK ]
 * Starting mount of volumes...
   - Mounting volume Vol-D:  [ Fail ]
   - Mounting volume RD5-0:  [ OK ]
 * Finishing mount of volumes...                 [ Fail ]

Warning: Illegal string offset 'share' in /etc/finc/exthddfunc_wait_allmountExtH                                                                                                                                                             dd.finc on line 104

Warning: Invalid argument supplied for foreach() in /etc/finc/exthddfunc_wait_al                                                                                                                                                             lmountExtHdd.finc on line 104
 * 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 patched
    built on: Oct 01 2015

    LAN IP address: 10.23.148.132 (DHCP)

    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


Code: Select all
root@lacie-rei:/ # ls -l /direct-usb /usr/local
lrwxrwxrwx  1 root root 11 2015-12-23 10:10 /direct-usb -> /share/1003
lrwxrwxrwx  1 root root 23 2015-12-23 10:12 /usr/local -> /share/1003/fvdw/addons
stamy
Donator VIP
Donator VIP
 
Posts: 18
Joined: Fri Dec 18, 2015 11:09 pm

Re: fvdw technical share with addons sub-folder

Postby Jocko » Wed Dec 23, 2015 9:46 am

Hi stamy,

The issue is the addons volume is still sdd8 which is a fail disk. So you can never create a share on it. You should try to create a share only on the raid volume

Can you post a screen capture of the main setup menu with its addons volume tab?
and also
Code: Select all
grep addonsvol /etc/nas_conf_db.xml
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Next

Return to Lacie 5big Network vs2

Who is online

Users browsing this forum: No registered users and 8 guests