Operating System - HP-UX
1819901 Members
2520 Online
109607 Solutions
New Discussion юеВ

Re: nfs export, but /etc/exports doesn't exist

 
spex
Honored Contributor

nfs export, but /etc/exports doesn't exist

I have a server which exports a filesystem via nfs, but /etc/exports doesn't exist. The export is persistent across reboots. I don't see 'exportfs' being called in any scripts. Please explain how this is possible.

Thanks in advance!
9 REPLIES 9
Patrick Wallek
Honored Contributor

Re: nfs export, but /etc/exports doesn't exist

It could be done via automount or autofs.

Have a look in /etc for any auto* files.
spex
Honored Contributor

Re: nfs export, but /etc/exports doesn't exist

Patrick,

Good thought, but that's not it:

# ls /etc/auto*
/etc/auto_master /etc/auto_parms.log /etc/auto_parms.log.old

PCS
Victor Fridyev
Honored Contributor

Re: nfs export, but /etc/exports doesn't exist

Hi,

exportfs can permit NFS access to local FS in command line as well.
Look for the command in styartup scripts, e.g. in /sbin/init.d/nfs.server.

The command
#>exportfs

shows exported fileystems

HTH
Entities are not to be multiplied beyond necessity - RTFM
Albert_31
Trusted Contributor

Re: nfs export, but /etc/exports doesn't exist

What is the filesystem being exported adn mounted, can you post it.

do you find any entries in the /etc/auto_master file..normally it is by default /net with hosts as the map file..

regards

Albert
Timothy P. Jackson
Valued Contributor

Re: nfs export, but /etc/exports doesn't exist

Hey Spex,

I am sure you know what you are looking at, but are you sure that this is an nfs export and not a CIFS/samba?

It is just a thought. If you look at them from a bdf listing they look almost the same.

Tim
spex
Honored Contributor

Re: nfs export, but /etc/exports doesn't exist

Victor,

'exportfs -a' is called by /sbin/init.d/nfs.server, which exports /etc/exports. But as I said, that file does not exist. I grep'ed for 'exportfs' in all files in /sbin/init.d, and only the nfs.* scripts contain it.

Albert,

# mount -v| grep oraexp
/dev/vgoracle/lvol12 on /oraexp type vxfs delaylog,nodatainlog
Tim,

From a client with /oraexp mounted:
# mount -v |grep oraexp
:/oraexp on /oraexp type nfs defaults,NFSv3

Thanks for the good ideas, everyone.

PCS
Robert-Jan Goossens
Honored Contributor

Re: nfs export, but /etc/exports doesn't exist

PCS,

You can also mount remote filesystems by using your /etc/fstab.

daf000xx:/cdrom /mnt nfs ro 0 0

Regards,
Robert-Jan
rariasn
Honored Contributor

Re: nfs export, but /etc/exports doesn't exist

Hi spex,

my exports file permission,

-rw-r--r-- 1 root sys 862 Jun 5 14:28 /etc/exports

Verify file /sbin/init.d/nfs.server

rgs,

ran
Enrico P.
Honored Contributor

Re: nfs export, but /etc/exports doesn't exist

Hi,
if you have a cluster environment check for hanfs.sh script in the packages directory. It is started at the package startup when the control file is read.

Enrico