For When You Can't Have The Real Thing
[ start | index | login ]
start > Sun > Jumpstart > NFS v4 Setup Question

NFS v4 Setup Question

Created by dave. Last edited by dave, 12 years and 286 days ago. Viewed 5,259 times. #3
[diff] [history] [edit] [rdf]
labels
attachments

Problem

When you Jumpstart a Solaris 10 OS using a framework you designed for Solaris 9, the install stops after the first boot and asks you:

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] :

...and won't progress until the question is answered. Since we wish to install the OS in in an unattended manner, we wish to override this question being asked.

Solution 1: Dummy the installer so it doesn't ask unpleasant questions

Add this to your Jumpstart's postInstall script:

# Fix Solaris 10 NFS V4 query.
if [ -f /a/usr/sbin/sysidnfs4 ]; then
        # ...and this dummies the installer so it doesn't ask V4 questions.
        mv /a/etc/default/nfs /a/etc/default/nfs.org
        touch /a/etc/default/.NFS4inst_state_domain
        mv /a/etc/.sysidconfig.apps /a/etc/.sysidconfig.apps.org
        grep -v sysidnfs4 < /a/etc/.sysidconfig.apps.org > /a/etc/.sysidconfig.apps
fi

The test at the top of this block should limit these changes being made to only those systems which will understand Nfs V4 (currently Solaris 10 only).

Solution 2: Configure Nfs V4 Correctly

This is left as an excercise for the reader. :)

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt