Eric Schrock wrote:
This indicates that share(1M) didn't produce any output, but returned
a non-zero exit status.  I'm not sure why this would happen - can you
run the following by hand?

# share /export
# echo $?

bash-3.00# share
bash-3.00# share /export
bash-3.00# echo $?
0

Looks like the NFS server is not completely configured yet, and that it requires this zfs share stuff to work first.

bash-3.00# svcs -a | grep nfs/server
disabled        6:24:31 svc:/network/nfs/server:default
bash-3.00# more /var/svc/log/network-nfs-server\:default.log
[ Aug 4 06:15:31 Executing start method ("/lib/svc/method/nfs-server start") ] Assertion failed: pclose(fp) == 0, file ../common/libzfs_mount.c, line 399, function zfs_share
Abort - core dumped
[ Aug  4 06:15:32 Method "start" exited with status 0 ]
[ Aug  4 06:15:32 Stopping because process dumped core. ]
[ Aug 4 06:15:32 Executing stop method ("/lib/svc/method/nfs-server stop 30") ][ Aug 4 06:15:32 Method "stop" exited with status 0 ] [ Aug 4 06:15:32 Executing start method ("/lib/svc/method/nfs-server start") ] Assertion failed: pclose(fp) == 0, file ../common/libzfs_mount.c, line 399, function zfs_share
Abort - core dumped

-- Jim C

Incidentally, the explicit 'zfs share' isn't needed, as we automatically
share the filesystem when the options are set (which did succeed).

- Eric

On Fri, Aug 04, 2006 at 12:42:02PM -0400, Jim Connors wrote:
Working to get ZFS to run on a minimal Solaris 10 U2 configuration. In this scenario, ZFS is included the miniroot which is booted into RAM. When trying to share one of the filesystems, an assertion is raised - see below. If the version of source on OpenSolaris.org matches Solaris 10 U2, then it looks like it's associated with a popen of /usr/sbin/share. Can anyone shed any light on this?

Thanks,
-- Jim C


# zfs list
NAME                   USED  AVAIL  REFER  MOUNTPOINT
SYS                     83K   163M  30.5K  /SYS
export                 110K  72.8G  25.5K  /export
export/home           24.5K  72.8G  24.5K  /export/home
# zpool list
NAME                    SIZE    USED   AVAIL    CAP  HEALTH     ALTROOT
SYS                     195M     90K    195M     0%  ONLINE     -
export                   74G    114K   74.0G     0%  ONLINE     -
# zfs set sharenfs=on export
# zfs share export
Assertion failed: pclose(fp) == 0, file ../common/libzfs_mount.c, line 399, function zfs_share
Abort - core dumped

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

--
Eric Schrock, Solaris Kernel Development       http://blogs.sun.com/eschrock

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to