Re: /etc/zfs/exports conversion problem

2016-09-01 Thread Tim Rice


never mind.
Sorry for the noise.
Silly me, using mount options that work on solaris on a freebsd system.

On 09/01/16 13:43, Tim Rice wrote:
Whatever program creates /etc/zfs/exports from a "zfs set sharenfs 
" command

does not act correctly if hostnames have a - in them.

I first spotted this on a 10.3 system.
Still exists in 11 RC2

Steps to reproduce.
On the 11.0-RC2 EC2 instance I spun up, the pool name was tstpool

# zfs create tstpool/some-test-fs
# zfs set \
sharenfs='rw=devlab16-79.newjersey.sco.com,root=devlab16-79.newjersey.sco.com' 
\

tstpool/some-test-fs
# cat /etc/zfs/exports
# !!! DO NOT EDIT THIS FILE MANUALLY !!!

/tstpool/some-test-fsrw=devlab16 79.newjersey.sco.com 
root=devlab16 79.newjersey.sco.com

# zfs get sharenfs tstpool/some-test-fs
NAME  PROPERTY VALUE SOURCE
tstpool/some-test-fs  sharenfs 
rw=devlab16-79.newjersey.sco.com,root=devlab16-79.newjersey.sco.com local



Note the missing dash between 16 and 79 in /etc/zfs/exports but the 
sharenfs property

is correct.

Sorry I haven't had time to track down where the trouble is. I just 
ran into this

setting up a storage server.




--
Tim Rice
t...@xinuos.com
707 456-1146

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


/etc/zfs/exports conversion problem

2016-09-01 Thread Tim Rice
Whatever program creates /etc/zfs/exports from a "zfs set sharenfs " 
command

does not act correctly if hostnames have a - in them.

I first spotted this on a 10.3 system.
Still exists in 11 RC2

Steps to reproduce.
On the 11.0-RC2 EC2 instance I spun up, the pool name was tstpool

# zfs create tstpool/some-test-fs
# zfs set \
sharenfs='rw=devlab16-79.newjersey.sco.com,root=devlab16-79.newjersey.sco.com' 
\

tstpool/some-test-fs
# cat /etc/zfs/exports
# !!! DO NOT EDIT THIS FILE MANUALLY !!!

/tstpool/some-test-fsrw=devlab16 79.newjersey.sco.com root=devlab16 
79.newjersey.sco.com

# zfs get sharenfs tstpool/some-test-fs
NAME  PROPERTY VALUE SOURCE
tstpool/some-test-fs  sharenfs 
rw=devlab16-79.newjersey.sco.com,root=devlab16-79.newjersey.sco.com local



Note the missing dash between 16 and 79 in /etc/zfs/exports but the 
sharenfs property

is correct.

Sorry I haven't had time to track down where the trouble is. I just ran 
into this

setting up a storage server.


--
Tim Rice
t...@xinuos.com

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"