RAID1 on linux with mdadm – Part2

Continued from RAID1 on linux with mdadm – Part1:

Performance results

Without any encryption

$time sudo dd if=/dev/zero of=testfile bs=1G count=10
10+0 records in
10+0 records out
10737418240 bytes (11 GB) copied, 77.2889 s, 139 MB/s

real 1m17.517s
user 0m0.000s
sys 0m22.230s

Truecrypt AES partition

$ time sudo dd if=/dev/zero of=testfile bs=1G count=10
10+0 records in
10+0 records out
10737418240 bytes (11 GB) copied, 78.6724 s, 136 MB/s

real 1m18.837s
user 0m0.000s
sys 0m21.750s

Mark listed device as faulty and remove

This will mark /dev/sdb1 and /dev/sdb2 as faulty devices and will remove them from the array.

$sudo mdadm /dev/md_d0 --manage --fail /dev/sdb1 --remove /dev/sdb1
$sudo mdadm /dev/md_d1 --manage --fail /dev/sdb2 --remove /dev/sdb2

Continue reading “RAID1 on linux with mdadm – Part2”

MediaWiki Syntax highlighting for gedit

Reference:
http://en.wikipedia.org/wiki/Wikipedia:Text_editor_support#gedit

$cd /tmp && $wget http://www.jpfleury.net/site/fichiers/gedit-mediawiki/gedit-mediawiki.zip
$unzip gedit-mediawiki.zip
$mkdir -p ~/.local/share/gtksourceview-2.0/language-specs/
$cp gedit-mediawiki/mediawiki.lang ~/.local/share/gtksourceview-2.0/language-specs/

RAID1 on linux with mdadm – Part1

Due to time restriction, I’m putting a pause to the last two tests of  FakeRAID on ubuntu using dmraid – Part3 and going ahead with software RAID for the next testing phase:

2 HDDs x 1TB each – WD Caviar Black

Ist test:

2Partitions x 493G
RAID1
EXT4/XFS

Second test:

2Partitions x 493G
LVM over RAID1
EXT4/XFS

Third test:

2Partitions x 493G
Encrypted LVM over RAID1
EXT4/XFS

Fourth test:

2Partitions x 493G
Truecrypt partition on top of LVM over RAID1
EXT4/XFS

Continue reading “RAID1 on linux with mdadm – Part1”

FakeRAID on ubuntu using dmraid – Part3

Continued from FakeRAID on ubuntu using dmraid – Part2

As mentioned in the previous post, I first searched for some windows based application which can be used to rebuild/sync the RAID-SET. Found AMD RAIDXpert.

After installation, I was able to access the RAIDXpert Management Console by going to https://localhost:8443/amd/screen.jsp in the browser window.

As soon as I logged into the Management Console using default admin/admin, I first changed the password(although this machine is sitting behind NAT) and then went to the Logical Drive View >> Logical Drive 1 >> Synchronization Tab and selected ‘Redundancy Check’ from the drop down box:

but it gave me the following error:

RAIDXpert_redundancy_check_rejected

I tried to look for some other options and found that ‘Rebuild’, ‘Initialization’ and ‘Activate’ buttons were faded: (Possibly, this only works if the RAID-SET has been created using this tool – didn’t care to read the manual at least for now..)

Continue reading “FakeRAID on ubuntu using dmraid – Part3”

FakeRAID on ubuntu using dmraid – Part2

Continued from FakeRAID on ubuntu using dmraid

This FakeRAID setup seems to be reliable in theory but I’m still working on scenario where I can actually test how things will work if any of my HDD fails. Adding another HDD will allow me to rebuild(at least that’s what’s written in the MB manual) the RAID-SET but trying to do the same using dmraid resulted in the following

$sudo dmraid -S -M /dev/sdb
ERROR: format handler string is NULL
ERROR: unknown format type: (null)
ERROR: metadata_handler() is not supported in "pdc" format

Promise FastTrack format is not supported by dmraid. Not sure if ISW(Intel Software RAID) is supported by the RAID Controller(AMD SB850 controller) on my board but if it is then I need to recreate the RAID-SET with ISW so that I can rebuild the RAID-SET using dmraid.

Continue reading “FakeRAID on ubuntu using dmraid – Part2”