- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- nfs share command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2010 03:09 AM
тАО09-12-2010 03:09 AM
Ok, if I have a directory on server, sourceserver, we'll call it /dir/2dir/targetdir, and I want to nfs export it to another server, server2:/targetshare
The line in my /etc/fstab on the target server is: sourceserver:/dir/2dir/tagetdir /targetdir nfs defaults 0 2
I have my /etc/exports on the target beast as:
/dir/2dir/targetdir targetserver:/targetdir
I run the share command:
share -F nfs -o rw /dir/2dir/targetdir
then:
exportfs -a
Do I have to do a dance every time it reboots? I've set the nfsclient=1 and the nfsserver=1 appropriately.
Am I missing something?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2010 03:11 AM
тАО09-12-2010 03:11 AM
Re: nfs share command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2010 03:37 AM
тАО09-12-2010 03:37 AM
Re: nfs share command
/dir/2dir/targetdir targetserver:/targetdir
What are you trying to do here? You can't daisy chain mounts.
>Do I have to do a dance every time it reboots?
Which reboots?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2010 03:46 AM
тАО09-12-2010 03:46 AM
Re: nfs share command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2010 01:07 PM
тАО09-12-2010 01:07 PM
Re: nfs share command
What versions of hpux are you using? 11.31 doesnt use the /etc/exports file but uses
/etc/dfs/dfstab file and uses the share command.
11.11 uses /etc/exports file and exportfs command
seems like your trying to use two different ways of doing things
so if 11.31 you would add your entry to this file on the target server and specify here the clients and r/w options
you should also add the mountpoint on the clients fstab to mount it at reboot, not on the servers fstab.
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2010 05:46 PM
тАО09-12-2010 05:46 PM
Re: nfs share command
That file must either list all of your clients you want to have access or allow all.
>What if either one reboots? Do I have to run the share command every time?
If it is in the client's /etc/fstab, it will be mounted when the client reboots. If it is in the server's /etc/exports or /etc/dfs/dfstab, it will be exported when the server reboots.
Basically what Andy said.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2010 08:54 PM
тАО09-12-2010 08:54 PM
Re: nfs share command
/u02/oracle/StageR12 access=fobapp
where fobapp is the server mounting the StageR12
Here's the line, (I think,) on fobapp's /etc/fstab
fobdb:/u01/oracle/StageR12 /StageR12 nfs defaults 0 2
How am I doing so far?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-12-2010 09:12 PM
тАО09-12-2010 09:12 PM
Re: nfs share command
I'm running 11.31, so as was said previously, /etc/dfs/dfstab would be the thing to use.
The question is: upon reboot, as long as the /etc/dfs/dfstab file is set correctly, and the /etc/fstab has the appropriate parameter, I should be good to go?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2010 12:10 AM
тАО09-13-2010 12:10 AM
Re: nfs share command
yes it loks like you got it.
when you have added the entries to the dfstab file then issue the share command or stop and start nfs on the target server
#shareall (on the target server)
will share all nfs points
#share (on the target server)
will display all the shared points on your target server
run the mount command on the clients and it should work.
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2010 01:32 AM
тАО09-13-2010 01:32 AM
Re: nfs share command
...once the dfstab on the 'exporting' server is correct, and the /etc/fstab on the 'mounting' server is correct, and I reboot, (exporting first, mounting 2nd,) then everything should export and mount happily, correct?