NFS Version 4 Domain Question after fresh install

Hi,

I am having trouble automating our install process with Solaris 10.I have jumpstart completely automated and have added some post processing scripts to set up meta mirrors on the root disk.

The problem is that when the O/S is freshly loaded, the system will ask this question during the first boot:

This system is configured with NFS version 4, which uses a domain

name that is automatically derived from the system's name services.

The derived domain name is sufficient for most configurations. In a

few cases, mounts that cross different domains might cause files to

be owned by "nobody" due to the lack of a common domain name.

Do you need to override the system's default NFS version 4 domain

name (yes/no) ? [no] :

I have tried pre-populating the /etc/default/nfs file since this file appears to be modified after this question is answered, but I am still prompted for a response on first boot.

This is messing up the install process, because the startup sequence is paused until this question is answered.

I appreciate any help on this.

Thanks, Mike

[1389 byte] By [beachball] at [2007-11-25 22:35:14]
# 1

I figured it out.In case you want to know.You will need to add these two files to the completed image using a jumpstart post processing script:

/etc/default/nfs

/etc/.NFS4inst_state.domain

Machine now boots completely unattended after jumpstart.

beachball at 2007-7-5 13:58:59 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2

Hi Mike,

I am having the same problem.

Could you say exactly how to add those files to the image?

Is it a copy to the a/?

Not sure how to do what you are saying.

Thanks,

Russ

Russ at 2007-7-5 13:58:59 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3

I believe that Mike is talking about a JumpStart 'finish' script. There are documents at docs.sun.com that describe how to implement a finish script.

This is a script that is run after the installation of the Solaris software.

Hope this helps.

magui_c at 2007-7-5 13:58:59 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 4

Hi,

Does anybody could give the content of the /etc/.NFS4inst_state.domain file?

And how to generate the file /etc/default/nfs?

Is that possible to make an NFS copy from the jumpstart installation server? or do we need to build all lines in the post_install script?

Thanks,

Cyb

cyb91 at 2007-7-5 13:58:59 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 5

Hello,

>Does anybody could give the content of the /etc/.NFS4inst_state.domain file?

It's empty.

> And how to generate the file /etc/default/nfs?

I just jumpstarted the machine and did the interaciton manually.

The two files get created on the jumpstarted machine and you can copy the files to the jumpstart server.

>Is that possible to make an NFS copy from the jumpstart installation server? or do we need to build all lines in the post_install script?

Since I use JASS: <a href="http://www.sun.com/software/security/jass/" target="_blank">http://www.sun.com/software/security/jass/</a>

I could put the files in the "Files" directory and let a driver script copy the files.

Problem solved.

Thanks.

Ivar at 2007-7-5 13:58:59 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 6
This is working correctly with the /etc/.NFS4inst_state.domain file. /etc/default/nfs is not mandatory. It is generated automaticaly during intallation. Thanks
cyb91 at 2007-7-5 13:58:59 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 7

I know it's been a long time since you posted this topic. But I'm having the same problem and can't figure out how this finish script should look like?

I tried the following, which didn't work as I don't know how to write any shell scripts:

#!/bin/sh

cp ${SI_CONFIG_DIR}/.NFS4inst_state.domain /a/etc

Jay_Fisi at 2007-7-5 13:58:59 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 8

You can try: this work on 10beta72

1. copy in nfs default file into /a/etc/default/nfs

2. /bin/touch /a/etc/.NFS4inst_state.domain

# master /etc/default/nfs taken from the CD 10 305

# cat ./SUNWnfscr/reloc/etc/default/nfs

# ident "@(#)nfs1.1004/09/01 SMI"

#

# Copyright 2004 Sun Microsystems, Inc. All rights reserved.

# Use is subject to license terms.

#

# Sets the maximum number of concurrent connection oriented connections.

# Default is unlimited and is obtained by not setting NFSD_MAX_CONNECTIONS.

# Equivalent to -c.

#NFSD_MAX_CONNECTIONS=

# Set connection queue length for the NFS over a connection-oriented

# transport. The default value is 32 entries.

# Equivalent to -l.

NFSD_LISTEN_BACKLOG=32

# Start NFS daemon over the specified protocol only.

# Equivalent to -p, ALL is equivalent to -a on the nfsd command line.

# Mutually exclusive with NFSD_DEVICE.

NFSD_PROTOCOL=ALL

# Start NFS daemon for the transport specified by the given device only.

# Equivalent to -t.

# Mutually exclusive with setting NFSD_PROTOCOL.

#NFSD_DEVICE=

# Maximum number of concurrent NFS requests.

# Equivalent to last numeric argument on nfsd command line.

NFSD_SERVERS=16

# Set connection queue length for lockd over a connection-oriented transport.

# Default and minimum value is 32.

LOCKD_LISTEN_BACKLOG=32

# Maximum number of concurrent lockd requests.

# Default is 20.

LOCKD_SERVERS=20

# Retransmit Timeout before lockd tries again.

# Default is 5.

LOCKD_RETRANSMIT_TIMEOUT=5

# Grace period in seconds that all clients (both NLM & NFSv4) have to

# reclaim locks after a server reboot. Also controls the NFSv4 lease

# interval.

# Overrides the deprecated setting LOCKD_GRACE_PERIOD.

# Default is 90 seconds.

GRACE_PERIOD=90

# Deprecated.

# As for GRACE_PERIOD, above.

# Default is 90 seconds.

#LOCKD_GRACE_PERIOD=90

# Sets the minimum version of the NFS protocol that will be registered

# and offered by the server. The default is 2.

#NFS_SERVER_VERSMIN=2

# Sets the maximum version of the NFS protocol that will be registered

# and offered by the server. The default is 4.

#NFS_SERVER_VERSMAX=4

# Sets the minimum version of the NFS protocol that will be used by

# the NFS client. Can be overridden by the "vers=" NFS mount option.

# The default is 2.

#NFS_CLIENT_VERSMIN=2

# Sets the maximum version of the NFS protocol that will be used by

# the NFS client. Can be overridden by the "vers=" NFS mount option.

# If "vers=" is not specified for an NFS mount, this is the version

# that will be attempted first. The default is 4.

#NFS_CLIENT_VERSMAX=4

# Determines if the NFS version 4 delegation feature will be enabled

# for the server. If it is enabled, the server will attempt to

# provide delegations to the NFS version 4 client. The default is on.

#NFS_SERVER_DELEGATION=on

# Specifies to nfsmapid daemon that it is to override its default

# behavior of using the DNS domain, and that it is to use 'domain' as

# the domain to append to outbound attribute strings, and that it is to

# use 'domain' to compare against inbound attribute strings.

#NFSMAPID_DOMAIN=domain

JohnBrewer at 2007-7-5 13:58:59 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...