Page 1 of 1

zfs-stats and zfs-mon

Posted: 07 Aug 2012 21:18
by I.am.meikle
Hi,

I read an article in the latest version of the BSD magazine related to tuning ZFS on FreeBSD.

I tried to install the two scripts to help monitor ZFS status: zfs-stats and zfs-mon.

http://www.freshports.org/sysutils/zfs-stats

I followed the "To add the package" instructions, but it failed with "pkg_add: pkg_add of dependency 'perl-5.12.4_3' failed!"

Has anyone managed to install and run these scripts on NAS4Free ?

Thanks
Ian

Re: zfs-stats and zfs-mon

Posted: 01 Mar 2013 15:53
by hagai
Hi,

I am also looking for some similar functionality (to zfs-stats) in N4F embedded..
does any one have an idea ?

what i could find is a Python port for FreeNas - http://doc.freenas.org/index.php/Arcstat

--
10'x, hagai

Re: zfs-stats and zfs-mon

Posted: 01 Mar 2013 16:03
by raulfg3

Re: zfs-stats and zfs-mon

Posted: 01 Mar 2013 16:12
by hagai
Is it safe to add packages to embedded system?
I read few contradictions advises across this forum..

Re: zfs-stats and zfs-mon

Posted: 01 Mar 2013 21:20
by raulfg3
is not safe or unsafe, simply is not possible ( not enought space).

You have 2 options.

use full install
or
install packages inside a jail

Re: zfs-stats and zfs-mon

Posted: 03 Mar 2013 01:16
by hagai
thanks for your reply.

there is another option, using mount_unionfs, described in the following post:
[HowTo] Install Packages On N4F Embedded

i was actually able to add zfs-stats package and run successfully the zfs-stats and zfs-mon scripts.
one small addition for whom might want to try it -
you should also "setenv PKG_TMPDIR /mnt/opt/tmp/" (or any other mount location you will be using), b4 pkg_add.

about the safety of adding packages to embedded N4F - not for me to tell, i am very new to this stuff/system.

great system BTW.

--
hagai

Re: zfs-stats and zfs-mon

Posted: 09 Dec 2014 14:57
by ErrorCode67
Steps I used to install on 9.2.0.1 - Shigawire (revision 972)

# uname -a
FreeBSD xxxxxx.yyyyyyy.zzz 9.2-RELEASE-p4 FreeBSD 9.2-RELEASE-p4 #0 r264973M: Sun Apr 27 13:37:49 CEST 2014 root@dev.nas4free.org:/usr/obj/nas4free/usr/src/sys/NAS4FREE-amd64 amd64
# setenv PACKAGESITE 'ftp://ftp.freebsd.org/pub/FreeBSD/ports ... nt/Latest/'
# pkg_add -r zfs-stats
# find / -name zfs-stats
/usr/local/bin/zfs-stats
# /usr/local/bin/zfs-stats -a