[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Post Reply 
[200] C200 and software raid
12-01-2011, 06:37 PM
Post: #1
C200 and software raid
Hello Guys,

I'm planning to get a second hdisk into my C200. I would like to keep my data safer as i have almost 1.5TB on it already and i do not want to loose in case of a hdd crash/damage. Therefore i would like to setup a RAID1 mirror on the C200.

Can somebody tell me if the support for raid1 is built into the factory default kernel?
I have cross-compiled mdadm and trying to create a raid1 array but i'm getting the following message:

Code:
C200[share]# ./mdadm --create /dev/md0 --level=raid1 --raid-devices=1 /dev/sda3 --force
mdadm: /dev/sda3 appears to contain an ext2fs file system
    size=1953504K  mtime=Sun Nov 20 11:23:14 2011
mdadm: Note: this array has metadata at the start and
    may not be suitable as a boot device.  If you plan to
    store '/boot' on this device please ensure that
    your boot-loader understands md/v1.x metadata, or use
    --metadata=0.90
Continue creating array? yes
mdadm: unexpected failure opening /dev/md0

C200[share]# ls -l /dev/md0
brw-------    1 root     root       9,   0 Dec  1 18:25 /dev/md0

I have compiled some dm-mod.ko md.ko kernel modules but it fails to load as it is saying in the dmesg like this:

Quote:raid1: exports duplicate symbol dm_unregister_target (owned by kernel)
raid1: exports duplicate symbol dm_register_target (owned by kernel)
raid1: exports duplicate symbol dm_io (owned by kernel)
raid1: exports duplicate symbol dm_io_client_destroy (owned by kernel)
raid1: exports duplicate symbol dm_io_client_resize (owned by kernel)

For me it looks like that the RAID support is built in to the kernel. But why mdadm can not handle it then? Maybe partial support is only built in?
Find all posts by this user
Add Thank You Quote this message in a reply
12-02-2011, 07:44 AM
Post: #2
RE: C200 and software raid
question is... will it still be a functional mediaplayer if you get the software raid working?
The bus disk and network I/O has always been minimal with a little capacity over the BluRay I/O speed.
Would you want to split this limited capacity over two disk and if you succeed can it still play back a BluRay ISO.
Why raid? you put content on a disk and it sits there static until at some point you decide to delete it.
Raid is good to keep you data safe in a dynamic disk usage.

I would say just run a backup to a USB disk in the time your not watching.
Sort of after you finished watching select "run incremental backup" to destination:.....


PCH-A100/A210/C200/A400 500GB EXT3 HDD<-->HDMIv1.3<-->Onkyo TX-NR1010<-->HDMIv1.3<-->Panasonic TX-P46S10
13 NTFS USB drives on 3 hubs attached to the A300, 3 Seagate blackarmour NAS 3TB


The inability to setup and configure the NMT should not be disguised as a defect of the box
Find all posts by this user
Add Thank You Quote this message in a reply
12-30-2011, 11:30 AM
Post: #3
RE: C200 and software raid
finally i managed to work raid1 on my nmt c200 Smile At the moment still with one disk (degraded array), but i will do some tests to examine the speed as soon as i will buy/get my second 1.5T harddisk Wink

Code:
C200[~]# lsmod |grep raid1
raid1 34816 1 - Live 0xc02a8000
md_mod 106176 1 raid1, Live 0xc02c0000

Code:
sh-3.00# ./mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda3 missing
mdadm: /dev/sda3 appears to contain an ext2fs file system
    size=1953504K  mtime=Fri Dec 30 11:05:07 2011
mdadm: /dev/sda3 appears to be part of a raid array:
    level=raid1 devices=2 ctime=Fri Dec 30 11:18:56 2011
mdadm: Note: this array has metadata at the start and
    may not be suitable as a boot device.  If you plan to
    store '/boot' on this device please ensure that
    your boot-loader understands md/v1.x metadata, or use
    --metadata=0.90
Continue creating array? y
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md0 started.

Code:
C200[~]# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sda3[0]
      1952468 blocks super 1.2 [2/1] [U_]

unused devices: <none>

Code:
C200[~]# /share/raid/mdadm/mdadm --detail /dev/md0
/dev/md0:
        Version : 1.2
  Creation Time : Fri Dec 30 11:18:56 2011
     Raid Level : raid1
     Array Size : 1952468 (1907.03 MiB 1999.33 MB)
  Used Dev Size : 1952468 (1907.03 MiB 1999.33 MB)
   Raid Devices : 2
  Total Devices : 1
    Persistence : Superblock is persistent

    Update Time : Fri Dec 30 11:19:20 2011
          State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
  Spare Devices : 0

           Name : C200:0  (local to host C200)
           UUID : 9dfdec93:ed7a62e6:4028ddb9:e90d7643
         Events : 2

    Number   Major   Minor   RaidDevice State
       0       8        3        0      active sync   /dev/sda3
       1       0        0        1      removed
Find all posts by this user
Add Thank You Quote this message in a reply
01-16-2012, 03:37 PM (This post was last modified: 01-16-2012 04:17 PM by wye.)
Post: #4
RE: C200 and software raid
I'm happy to see this is possible, I'm looking forward to create a raid0 (stripping) on a C series myself. My goal is to maximize local throughput in order to minimize the time spent with PAR repairs and extracting/playing RAR archives. Storage size or error correction does not apply to my needs, since I don't keep movies after I see them.

BTW, anyone tried toying around with 2 fast SSDs in a strip raid on C series? I wonder what are the limitation of the SATA controller that popcorn uses. The reason why I'm asking is avoid buying too fast SSDs that would be over the limit of the controller and thus be wasted. E.g. on my PC the default ICH0R controller on the X58 mobo limits me to around 650 MBytes / sec (its a controller specific global limitation, not SATA 1/2/3 limit). Anyone knows the name of the SATA controller chip for C-200 or C-300?

Also, how does popcorn handle downloading from usenet in background while a movie is playing? It it working at all? If yes, does it throttle CPU and I/O priority on the usenet client to avoid interrupting playback?

Thanks.

Just a little update from the research I've done: it looks like the SATA support is embedded inside the Sigma SoC. According to http://www.sigmadesigns.com/uploads/docu...40_br.pdf, it says its SATA II, but only "1.5 Gbps" (probably per channel). That is a bit odd, since SATA 1 is 1.5 Gbps per channel, and SATA II is 3 Gbps per channel.
Find all posts by this user
Add Thank You Quote this message in a reply
01-17-2012, 02:06 PM
Post: #5
RE: C200 and software raid
Anyone with a SSD inside the popcorn hour is willing to do a "hdparm -t" to measure its local speed?
Find all posts by this user
Add Thank You Quote this message in a reply
03-20-2012, 10:17 PM (This post was last modified: 03-20-2012 10:27 PM by xray.)
Post: #6
RE: C200 and software raid
Finally i got a second HDD and did some measurements.

Disk write speed to RAID1 md device:

Code:
C200[mnt]# /usr/local/bin/dd if=/dev/zero of=/tmp/mnt/700mb count=1400k
1433600+0 records in
1433600+0 records out
734003200 bytes (734 MB) copied, 66.7269 s, 11.0 MB/s
C200[mnt]# /usr/local/bin/dd if=/dev/zero of=/tmp/mnt/700mb count=1400k
1433600+0 records in
1433600+0 records out
734003200 bytes (734 MB) copied, 66.6854 s, 11.0 MB/s
C200[mnt]# /usr/local/bin/dd if=/dev/zero of=/tmp/mnt/700mb count=1400k
1433600+0 records in
1433600+0 records out
734003200 bytes (734 MB) copied, 66.4996 s, 11.0 MB/s

So as you can see the average disk write speed to RAID1 md device is 11MB/s.

Disk write speed to single SATA device:

Code:
C200[mnt]# /usr/local/bin/dd if=/dev/zero of=/share/700mb count=1400k
1433600+0 records in
1433600+0 records out
734003200 bytes (734 MB) copied, 62.2818 s, 11.8 MB/s
C200[mnt]# /usr/local/bin/dd if=/dev/zero of=/share/700mb count=1400k
1433600+0 records in
1433600+0 records out
734003200 bytes (734 MB) copied, 63.3755 s, 11.6 MB/s
C200[mnt]# /usr/local/bin/dd if=/dev/zero of=/share/700mb count=1400k
1433600+0 records in
1433600+0 records out
734003200 bytes (734 MB) copied, 61.6711 s, 11.9 MB/s

Average disk write speed to single SATA disk: 11,76 MB/s.

My conclusion is that there is no significant speed differencies between RAID1 and single disk but wirte to RAID1 is little bit slower.


Disk read test.

Read from single SATA disk:

Code:
C200[mnt]# /usr/local/bin/dd if=/share/700mb of=/dev/null count=1400k
1433600+0 records in
1433600+0 records out
734003200 bytes (734 MB) copied, 15.0909 s, 48.6 MB/s
C200[mnt]# /usr/local/bin/dd if=/share/700mb of=/dev/null count=1400k
1433600+0 records in
1433600+0 records out
734003200 bytes (734 MB) copied, 14.875 s, 49.3 MB/s
C200[mnt]# /usr/local/bin/dd if=/share/700mb of=/dev/null count=1400k
1433600+0 records in
1433600+0 records out
734003200 bytes (734 MB) copied, 15.1397 s, 48.5 MB/s

Avg.: 48,8 MB/s

Read from RAID1 md device:

Code:
C200[mnt]# /usr/local/bin/dd if=/tmp/mnt/700mb of=/dev/null count=1400k
1433600+0 records in
1433600+0 records out
734003200 bytes (734 MB) copied, 15.9983 s, 45.9 MB/s
C200[mnt]# /usr/local/bin/dd if=/tmp/mnt/700mb of=/dev/null count=1400k
1433600+0 records in
1433600+0 records out
734003200 bytes (734 MB) copied, 15.8117 s, 46.4 MB/s
C200[mnt]# /usr/local/bin/dd if=/tmp/mnt/700mb of=/dev/null count=1400k
1433600+0 records in
1433600+0 records out
734003200 bytes (734 MB) copied, 15.8919 s, 46.2 MB/s

Avg.: 46,16 MB/s



Both test performed with:

WD WD15EARS + SAMSUNG HM160HI (2G partition in SW RAID1)
Find all posts by this user
Add Thank You Quote this message in a reply
11-16-2012, 05:39 PM (This post was last modified: 11-16-2012 10:57 PM by seba0902.)
Post: #7
RE: C200 and software raid
Anyone would help me of setting up this?I have 2 hdd's of 1tb and need to explain me how to do it? I want help in installing mdadm with telnet and about configuring is not a problem,just see mdadm up and runing.Thanks in advance
Find all posts by this user
Add Thank You Quote this message in a reply
11-17-2012, 09:50 AM
Post: #8
RE: C200 and software raid
I tried to install but no results,Im also newbie at this,get the folowing error:
Code:
sh-3.00# opkg update

sh-3.00# opkg install mdadm
Collected errors:
* opkg_install_cmd: Cannot install package mdadm.
.
Collected errors:
* deb_extract: /tmp/opkg-esRkOw/mdadm-0.7.1.tar.bz2: invalid magic
* pkg_init_from_file: Failed to extract control file from /tmp/opkg-esRkOw/mdadm-0.7.1.tar.bz2.
Any help please?
Find all posts by this user
Add Thank You Quote this message in a reply
11-17-2012, 06:52 PM
Post: #9
RE: C200 and software raid
I have ended up by starting installing mdadm.mips.ipk and when opkg says that missing dependency libc6 I download it and install and now I get the folowing error:
Code:
sh-3.00# opkg update
opkg: error while loading shared libraries: /usr/local/lib/libc.so.6: ELF file data encoding not little-endian
Any suggestions?Thanks in advance
Find all posts by this user
Add Thank You Quote this message in a reply
11-17-2012, 11:18 PM
Post: #10
RE: C200 and software raid
It seems like this forum is dead...I will post anyway.After I get this error I manage to reformat my harddrive and reinstall nmt apps and now i get the folowing error
Code:
sh-3.00# opkg install mdadm_3.1.4-r1_mips.ipk
Installing mdadm (3.1.4-r1) to root...
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for mdadm:
*      libc6 (>= 2.12) *
* opkg_install_cmd: Cannot install package mdadm.
sh-3.00# opkg install libc6
Package libc6 (2.8-1) installed in root is up to date.
I have downloaded mdadm with wget and when I try to install give me this.
Any help would be apreciate,thanks in advance
Find all posts by this user
Add Thank You Quote this message in a reply
11-18-2012, 03:35 AM
Post: #11
RE: C200 and software raid
it's also a topic with not that many people interested in it. perhaps you can try to pm the people that originally made it, that would email them to check the forum
Find all posts by this user
Add Thank You Quote this message in a reply
11-18-2012, 10:16 AM
Post: #12
RE: C200 and software raid
Thank you,I will do that
Find all posts by this user
Add Thank You Quote this message in a reply
11-19-2012, 01:42 PM
Post: #13
RE: C200 and software raid
I'll give it a try soon, and it may take a while, as it involves kernel modules.

Sriram
C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730
Find all posts by this user
Add Thank You Quote this message in a reply
11-19-2012, 05:08 PM (This post was last modified: 11-19-2012 07:02 PM by seba0902.)
Post: #14
RE: C200 and software raid
Thank you, I will wait for it,It would be also nice to have it via OPKG.
Find all posts by this user
Add Thank You Quote this message in a reply
11-19-2012, 08:41 PM
Post: #15
RE: C200 and software raid
Also maybe xray would like to share how has he do it?
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [200] Airplay server for C200 and A100 popcornmix 335 140,612 Yesterday 11:01 PM
Last Post: jreijling
  [100/200/300/400] Community Software Installer 2.7.4.0 ** UPDATED MAR 18th 2013** jhmiller 292 23,290 Yesterday 04:35 PM
Last Post: cerdeira
  Is there a FTP CLIENT i can install on my C200? parpagnas 0 111 05-19-2013 12:45 PM
Last Post: parpagnas
  [400] how to convert scripts from c200 (html+php) to a400 (javascript or bash or ???) ? dmhwsm 0 443 02-10-2013 05:39 PM
Last Post: dmhwsm
  [200] Using PopcornHour C200 as frontend for MythTV/MythWeb schaumburg 13 6,861 01-01-2013 01:02 AM
Last Post: flitter
  [200] Compiling SqueezeSlave for C200 papaiannis 15 3,640 12-21-2012 04:54 PM
Last Post: papaiannis
  [200] [CSI] Community Software Installer 2.7.2 ** UPDATED DEC 28th 2011 ** Ger Teunis 794 185,271 12-21-2012 10:23 AM
Last Post: werner
  [200] Network command for shut down on C200 JamesTF 6 1,456 11-14-2012 09:24 PM
Last Post: opfeifer
  [200] Community Software Installer Wont Find FTP When Trying To Install djbboy 18 7,814 10-29-2012 11:59 PM
Last Post: cedeka
  [300] NMT community software installer styopa 4 2,553 10-21-2012 10:21 AM
Last Post: styopa

Forum Jump: