weak points in my existing NAS solution were quickly identified, and the search for something positive led to better optimized [IB-NAS4220-b icy box raid by sonic]. the one I wanted to get away from the slow network access to the nslu2, which under optimal conditions [iperf measurement with ] not led to more than 90 mbit. as my multimedia data are only on computers with gigabit connection, the network connection was a must. the performance sheet following - I get the following values.
| nslu2 | icy_box | |
| hdparm [mb / s] | | |
| cached | 40-43 | 65-68 |
| bufferd | 10-12 | 20-23 |
| dd [mb/s] | | |
| write | 12 | 15 |
| read | 12 | 33 |
| samba [mb/s] | | |
| write | 1,8 | 3,7 |
| read | 2,5 | 2 |
somit kann man in unserem fall den unterschied von usb zu sata2 mit einem faktor von 2 titulieren. Linearität zufolge erziele ich hiermit einen faktor 20 über das netz.
zur installation der icy_box :
die hardware einrichtung meiner beiden seagate barracuda [je 1.5 tb] erfolgt unspektakulär.
der erste bootvorgang, das flashen der aktuellen firmware v2.6.3.1 über das webgui erfolgt lt. handbuch. erneuter start, wir kommen zur konfiguration der platten. dieses nas soll lediglich als backup bzw. daten-server [samba] dienen. somit entscheide ich mich auf den verzicht von all built-in-software elementen wie raid-verbunde, sausalito framework, printserver, etc.
die aktuelle firmware bietet die möglichkeit to put under / {mountpoint} / public / applications / new_software new software packages and reboot after a successful install them automatically. This directory is falling on our / mnt/ide2/public / applications / new_software as the system partition was placed on the 2nd of our two hard drives. [Cat / usr/sausalito/codb/objects/1/Disk.rootdir] the first of the packages to install the secure-access console is used as an alternative to the already enabled telnet [user: root / pwd: admin]. The official packages from Raidsonic [http://de.nas-4220.org/index.php/Packages] provide here first of all to the packet-ssh-server.tgz [dropbear].
the real tricky part - which replaced the built-in packages by the analog Optware feed is initiated as follows.
download from Optware-hd-010 209 [see above link to packages:: Optware]. reboot after a new ssh key pairs are generated and the Optware-ssh-server is started. [Makes unnecessary dropbear package, which can now be deleted!]. from now on as normal can be operated using ipkg. We will samba, cron and syslog-ng install the Optware feed.
# ipkg install cron ipkg install samba
# # ipkg install syslog-ng
persist as we now this package and eliminate the built-in-packages the latest firmware? the software elements in the RaidSonic firmware to be controlled by the Sausalito framework, which are called by constructor. we disable some of them. [Ftp, nfs, print server, bonjour, bt2]
# rm-f / usr/sausalito/constructor/50_construct_ftp
# rm-f / usr/sausalito/constructor/50_construct_nfs
# rm-f / usr / sausalito / constructor / 50_construct_printer
# rm-f / usr/sausalito/constructor/91_construct_bonjour
# rm-f / usr/sausalito/constructor/89_construct_bt2
the trick now is that we have exactly one entry point where we can persist for these processes, namely in the start script of Optware packages [/ mnt/ide2/public/applications/optware/init] ...
above commands are easily eingpflegt in this script, we also reserve the right to the entry of
ln-sf / opt/etc/init.d/S01p003876 / etc/rc.d/S01p003876.sh
before another script for another user-controlled packages when to start the boat. by linking to / etc / rc.d [root directory for the Raidsonic firmware] of this script will now run at every boot. The content guarantees the shutdown of all processes and restart the firmware configured and installed Optware processes. # [Listing of S01p003876.sh]
/ bin / sh #
# no raid, we kill disk slot button
killall slot disk button
# no bonjour, bonjour we kill / linkChg
killall linkChg
# no sausalito powermanagement
killall powermgmt
# no sausalito storudp
killall storudp
# no sausalito cced
killall cced
# no twonky running
killall upnpdevice
# no icy_box webinterface needed
killall thttpd
# use my hostfile ...
if [ -e /opt/etc/hosts ]; then
ln -sf /opt/etc/hosts /etc/hosts
fi
# use my profile ...
if [ -e /opt/etc/profile ]; then
ln -sf /opt/etc/profile /etc/profile
rm /root/.profile
fi
# home directories...
if [ -e /home ]; then
rm -R /home
ln -s /mnt/ide2/home /home
fi
# passwd directories...
if [ -e /etc/passwd ]; then
rm -R /etc/passwd
ln -s /opt/etc/passwd /etc/passwd
fi
# group directories...
if [ -e /etc/group ]; then
rm -R /etc/group
ln -s /opt/etc/group /etc/group
fi
# start samba 3 [optware]
/opt/etc/init.d/S08samba
# start nagios nrpe [optware]
/opt/etc/init.d/S99nrpe start
# link locale specific from debian etch compilation
rm /usr/share/locale
rm /usr/lib/locale
rm /usr/share/i18n
ln -s /opt/share/locale /usr/share/locale
ln -s /opt/lib/locale /usr/lib/locale
ln -s /opt/share/i18n /usr/share/i18n
# link ssl libraries...
rm /usr/lib/libz.so.1
rm /usr/lib/libssl.so.0.9.8
rm /usr/lib/libcrypto.so.0.9.8
ln -s /opt/lib/libz.so.1 /usr/lib/libz.so.1
ln -s /opt/lib/libssl.so.0.9.8 /usr/lib/libssl.so.0.9.8
ln -s /opt/lib/libcrypto.so.0.9.8 /usr/lib/libcrypto.so.0.9.8
# launch ssh daemon
/opt/etc/init.d/S40sshd
# set correct timezone
rm /etc/localtime
ln -s /opt/share/zoneinfo/Europe/Vienna /etc/localtime
/opt/bin/ntpclient -h pool.ntp.org -s &>/dev/null
# link operational
rm / ln-s operational
/ mnt/ide2/operational / operational link operational
# rm / etc/rc.d/S12syslog.sh
/ opt / etc / init.d / nagios # opt_syslog start
has problems with / bin / ps
rm / bin / ps
ln-s / opt / bin / ps / bin / perl # link
ps
rm / usr / bin / perl ln-s
/ mnt/ide2/perl/bin/perl / usr / bin / perl
many of the above chains of command make sense only when a chroot environment - was in my case debian etch installed on the icy_box, and here is native comiliert.
0 comments:
Post a Comment