While I'm thankful that AFS 3.3 included the -submounts flag, I'm somewhat
mystified by it's behavior.

I'm running on a Risc/6000 w/ AIX 3.2.5 Gold + PMP + some fixes

Basically, my inittab looks like this:

init:2:initdefault:
brc::sysinit:/sbin/rc.boot 3 >/dev/console 2>&1 # Phase 3 of system boot
powerfail::powerfail:/etc/rc.powerfail >/dev/console 2>&1  # d51225
rc:2:wait:/etc/rc > /dev/console 2>&1  # Multi-User checks
fbcheck:2:wait:/usr/lib/dwm/fbcheck >/dev/console 2>&1 # run /etc/firstboot
srcmstr:2:respawn:/etc/srcmstr          # System Resource Controller
rctcpip:2:wait:/etc/rc.tcpip > /dev/console 2>&1 # Start TCP/IP daemons
rcafs:2:wait:ksh /etc/rc.afs >/dev/console 2>&1
rcnfs:2:wait:/etc/rc.nfs > /dev/console 2>&1 # Start NFS Daemons
cons:0123456789:respawn:/etc/getty /dev/console

Everything is sequenced correctly.  

In addition, I do a 
        /etc/gfsinstall -a /usr/lib/drivers/nfs.ext
at the beginning of /etc/rc.afs.   And make sure I load 
/usr/vice/etc/dkload/afs.ext.trans rather than afs.ext!

I wanted to add a
        fs exportafs nfs on -submounts 
at the very end of /etc/rc.afs, so that subdir mounts would be enabled
at boot time!  There are several applications here that our customers
use, that require subdir mounts.

At a root prompt, I did the following:

# /usr/afs/bin/fs exportafs -type nfs
Sorry, the nfs-exporter type is currently not supported on this AFS client
#

fs is will continue to return this message, until some machine attempts to
actually do an NFS mount against /afs.  From that point on, I get the
following:

# /usr/afs/bin/fs exportafs -type nfs          
Exporter type nfs: 
is currently enabled for AFS
running in convert owner mode bits to world/other mode
running in no passwd sync mode
Only mounts to /afs allowed
#

Since I can't count on another machine to issue a mount request, I tried
the following in /etc/rc.afs.

mount localhost:/afs /mnt
umount /mnt
fs exportafs nfs on -submounts

Everything works as I expect it afterwards, but this seems awful Kludgey!
Is this the way it is supposed to work??

Chris Cowan 
ISSC (SER AFS Support)
-------------------------------------------------------------------------
SMTP Mail:      [EMAIL PROTECTED]       Phone: 512-823-0113 (TL 793-0113)
IBM VNET:       cc at austin            FAX:   512-823-9892
IBMMAIL:        USIB5CCP at IBMMAIL



Reply via email to