Error creating Raid 5

Re: Problems with raid5

Postby Jocko » Thu Sep 24, 2015 10:04 am

Sorry we posted in the same time...
and it is ok :-D
So now you must wait up to get a synchronized raid... As the next step you will need to restart the nas.

But now you can try to select the raid as new addons volume and posts
Code: Select all
cat /etc/nas_conf_db.xml| grep '<vol>' -C 11
cat /etc/nas_conf_db.xml| grep 'addonsvolume'
cat /rw_fs/etc/nas_conf_db.xml| grep '<vol>' -C 11
cat /rw_fs/etc/nas_conf_db.xml| grep 'addonsvolume'
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Problems with raid5

Postby b1gnas » Thu Sep 24, 2015 10:08 am

Code: Select all
root@fvdwsl-base:/ # cat /etc/nas_conf_db.xml| grep '<vol>' -C 11
                                <partition>
                                        <lvname>/dev/sde8</lvname>
                                        <color>#8c81ba</color>
                                        <volid>1100</volid>
                                        <index>0</index>
                                        <size>928.377857208</size>
                                </partition>
                        </partitions>
                </disk>
        </disks>
        <vols>
                <vol>
                        <volid>1000</volid>
                        <md>/dev/sda8</md>
                        <fs>1000</fs>
                        <lastindex>1</lastindex>
                        <name>Vol-A</name>
                        <devices/>
                        <raidtype>single</raidtype>
                        <color>#aca72b</color>
                        <formatting>0</formatting>
                        <size>928.377857208</size>
                </vol>
                <vol>
                        <volid>1100</volid>
                        <md>/dev/md0</md>
                        <fs>1100</fs>
                        <lastindex>1</lastindex>
                        <name>RD5-0</name>
                        <devices>/dev/sdb8 missing /dev/sdd8 /dev/sde8 </devices>
                        <raidtype>raid5</raidtype>
                        <color>#31f4e4</color>
                        <formatting>0</formatting>
                        <size>2785.13323975</size>
                </vol>
root@fvdwsl-base:/ # cat /rw_fs/etc/nas_conf_db.xml| grep '<vol>' -C 11
                                <partition>
                                        <lvname>/dev/sde8</lvname>
                                        <color>#8c81ba</color>
                                        <volid>1100</volid>
                                        <index>0</index>
                                        <size>928.377857208</size>
                                </partition>
                        </partitions>
                </disk>
        </disks>
        <vols>
                <vol>
                        <volid>1000</volid>
                        <md>/dev/sda8</md>
                        <fs>1000</fs>
                        <lastindex>1</lastindex>
                        <name>Vol-A</name>
                        <devices/>
                        <raidtype>single</raidtype>
                        <color>#aca72b</color>
                        <formatting>0</formatting>
                        <size>928.377857208</size>
                </vol>
                <vol>
                        <volid>1100</volid>
                        <md>/dev/md0</md>
                        <fs>1100</fs>
                        <lastindex>1</lastindex>
                        <name>RD5-0</name>
                        <devices>/dev/sdb8 missing /dev/sdd8 /dev/sde8 </devices>
                        <raidtype>raid5</raidtype>
                        <color>#31f4e4</color>
                        <formatting>0</formatting>
                        <size>2785.13323975</size>
                </vol>
root@fvdwsl-base:/ #
b1gnas
 
Posts: 145
Joined: Fri Apr 17, 2015 8:11 am

Re: Problems with raid5

Postby b1gnas » Thu Sep 24, 2015 10:13 am

Code: Select all
root@fvdwsl-base:/ # cat /etc/nas_conf_db.xml| grep 'addonsvolume'
                <addonsvolume>1100</addonsvolume>
root@fvdwsl-base:/ # cat /rw_fs/etc/nas_conf_db.xml| grep 'addonsvolume'
                <addonsvolume>1100</addonsvolume>
root@fvdwsl-base:/ #
b1gnas
 
Posts: 145
Joined: Fri Apr 17, 2015 8:11 am

Re: Problems with raid5

Postby Jocko » Thu Sep 24, 2015 10:16 am

Ok
Now, we must wait for getting a clean raid
For my knowledge, if you do
Code: Select all
echo 100000 > /proc/sys/dev/raid/speed_limit_max
do you get a faster speed?
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Problems with raid5

Postby b1gnas » Thu Sep 24, 2015 10:20 am

umh no... Always near 16000k/s

When recovey is finished, how can i add sda8? And do you think the speed will be the same or will fall down as always?
b1gnas
 
Posts: 145
Joined: Fri Apr 17, 2015 8:11 am

Re: Problems with raid5

Postby Jocko » Thu Sep 24, 2015 10:27 am

So it is a CPU limit.

I give you later the command, need before to fix this addonsvolume resetting after reboot.
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Problems with raid5

Postby b1gnas » Thu Sep 24, 2015 10:32 am

Ok... so let's wait

meanwhile... thanks for your precious support :hail
b1gnas
 
Posts: 145
Joined: Fri Apr 17, 2015 8:11 am

Re: Problems with raid5

Postby Jocko » Thu Sep 24, 2015 12:04 pm

I understand why the boot script resets the selected addons volume and it is a firmware bug :mrgreen:

Indeed with your posted new-addons.vol file, I see no technical share is moved on the new addons volume.
Technical shares are: plex-prog;pyload;tr-daemon;minidlna;twonkymedia;mt-daapd;mp3;tflux;oxylbox;cronjobs;mediatomb;motion-webcam;btsync;mldonkey;nzbget;owncloud;netatalk
Only two cases can explain this :
- You do not select the option 'Move the technical shares on the new volume'
- These shares are not yet created

The issue is the boot script keeps the selected add-ons volume only if it finds at least one technical share stored on the add-ons volume else it selects the system volume as add-on volume.

As there is no technical share on the raid volume the boot script selects again sda8. So it is a bad behaviour.

I go to send you a patch to fix it.
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Problems with raid5

Postby Jocko » Thu Sep 24, 2015 1:41 pm

In fact on your nas, there is no technical share and also you don't have yet created the share 'fvdw' (you lost it when you rewrote sda)

if fvdw share existed you would not have your issue :scratch

So attached a patch to fix it (and so you need to create the share fvdw...)
You do not have the required permissions to view the files attached to this post.
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Problems with raid5

Postby Jocko » Thu Sep 24, 2015 2:29 pm

I reloaded the patch file (I made a small change)
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

PreviousNext

Return to Lacie 5Big Network vs1

Who is online

Users browsing this forum: No registered users and 5 guests