NFS share creation from command line, NFS service not functioning
I'm trying to resurrect an Xserve we've had for a bit that we haven't put to much use. Intent is to use it as an NFS server. I'm posting on the command line forum because I'd prefer to rely on the gui as little as possible.
serveradmin shows nfs functioning as far as I can tell:
risaac$ sudo serveradmin fullstatus nfs
nfs:failoverState = "NIFailoverNotConfigured"
nfs:portmap = "RUNNING"
nfs:rpc.statd = "RUNNING"
nfs:state = "RUNNING"
nfs:nsfd = "RUNNING"
nfs:mountd = "RUNNING"
nfs:readWriteSettingsVersion = 1
nfs:rpc.lockd = "RUNNING"
The shares are not accessible from a remote machine though:
<root|~> mount site-xserve:/Volumes/export_tftpboot /mnt
nfs mount: site-xserve:/Volumes/export_tftpboot: No such file or directory
showmount -e from the remote Solaris NFS client does see the shares:
<root|~> showmount -e site-xserve
export list for site-xserve:
/Volumes/export_tftpboot (everyone)
/Volumes/system_logs (everyone)
/Volumes/Group RTPProjects (everyone)
I had added the export_tftpboot via:
nidump -r /exports . > ~/exportfile
*edit exportfile*
{
"name" = ( "exports" );
CHILDREN = (
{
"name" = ( "/Volumes/system_logs" );
"opts" = ( "maproot=root" );
},
{
"name" = ( "/Volumes/Group RTPProjects" );
"opts" = ( "maproot=root" );
},
{
"name" = ( "/Volumes/export_tftpboot" );
"opts" = ( "maproot=root" );
}
)
}
Reincorporating the new edit with:
sudo niload -r /exports . < ./exportfile
New share shows up according to nicl:
risaac$ sudo nicl . -list /exports
Password:
106 /Volumes/system_logs
108 /Volumes/Group RTPProjects
144 /Volumes/export_tftpboot
Thinking I could just restart the nfsd service as I would in Linux with the service command or in Solaris with the /etc/init.d/nfs.server script, I try to run:
risaac$ sudo serveradmin stop nfs
Password:
nfs:error = "UNEXPECTED_COMMAND"
*doesn't work, try start*
risaac$ sudo serveradmin start nfs
nfs:error = "UNEXPECTED_COMMAND"
Not sure what to try/where to look from here. Any suggestions?
Thanks,
-Ramesh
XServe (RackMac1,2 from Hardware Overview), Mac OS X (10.4.7), XServe Raid attached to it