From owner-freebsd-questions@freebsd.org Mon Oct 19 21:51:32 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DEBBCA19279 for ; Mon, 19 Oct 2015 21:51:32 +0000 (UTC) (envelope-from milios@ccsys.com) Received: from cargobay.net (cargobay.net [198.178.123.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BFA67C84 for ; Mon, 19 Oct 2015 21:51:32 +0000 (UTC) (envelope-from milios@ccsys.com) Received: from [10.240.34.205] (unknown [166.170.21.107]) by cargobay.net (Postfix) with ESMTPSA id C2078CE9; Mon, 19 Oct 2015 21:45:46 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: Installation progress From: "Chad J. Milios" X-Mailer: iPhone Mail (13A452) In-Reply-To: <562553AE.6020601@hiwaay.net> Date: Mon, 19 Oct 2015 17:45:44 -0400 Cc: freebsd-questions@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <56254484.8060003@hiwaay.net> <20151019204335.89b83ff2eff7213ca5c36556@sohara.org> <562553AE.6020601@hiwaay.net> To: "William A. Mahaffey III" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2015 21:51:33 -0000 > On Oct 19, 2015, at 4:32 PM, William A. Mahaffey III wrot= e: >=20 >> On 10/19/15 14:49, Steve O'Hara-Smith wrote: >> On Mon, 19 Oct 2015 14:34:38 -0453.75 >> "William A. Mahaffey III" wrote: >>=20 >>> Well, I finally pulled the trigger on a ZFS install on my myth-TV >>> box-to-be and .... Everything basically worked, 2 glitches, but I got >>> worked around them & it is up & running, w/ 2X 1 TB 7200 RPM 2.5" HDD's >>> in an unmirrored pool, about 1.8 TiB total pool size. I am configuring >>> it now, & have a couple of questions. If I want it to be a NFS server & >>> export /home, do I just use that reference verbatim in my /etc/exports >>> file & crank the server or is there more to it ? >> You can do that, but just as ZFS has inbuilt support for managing >> mounting of filesystems by setting the mountpoint property it also has >> inbuilt support for managing NFS exports via the sharenfs property. Do on= e >> or the other - not both. I started out using /etc/exports and switched to= >> ZFS properties for reasons I have now forgotten. >=20 > I just set sharenfs: >=20 >=20 > [root@mythbox, /etc, 3:25:23pm] 295 % df -h ; hddtemp /dev/ada[0-3] ; w ; p= stat -hms ; uname -a ; hwclock -r ; date > Filesystem Type Size Used Avail Capacity Mounted on > zroot/ROOT/default zfs 1.8T 450M 1.8T 0% / > devfs devfs 1.0k 1.0k 0B 100% /dev > zroot/home zfs 1.8T 208k 1.8T 0% /home > zroot/tmp zfs 1.8T 184k 1.8T 0% /tmp > zroot/usr zfs 1.8T 1.3G 1.8T 0% /usr > zroot/usr/local zfs 1.8T 9.3M 1.8T 0% /usr/local > zroot/var zfs 1.8T 624k 1.8T 0% /var > zroot/var/crash zfs 1.8T 148k 1.8T 0% /var/crash > zroot/var/db zfs 1.8T 3.1M 1.8T 0% /var/db > zroot/var/db/pkg zfs 1.8T 25M 1.8T 0% /var/db/pkg > zroot/var/empty zfs 1.8T 144k 1.8T 0% /var/empty > zroot/var/log zfs 1.8T 208k 1.8T 0% /var/log > zroot/var/mail zfs 1.8T 144k 1.8T 0% /var/mail > zroot/var/run zfs 1.8T 216k 1.8T 0% /var/run > zroot/var/tmp zfs 1.8T 152k 1.8T 0% /var/tmp > hddtemp: Command not found. > 3:25PM up 5:29, 3 users, load averages: 0.00, 0.00, 0.00 > USER TTY FROM LOGIN@ IDLE WHAT > root v0 - 11:09PM - -csh (csh) > wam pts/0 kabini1.local 2:45PM 26 -tcsh (tcsh) > wam pts/1 kabini1.local 2:37PM - w > Device 1M-blocks Used Avail Capacity > /dev/gpt/swap0 16384 0B 16G 0% > /dev/gpt/swap1 16384 0B 16G 0% > Total 32768 0B 32G 0% > FreeBSD mythbox 9.3-RELEASE FreeBSD 9.3-RELEASE #0 r268512: Thu Jul 10 23:= 44:39 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 > hwclock: Command not found. > Mon Oct 19 15:25:30 MCDT 2015 > [root@mythbox, /etc, 3:25:30pm] 296 % zfs set sharenfs=3Don zroot/home > [root@mythbox, /etc, 3:25:45pm] 297 % zfs share -a >=20 > However, when I try to mount the shared 'directory', I get the following o= n the other box (also FreeBSD 9.3R, as it happens): >=20 > [wam@kabini1, ~, 3:33:43pm] 372 % lf /net/4256ee1/home/ /net/mythbox/home/= /net/q6600/home/; date > ls: /net/mythbox/home/: Operation timed out > /net/4256ee1/home/: > FTP/ ISOs/ archive/ pub/ rsync/ wam/ work/ >=20 > /net/q6600/home/: > FTP/ ISOs/ VMs/ archive/ lost+found/ mnt/ = rsync/ wam/ work/ zaliases.csh zaliases.sh > Mon Oct 19 15:34:02 MCDT 2015 > [wam@kabini1, ~, 3:34:02pm] 373 % >=20 > & in my messages file: >=20 >=20 > Oct 19 15:19:40 kabini1 amd[31334]: get_mount_client failed for mythbox: := RPC: Program not registered > Oct 19 15:19:40 kabini1 amd[782]: /net/mythbox: mount (amfs_cont): Input/o= utput error > Oct 19 15:20:33 kabini1 amd[31392]: get_mount_client failed for mythbox: := RPC: Program not registered > Oct 19 15:20:33 kabini1 amd[782]: /net/mythbox: mount (amfs_cont): Input/o= utput error > Oct 19 15:27:47 kabini1 amd[31851]: get_mount_client failed for mythbox: := RPC: Program not registered > Oct 19 15:27:47 kabini1 amd[782]: /net/mythbox: mount (amfs_cont): Input/o= utput error >=20 >=20 > Nothing in any of the log files on the myth-box. Pilot error, I'm sure, bu= t any clues appreciated. Thanks & TIA & have a good one. >=20 >=20 >>=20 >>> Also, is use of tmpfs >>> compatible/OK w/ ZFS 'filesystem' ? >> Sure no reason why you shouldn't use both, except perhaps for >> memory pressure. >=20 > Fair amount of RAM here (16 GB), so I think I'll activate tmpfs, thanks. >=20 > --=20 >=20 > William A. Mahaffey III >=20 I believe the problem is that u still need to start the nfsd and rpcbind ser= vices, u just don't have to manually manage /etc/exports anymore when using t= he ZFS properties. I think u will be pleased with tmpfs.