Encrypted 2-drive mirrored RAID setup

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Encrypted 2-drive mirrored RAID setup

Postby technosf » Wed Feb 29, 2012 7:00 am

I would like to use a couple of the 2T slow green drives in a mirror, but need recommendation on and enclosure and connection. This would be for a solid encrypted 2-drive mirrored RAID setup I can use with my Pogo V2, or GoFlex etc.

Configuration questions that have crossed my mind are:
* NAS, or connected to the plug server (via USB)
* RAID on the enclose or soft RAID via the server
* AES encryption
* Disk services running (samba, Torrent etc)
* Low power (preferably with the option to power down the drives on a schedule/timeout)
* Best plug to use, if needed.


Has anyone gone through this exercise and have any lessons learned or recommendations?

TIA
[size=85] MochaBin 5G || NSA325 [/size]
technosf
 
Posts: 147
Joined: Sat Jan 08, 2011 10:54 pm

Re: Encrypted 2-drive mirrored RAID setup

Postby WarheadsSE » Wed Feb 29, 2012 1:17 pm

Unless the disks are in the same enclosure, don't do soft raid across USB :|
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Encrypted 2-drive mirrored RAID setup

Postby fovea1959 » Tue Sep 04, 2012 7:52 pm

$this->bbcode_second_pass_quote('', 'U')nless the disks are in the same enclosure, don't do soft raid across USB


why not? I'm not disagreeing, just curious what the reason was....
fovea1959
 
Posts: 20
Joined: Thu Jul 28, 2011 4:24 am

Re: Encrypted 2-drive mirrored RAID setup

Postby mastashake57 » Tue Sep 04, 2012 8:59 pm

WarheadSE, going with your reply, would this enclosure work?

http://www.newegg.com/Product/Product.a ... -_-NA-_-NA

I want to RAID1 a couple of drives I have laying around and this drive provides a RAID enclosure with USB accessibility. Would this work?
mastashake57
 
Posts: 17
Joined: Tue Sep 04, 2012 8:56 pm

Re: Encrypted 2-drive mirrored RAID setup

Postby WarheadsSE » Tue Sep 04, 2012 11:41 pm

It looks like that should work. It has the benefit of handling the RAID'ing for you.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Encrypted 2-drive mirrored RAID setup

Postby mastashake57 » Sat Sep 08, 2012 4:48 am

$this->bbcode_second_pass_quote('WarheadsSE', 'I')t looks like that should work. It has the benefit of handling the RAID'ing for you.


Just wanted to give those that are interested a heads up that it, indeed, does work like a champ.
RAID1 with 2 - 320GB WD Scorpio Blue drives humming along. Let the fun begin.
mastashake57
 
Posts: 17
Joined: Tue Sep 04, 2012 8:56 pm

Re: Encrypted 2-drive mirrored RAID setup

Postby sambul13 » Sat Sep 08, 2012 11:57 am

Interesting...pls give more details. I'm curious, what you're using the RAID for and how often? Is the enclosure or drives in it getting hot over time?

What Pogoplug model do you use with it? What file system the drives are formatted to? Can you measure read & write speed to the RAID - hook it directly to your PC and copy large files from it with TeraCopy, or more accurately measure with CrystalDiskMark? Then hook it to Pogo and check speed with:

$this->bbcode_second_pass_code('', 'hdparm -tT /dev/sda # read speed
dd count=100 bs=1M if=/dev/zero of=/media/USB_RAID/test oflag=asynk # write speed')

Can use Iozone, Iperf or dbench to measure read & write speed over NFS or Samba. What's the plug processor load when reading from and writing to the RAID - you can see it with Htop?
Last edited by sambul13 on Sat Sep 15, 2012 10:28 pm, edited 1 time in total.
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: Encrypted 2-drive mirrored RAID setup

Postby mastashake57 » Sat Sep 08, 2012 8:15 pm

$this->bbcode_second_pass_quote('sambul13', 'I')nteresting...pls give more details. I'm curious, what you're using the RAID for and how often? Is the enclosure or drives in it getting hot over time?

What Pogoplug model do you use with it? What file system the drives are formatted to? Can you measure read & write speed to the RAID - hook it directly to your PC and copy large files from it with TeraCopy, or more accurately measure with CrystalDiskMark? Then hook it to Pogo and check speed with:

$this->bbcode_second_pass_code('', 'hdparm -tT /dev/sda # read speed
dd count=100 bs=1M if=/dev/zero of=/media/USB_RAID/test oflag=synk # write speed')

Can use Iozone, Iperf or dbench to measure read & write speed over NFS or Samba. What's the plug processor load when reading from and writing to the RAID - you can see it with Htop?


You've given me quite the workload but not a problem. I'm in the beginning stages of testing my new setup out. Let me try to answer what I can.

I have a Pogoplug V2 E02 and this Pogoplug will serve all my web content and media content. A small shout-out, it will host my web site (www.twobitcoder.com) and will also be my streaming server via Subsonic. The RAID is configured for mirroring.

Due to the somewhat heavy load it will endure, it as been partitioned as such:

$this->bbcode_second_pass_code('', ' Device Boot Start End Blocks Id System
/dev/sda1 63 4016249 2008093+ 83 Linux
/dev/sda2 4016250 5028344 506047+ 82 Linux swap / Solaris
/dev/sda3 5028345 625137344 310054500 83 Linux')

All the partitions are EXT3.

It's powered by 2 Western Digital Scorpio Blue drives, WD3200BEVT (if I remember correctly). This server is on 24/7/365. Let me keep track of this thread and I'll post back performance results as I work through my setups.
mastashake57
 
Posts: 17
Joined: Tue Sep 04, 2012 8:56 pm
Top

Re: Encrypted 2-drive mirrored RAID setup

Postby mastashake57 » Sat Sep 08, 2012 8:17 pm

I popped a quick test to get things started.

$this->bbcode_second_pass_code('', '# hdparm -tT /dev/sda

/dev/sda:
Timing cached reads: 516 MB in 2.00 seconds = 258.05 MB/sec
Timing buffered disk reads: 84 MB in 3.01 seconds = 27.92 MB/sec')
mastashake57
 
Posts: 17
Joined: Tue Sep 04, 2012 8:56 pm

Re: Encrypted 2-drive mirrored RAID setup

Postby mastashake57 » Mon Sep 10, 2012 4:04 pm

Some more tests...

$this->bbcode_second_pass_code('', '[root@pogoweb ~]# dd count=100 bs=1M if=/dev/zero of=/srv/test oflag=sync
100+0 records in
100+0 records out
104857600 bytes (105 MB) copied, 13.5831 s, 7.7 MB/s

[root@pogoweb ~]# rm /srv/test

[root@pogoweb ~]# dd count=1000 bs=1M if=/dev/zero of=/srv/test oflag=sync
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB) copied, 74.4073 s, 14.1 MB/s

[root@pogoweb ~]# rm /srv/test

[root@pogoweb ~]# dd count=10000 bs=1M if=/dev/zero of=/srv/test oflag=sync
10000+0 records in
10000+0 records out
10485760000 bytes (10 GB) copied, 754.853 s, 13.9 MB/s

')
mastashake57
 
Posts: 17
Joined: Tue Sep 04, 2012 8:56 pm

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 5 guests