f0b9
![]() |
|
|
|
|
|||||||
| Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi all,
I am playing with zfs sharenfs and I came across a problem. Unless I put a single host/network, I don't get any export after showmount -e I presume because the syntax is not quite right... What I need to do is to export: Code:
/media 192.168.3.0/24 192.168.4.3 192.168.4.21 Code:
zfs set sharenfs="-network=192.168.3.0,-mask=255.255.255.0,-alldirs,192.168.4.2" stuff/installs Last edited by DutchDaemon; March 8th, 2011 at 02:23. Reason: Formatting & Style: http://forums.freebsd.org/showthread.php?t=8816 / http://forums.freebsd.org/showthread.php?t=18043 |
|
#2
|
||||
|
||||
|
You don't need commas. Try the following:
Code:
zfs set sharenfs="-alldirs -network=192.168.3.0/24 192.168.4.2" stuff/installs |
|
#3
|
|||
|
|||
|
Didn't work either :-(
Last edited by DutchDaemon; March 8th, 2011 at 02:24. |
|
#4
|
||||
|
||||
|
Ok, it doesn't work because it's invalid export syntax.
Code:
zfs set sharenfs="-alldirs -network=192.168.3.0/24" stuff/installs Last edited by DutchDaemon; March 8th, 2011 at 02:24. |
|
#5
|
|||
|
|||
|
Hmm, the man page doesn't list a "=" sign in the network spec. If I understand the sharenfs property, whatever syntax /etc/exports handles should work in zfs set sharenfs="..." on a "per line" basis.
Quote:
Last edited by DutchDaemon; March 8th, 2011 at 02:25. Reason: change quote |
|
#6
|
||||
|
||||
|
sharenfs only works for the "simple" case, as it only holds a single line of text, and thus, only generates a single line in the /etc/zfs/exports file.
If you want to do anything involving more than 1 line of text in an exports(5) file, then you need to do it manually via /etc/exports |
|
#7
|
|||
|
|||
|
Quote:
Unfortunately if you run zfs set .... onlyt the last one would be valid. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| zfs waits for [zio->io_cv] or [zfs] | ers | General | 12 | February 18th, 2011 20:28 |
| Help with zfs sharenfs and NFSv4 | sim | Web & Network Services | 3 | February 11th, 2011 17:54 |
| Cloned ZFS drive won't boot (zfs send & recv) | sim | General | 6 | February 9th, 2011 16:27 |
| ZFS (V15): zfs userspace -> Operation not supported | interfasys | General | 0 | August 18th, 2010 02:00 |
| [ZFS] Combine striping and ZFS to use pools more efficient | bugboy | General | 3 | February 6th, 2010 00:46 |