Operating System - HP-UX
1834001 Members
1778 Online
110063 Solutions
New Discussion

Exporting File System with Root Access to Another System

 
SOLVED
Go to solution
Sheila Birchmeier
New Member

Exporting File System with Root Access to Another System

We have been hearing discussion that if a file system is exported (in the control file for the package) with root privileges to another system (example: XFS[1]="-o access=servers, root=serverxx") and serverxx is not found in the host table that the package will not start successfully. Does anyone know if this is true?
2 REPLIES 2
Robert Gamble
Respected Contributor

Re: Exporting File System with Root Access to Another System

Sheila,

You may want to open a ticket with HP to get this answered quicker.

Good Luck!
Carsten Krege
Honored Contributor
Solution

Re: Exporting File System with Root Access to Another System

If you specify a line like

XFS[0]="-o aceess=hosts,root=host1 /export/sapmnt/SAP01"

in your NFS control script, and the address of host1 cannot be resolved, the "exportfs -i" command in the package control script function export_fs() will fail with an error (exportfs error: host1: unknown host).

As you can see in the package control script, any error returned by exportfs will prevent the package from starting.:

function export_fs
{
for I in "${XFS[@]}"
do
while :
do
EXPORTERROR=`exportfs -i $I 2>&1`
[...]
if [[ -n "$EXPORTERROR" ]] ; then
print "$EXPORTERROR"
print "\tERROR: Function export_fs"
print "\tERROR: Failed to export $I"
un_export_fs
halt_nfs_services
nfs_defined_halt_cmds
umount_fs
deactivate_volume_group
exit 1
[...]


Carsten
-------------------------------------------------------------------------------------------------
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG