Jun 162017
 

Been searching for a tool to streamline ZFS replication between my storage arrays and I think I found it – it’s called syncoid.

Installation

# ubuntu
apt install pv lzop mbuffer libconfig-inifiles-perl git -y
# centos
yum install pv lzop mbuffer perl-Config-IniFiles.noarch git -y


cd /usr/src/
git clone https://github.com/jimsalterjrs/sanoid.git
cp sanoid/syncoid /usr/local/sbin/

Now setup SSH keys for passwordless root login and create cronjob to fire up /usr/local/sbin/replication-syncoid.sh once a day/week/whenever suits you.

0 0 * * 1   /usr/local/sbin/replication-syncoid.sh|logger

Where /usr/local/sbin/replication-syncoid.sh is

#!/bin/bash
FILESYSTEMS="apps home service vmfs"
LOG=/var/log/syncoid.log
for i in $FILESYSTEMS; do 
echo "---------------  `date` - syncing $i -------------" >> $LOG 2>&1 
/usr/local/sbin/syncoid -r root@mielnet-second-tier0022:tank/$i cistern/$i >> $LOG 2>&1
echo "---------------  `date` - done $i -------------" >> $LOG 2>&1
done

 

No matching ciphers

You may get a message:

"no matching cipher found: client [email protected],arcfour server aes256-ctr,aes192-ctr,aes128-ctr,arcfour256,arcfour128" 

most likely when you run Centos 6 on target host. You need to check for available ciphers on target host and modify syncoid script accordingly.

# ssh -Q cipher root@mielnet-second-tier0022| paste -d , -s
3des-cbc,blowfish-cbc,cast128-cbc,arcfour,arcfour128,arcfour256,aes128-cbc,aes192-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected]

and paste output from above on line 39 of /usr/local/sbin/replication-syncoid.sh

$sshcipher = '-c 3des-cbc,blowfish-cbc,cast128-cbc,arcfour,arcfour128,arcfour256,aes128-cbc,aes192-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected] ';

 

Now your sync will run OK.

 

Summary

It gets the job done nicely and saves me from writing my own bash-perl-voodoo-black-magic-fuckery.

Thanks Jim.

Jul 102015
 

Intro

 

So I had this crazy idea about fitting onboard computer to my 04′ Honda Accord Tourer (Exec trim with premium speaker system – non-navi version).
Been googling this and digesting available information, finally stumbled upon this excellent Engineering(DIY) project, blog and associated forum – and decided to give it a shot.

First sketch

 

Work in progress

 

Rear view camera fitted

 

Final effect

 

Shopping list

 

 

Diagram

 

Link to PDF version here

 

 

 Accord Radio Plug – source of power

One thing worth noting, in order to power things up we need access the radio plug. To access radio plug I had to remove the whole stereo/disc changer unit. Sounds tricky but this lovely chap has got it covered for you. I didn’t buy any stereo removal tools, simple wide steel spatula/scraper did the job. Once radio removed I could access the radio plug so carefully removed a bit of isolation from three wires and soldered my RPi2 /LCD power cables with fuses.

Was a bit scared of that part but it took less than an hour altogether. Jolly good.

Picture of actual plug, courtesy of http://accordklubpolska.pl/

 

 

What’s left on my to do list

  • Adding pyOBD based KODI plugin for engine real-time diagnostic, similar to the one from this page.
  • Rear seats, adding headrest mounted monitors for kids (via HDMI splitter).

Gallery

Full gallery with pictures is available here http://imgur.com/a/s0X3r

 Video presentation links

 

Some final thoughts

One note, if you would prefer to mount LCD a bit higher, say right above ventilation ducts, you might be interested in fitting this plastic panel instead of Double DIN fascia I used. Just an interesting alternative that was mentioned on one of the forums, alternative which I wasn’t aware of.

Apart of that, not much left to say as Andrei’s blog has most of the aspects covered.
But obviously if you have any Honda Accord specific question feel free to drop a comment here.

Many thanks to Andrei for publishing all necessary info and for keeping this awesome project alive.