Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hi,
before buying the Dlink DNS-323 I wanted to ask if anyone knows if smart monitoring is supported by the newest firmware or if there have been any cross-compiles for the DNS-323 of the smartmontools (http://smartmontools.sourceforge.net/)?
The second question is if the SATA drives are attached directly to the boad or via a SATA-USB bridge, which could make the smart monitoring very hard/impossible?
Thanks for your answers!
marinalink
Offline
To the best of my knowledge - smart monitoring is not supported by the current firmware, and the SATA drives do not go through a SATA-USB bridge.
Offline
"Smart not supported by Firmware" was also my impression.
However, if the SATA drives do not go through a SATA-USB brdige, there is a chance to compile smartmontools for the DNS-323 and to read the SMART values.
Leaving a NAS without the possibility of reading the SMART values is a bit "un-clever" if I may say so...
Has any body tried to compile the smartmontools for the DNS-323? Unfortunatley I have never done any cross-compiling, i.e. it would be my first try...
marinalink
Offline
The ipkg feed for the DNS-323 already has smartmon tools 5.38. Check out the link in this thread to get ipkg working:
http://dns323.kood.org/forum/t1797-%5Ba … k%27s.html
Then all you need is : "ipkg install smartmontools"
Once I got the right Marvell device options specified; the output looks good:
/ # smartctl -d marvell -i /dev/sda smartctl version 5.38 [arm-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION === Device Model: SAMSUNG HD753LJ Serial Number: Sxxxxxxxxxxxxx Firmware Version: 1AA01107 User Capacity: 750,156,374,016 bytes Device is: In smartctl database [for details use: -P show] ATA Version is: 8 ATA Standard is: ATA-8-ACS revision 3b Local Time is: Sun Apr 13 09:19:51 2008 GMT ==> WARNING: May need -F samsung or -F samsung2 enabled; see manual for details. SMART support is: Available - device has SMART capability. SMART support is: Enabled
SMART support was initially disabled on the drive (I'd never used it in anything but the DNS-323); it turned on fine with smartctl...
-Jeff
Offline
Thanks, this sounds good. I have never used ipkg or optware, do you have a tutorial on that?
Do you build the packages your own on the target it self or on a normal PC or are these packages already precompiled?
Thanks!
marinalink
Offline
The one above is precompiled on the experimental ipkg feed for the DNS-323. See the links in the first post of the thread I referred to; with fun_plug telnet, etc already working total ipkg setup time took me about 5 minutes using the instructions on those links...
You can cross-compile the ipkgs yourself if you want (I haven't set that up yet); or just skip ipkg and natively compile on the DNS-323 itself with ffp 0.5; but in this case all the hard work is already done so no need...
-Jeff
Offline
OK, thanks for the info! Now waiting for the delivery of the DNS-323.
marinalink
Offline
marinalink, forget my pm. I've had a short look and it compiled fine on the first attempt (it seems).
# smartctl -d marvell -i /dev/sda smartctl version 5.38 [arm-unknown-linux-uclibc] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION === Model Family: SAMSUNG SpinPoint T166 series Device Model: SAMSUNG HD501LJ Serial Number: S0MUJ1NLC11304 Firmware Version: CR100-10 User Capacity: 500,107,862,016 bytes Device is: In smartctl database [for details use: -P show] ATA Version is: 8 ATA Standard is: ATA-8-ACS revision 3b Local Time is: Sun Apr 13 23:49:02 2008 CEST SMART support is: Available - device has SMART capability. SMART support is: Enabled
So there's a smartmontools package in ffp0.5 now.
Thanks Jeff for posting the command line args.
Offline
fonz - hope you won't mind assisting here.
I'm guessing that ffp0.5 refers to fonz fun_plug 0.5
I've running my own very minimal fun_plug and really don't need the other stuff that I see people going after secure ftp, better web servers and so on, but I would like to have smartmontools - so - is this something that can be easily added, for example, like the usb storage support, just download a few modules and edit my fun_plug script or should I just bite the bullet and go with it all?
Offline
Fordem: ipkg's are just tar.gz files (actually 2 tarballs inside 1 tarball but anyway) so just downloading an ipkg, unpacking it, setting LD_LIBRARY_PATH to the lib directory (if needed) and adding whatever daemons the ipkg contains to your custom fun_plug script will work - if you're using winzip or similar you may need to rename the ipk to tar.gz though for it to recognise it, not 100% sure how windows/winzip handles files with wrong extensions.
BTW - if anyone's looking for a complete monitoring package I strongly suggest trying Nagios.
Offline
fordem wrote:
I've running my own very minimal fun_plug and really don't need the other stuff that I see people going after secure ftp, better web servers and so on, but I would like to have smartmontools - so - is this something that can be easily added, for example, like the usb storage support, just download a few modules and edit my fun_plug script or should I just bite the bullet and go with it all?
smartmontools is a little more expensive than the usb modules. The two programs in the package (smartctl and smartd) require the C++ library libstdc++ that, afaik, is not present in the firmware.
Exploding ipks and picking the files you need is definitely an option if you want to keep your addons minimal wrt nr of files and disk space. Using ipks has the advantage that they are compiled using the same (or close enough) compiler version and linked against /lib/, while my packages need their own set of libraries.
A minimal version of my 0.5 package would amount to 720k for (a full-featured) busybox, 532k for the C library, 936k for libstdc++ , 44k for libgcc_s, 412k for smartmon programs - less than 3MB total for a self-contained funplug.
Out of curiosity, what functions did you add?
Offline
fonz wrote:
my packages need their own set of libraries
What are the advantages of using different libraries? Which ones did you update?
I thought the way that you packaged 0.4 was best - a smaller core with options for the people who need them. Reduces the attack surface, just in case my wife tries to hack my backups ;-)
Offline
fonz
All I'm running at this point is telnet, so that I can do scripted shutdowns, although I'm considering "re-adding" the usb storage modules to allow back up to an external USB device (I had those in last year, just to see if I could do it) - my concern is not so much the number of files and disk space (for me that's a matter of throwing a larger disk in there) but more the limited RAM and CPU
My original reason for buying the DNS-323 more than a year ago, was to introduce it to a number of small business clients who needed reliable redundant storage, but weren't up to administering a true server - at that time the unit wasn't mature enough - but with the development that's gone on here, I think I could take it forward.
Firmware 1.04 has improved disk error/failure detecton, smartmontools is of course a step in the right direction, and the ability to add an external USB device for backup - I don't think I need much more for a SOHO NAS - some folks might look for more in terms of security, but I would not hesitate to run these wide open, at least where I need to run them.
Offline
fordem wrote:
my concern is not so much the number of files and disk space (for me that's a matter of throwing a larger disk in there) but more the limited RAM and CPU
If you don't start the extra applications then they won't get loaded in to RAM or use any CPU, but as fonz points out, you could also slim the package down by removing things.
I don't know how much extra RAM the ffp 0.5 libs would take vs the versions in the firmware. My best guess is based on the ffp uclibc library package which unzips to 5.8MB on disk, so I suppose running an ffp 0.5 environment on top of the DLink firmware could take around 5.8 MB of extra space vs running the same apps linked against the DLink libs.
Fonz - Is this a bad guess?
Luckily the DNS323 has a hefty 64MB to play with :-)
Offline
sjmac wrote:
unzips to 5.8MB on disk, so I suppose running an ffp 0.5 environment on top of the DLink firmware could take around 5.8 MB of extra space vs running the same apps linked against the DLink libs.
Fonz - Is this a bad guess?
Yes, a really bad guess that includes headers file, static objects, utility programs, etc. It's more like 0.5MB.
Offline
Yes, a really bad guess that includes headers file, static objects, utility programs, etc. It's more like 0.5MB.
Yes, stupid of me not to look at the tar contents more closely! But in /fun-plug/0.5/packages/uclibc-0.9.29-2.tgz the ffp/lib folder contains 2.8 MB of shared and static libs.
The ffp libc is 1MB all by itself, and is only available as a static lib (.a), but in the firmware it's shared (.so).
How do you estimate a 0.5 MB overhead?
===
edit : Aha, I've just seen that the libc.so is in the main fun_plug.tgz, and only 300K - that would make sense!
Last edited by sjmac (2008-04-15 10:54:41)
Offline
sjmac wrote:
the ffp/lib folder contains 2.8 MB of shared and static libs.
The ffp libc is 1MB all by itself, and is only available as a static lib (.a), but in the firmware it's shared (.so).
How do you work out a 0.5 MB overhead?
The static lib is not relevant, it's only used for static binaries and then, only required parts of it are linked into the executable (remember, the 0.5 funplug includes a complete toolchain).
Of course, it contains a shared libc, just like the firmware: libuClibc-0.9.29.so
0.5MB is the sum of _all_ shared objects in uclibc:
ffp/lib$ du -cks $(find -type f -name \*.so) 16 ./libcrypt-0.9.29.so 12 ./libdl-0.9.29.so 76 ./libm-0.9.29.so 8 ./libnsl-0.9.29.so 68 ./libpthread-0.9.29.so 8 ./libresolv-0.9.29.so 8 ./librt-0.9.29.so 300 ./libuClibc-0.9.29.so 8 ./libutil-0.9.29.so 24 ./ld-uClibc-0.9.29.so 4 ./libc.so 532 total
Also remember, that these are shared objects, i.e. loaded once, even if used by a dozen programs.
Offline