1833315 Members
2862 Online
110051 Solutions
New Discussion

Re: NFS refresher????

 
SOLVED
Go to solution
rmueller58
Valued Contributor

NFS refresher????

thought I'd check here first.. I am needing to send some exported databases to an Snapdrive that is capable of NFS support.. It's been 8 years since I did any NFS stuff and that was in a DG/UX class.. I need a refresher or step by step procedure on how to setup NFS and be able copy files off my existing database dumps to the Snap Drive.. Any thoughts or assistance appreciate or point me to the correct HP/UX documentations for the exact stuff. Thanks!!

Rex M - Unix/Database Engineer
ESU#3 Omaha
7 REPLIES 7
Michael Steele_2
Honored Contributor
Solution

Re: NFS refresher????

SERVER:

a) update /etc/exports

For example:

/u1 -root=hostname
/u5 -access=samba1,ro,root=samba1

b) # exportfs -av (* exports contents of /etc/exports file *)

c) showmount (* list exported file systems *)

d) exportfs -ux (* unmounts *)

CLIENT:

a) update /etc/fstab

b) mount /mount_point

Here's an 11.## doc:

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B1031-90048/B1031-90048_top.html&con=/hpux/onlinedocs/B1031-90048/00/00/6-con.html&toc=/hpux/onlinedocs/B1031-90048/00/00/6-toc.html&searchterms=nfs%7cconfigure&queryid=20031020-164656
Support Fatherhood - Stop Family Law
A. Clay Stephenson
Acclaimed Contributor

Re: NFS refresher????

Before you do any of the /etc/exports stuff and exportfs, you first need to turn your box into an NFS server by starting the daemons.

cd /etc/rc.config.d
vi nfsconf
set NFS_SERVER=1 (and if you need the box to be a client, set NFS_CLIENT=1).
save the file.

If either of these was 0 and you want the service then you need to start the daemons:

cd /sbin/init.d
For server:
./nfs.server start
For client:
./nfs.client start

Now you can proceed with the exports and mounts as described above.
If it ain't broke, I can fix that.
Hemanth Gurunath Basrur
Honored Contributor

Re: NFS refresher????

rmueller58
Valued Contributor

Re: NFS refresher????

All,

Thanks I got it running.. Now I am getting an error on backup, I want to exclude the exported file system. or eliminate the error. I guess it doesn't matter either way.. Can I change my fbackup graph file and ignor it or do I need to change something else in the way I mounted the file system?



My fbackup log appears as so:

fbackup(1004): session begins on Tue Oct 21 02:26:31 2003
fbackup(1517): /net not backed up - 'n' option (NFS) not specified
fbackup(1517): /pei/snapdrive not backed up - 'n' option (NFS) not specified
fbackup(3203): volume 1 has been used 31 time(s)
fbackup(3024): writing volume 1 to the output file /dev/rmt/1m
fbackup(3055): total file blocks read for backup: 26164667
fbackup(3056): total blocks written to output file /dev/rmt/1m: 26634192
Stuart Abramson_2
Honored Contributor

Re: NFS refresher????

Did you set up automount on the client?
#
/net is set in the default automounter maps.
#
Adjust your automout maps to correct the problem you're getting, or disable automount.
#
# cd /etc
# ll auto*
-rw-r--r-- 1 root root 25 Jul 19 2000 auto_master
-rw-r--r-- 1 root root 172 Sep 28 21:20 auto_parms.log
-rw-r--r-- 1 root root 219 Sep 28 20:29 auto_parms.log.old
# cat auto_master
/net -hosts -nosuid,soft
rmueller58
Valued Contributor

Re: NFS refresher????

Stu..

see below:

# more auto_master
/net -hosts -nosuid,soft
# ls -la auto*
-rw-r--r-- 1 root root 25 Nov 21 2000 auto_master
-rw-r--r-- 1 root root 44 Oct 20 23:41 auto_parms.log
-rw-r--r-- 1 root sys 219 Oct 20 23:35 auto_parms.log.old

it does appear to be in the auto_master

Should I exclude /net and /pei/snapdrive from my fbackup routine in the graph file?

rmueller58
Valued Contributor

Re: NFS refresher????

thanks