Date: Mon, 19 Oct 2015 17:45:44 -0400 From: "Chad J. Milios" <milios@ccsys.com> To: "William A. Mahaffey III" <wam@hiwaay.net> Cc: freebsd-questions@freebsd.org Subject: Re: Installation progress Message-ID: <AEBD9E3F-F148-428C-841C-1D2605BDEBD8@ccsys.com> In-Reply-To: <562553AE.6020601@hiwaay.net> References: <56254484.8060003@hiwaay.net> <20151019204335.89b83ff2eff7213ca5c36556@sohara.org> <562553AE.6020601@hiwaay.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Oct 19, 2015, at 4:32 PM, William A. Mahaffey III <wam@hiwaay.net> 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" <wam@hiwaay.net> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AEBD9E3F-F148-428C-841C-1D2605BDEBD8>