From owner-freebsd-questions@freebsd.org Mon Oct 19 20:33:53 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 22F47A199C5 for ; Mon, 19 Oct 2015 20:33:53 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E7A6D14AB for ; Mon, 19 Oct 2015 20:33:52 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from kabini1.local (dynamic-216-186-213-32.knology.net [216.186.213.32] (may be forged)) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t9JKXojR019175 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Mon, 19 Oct 2015 15:33:51 -0500 Subject: Re: Installation progress To: freebsd-questions@freebsd.org References: <56254484.8060003@hiwaay.net> <20151019204335.89b83ff2eff7213ca5c36556@sohara.org> From: "William A. Mahaffey III" Message-ID: <562553AE.6020601@hiwaay.net> Date: Mon, 19 Oct 2015 15:39:20 -0453.75 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151019204335.89b83ff2eff7213ca5c36556@sohara.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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 20:33:53 -0000 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: > >> 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 one > or the other - not both. I started out using /etc/exports and switched to > ZFS properties for reasons I have now forgotten. I just set sharenfs: [root@mythbox, /etc, 3:25:23pm] 295 % df -h ; hddtemp /dev/ada[0-3] ; w ; pstat -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=on zroot/home [root@mythbox, /etc, 3:25:45pm] 297 % zfs share -a However, when I try to mount the shared 'directory', I get the following on the other box (also FreeBSD 9.3R, as it happens): [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/ /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 % & in my messages file: 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/output 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/output 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/output error Nothing in any of the log files on the myth-box. Pilot error, I'm sure, but any clues appreciated. Thanks & TIA & have a good one. > >> Also, is use of tmpfs >> compatible/OK w/ ZFS 'filesystem' ? > Sure no reason why you shouldn't use both, except perhaps for > memory pressure. > Fair amount of RAM here (16 GB), so I think I'll activate tmpfs, thanks. -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.