Operating System - HP-UX
1833589 Members
3562 Online
110061 Solutions
New Discussion

Re: sap extension and Automounter/Auto FS Configuration

 
anat heilper
Frequent Advisor

sap extension and Automounter/Auto FS Configuration

Hi,
I'm running sg 11.16 with the sap extension.
When does the auto FS mount the file systems during boot?



7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: sap extension and Automounter/Auto FS Configuration

Shalom,

/etc/rc.log

Soon after boot.

Also see /sbin/rc2.d

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: sap extension and Automounter/Auto FS Configuration

Sorry, I misunderstood earlier.

Serviceguard packages generally do the following:

1) Activate the volume group on shared storage.
2) Mount any filesystems needed.

This is all done in the package control script.

Serviceguard is triggered in /sbin/rc3.d

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com

Re: sap extension and Automounter/Auto FS Configuration

With AUTOFS, the filesystem won't get NFS mounted until a process tries to access a file on it. So in a SGeSAP cluster, this will be at the point when the startsap scripts are called.

So at boot time, the NFS mounts are active at all.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Geoff Wild
Honored Contributor

Re: sap extension and Automounter/Auto FS Configuration

Auto FS doesn't mount any file systems at boot - unless you write a script to do so.

mount

that will display automount file systems - and if you cd to them or ll them, then they will mount.

If the file system is exported/shared from serviceguard, then it will only be available when the package is running.


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Ralph Grothe
Honored Contributor

Re: sap extension and Automounter/Auto FS Configuration

As the others already have answered,
the automounter only mounts shares on demand.
So if no SAP proc is trying to access files from the share nothing gets mounted.

I am not sure what your objective is.
But maybe it's the same pain that I felt when I occasionally needed to integrate another SAP share to the exports, but didn't want to restart the package after having modified sap.conf for this minor task which didn't require a package restart at all.
On the other hand I found it hard to remember after long config change periods what exactly the SAP shares to be exported were and what options they used.
So I wrote this simple script that sources sap.conf (after having edited it) and reexports everything.

$ cat reexport.sh
#!/usr/bin/sh

SAPSYSTEMNAME=BlaBla
SAPCONF=/etc/cmcluster/$SAPSYSTEMNAME/sap.conf

if [ -f $SAPCONF ]; then
. $SAPCONF
else
echo "Cannot stat $SAPCONF"
exit 1
fi

echo "Unexporting $SAPSYSTEMNAME shares"
exportfs -uv ${SXFS[*]}
typeset -i i=0
while ((i<${#SXFS[*]}));do
[[ -z ${SXFS[$i]} ]] && continue
echo "Exporting $SAPSYSTEMNAME share ${SXFS[$i]}"
exportfs -v -i -o ${OPFS[$i]} ${SXFS[$i]}
((i+=1))
done
Madness, thy name is system administration
Ralph Grothe
Honored Contributor

Re: sap extension and Automounter/Auto FS Configuration

Sorry, forgot the second half.
You also would need an automounter map
which usually becomes a direct map
in /etc/auto_direct (or whatever your auto_master refers to).
There you would add an entry similar to

/sapmnt/SAPSID pkg_virt_host:/export/sapmnt/SAPSID

Madness, thy name is system administration
anat heilper
Frequent Advisor

Re: sap extension and Automounter/Auto FS Configuration

thanks for your answers