HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: NFS re-export in ServiceGuard
Operating System - HP-UX
1834449
Members
2459
Online
110067
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
08-06-2007 07:45 AM
08-06-2007 07:45 AM
NFS re-export in ServiceGuard
I have more of a procedural question. We're running the NFS toolkit and have two NFS packages . One of the packages (developers) constantly needs changes and additions to the hanfs.sh file for the export options. I've been making these changes, syncing the files between nodes then failing the package to get the NFS re-exported. Is there a better way to re-export the NFS in place on that node? Something akin to the exportfs -a?
Where wisdom is called for, force is of little use. --Of course, a hammer does wonders for relieving stress.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2007 08:20 AM
08-06-2007 08:20 AM
Re: NFS re-export in ServiceGuard
Jeff,
You mean you're always changing the XFS[] entries in hanfs.sh?
If you look at the code in hanfs.sh you will see that all it does is:
exportfs -i XFS[n]
for whatever XFS entry it's dealing with.
So you can either just run this for each NFS mount you change/add, or even craft a short script which pulls the XFS entries out of hanfs.sh and re-runs exportfs -i on them.
I prefer the script option as its more likely to pick up any typos in your XFS entries so you don't get caught out next time you restart the package. Just remember to still update the other node as well (make it part of the script?
HTH
Duncan
I am an HPE Employee
You mean you're always changing the XFS[] entries in hanfs.sh?
If you look at the code in hanfs.sh you will see that all it does is:
exportfs -i XFS[n]
for whatever XFS entry it's dealing with.
So you can either just run this for each NFS mount you change/add, or even craft a short script which pulls the XFS entries out of hanfs.sh and re-runs exportfs -i on them.
I prefer the script option as its more likely to pick up any typos in your XFS entries so you don't get caught out next time you restart the package. Just remember to still update the other node as well (make it part of the script?
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2007 01:43 PM
08-06-2007 01:43 PM
Re: NFS re-export in ServiceGuard
There is no magic solution (at least there wasn't last time I used hanfs two years ago). I never liked adding or removing exports once in production.
A safe but cumbersome way is to maintain both hanfs.sh as well as a static /etc/exports file which can be used to re-export everything. Or run exportfs manually when adding a new export. But this knowledge can be lost between admins. And be careful when editing hanfs.sh as well, as if there is a single typo in there, it might fail next time you run it months later.
Using your own variables directly in hanfs.sh or netgroups could help to make the syntax leaner, but they must be kept synchronized on all your nodes as well.
I did modify hanfs.sh in the old days and added an option to make dynamic exports, but I had to be very careful because if there was any error encountered while running the script, it went berzerk and unexported everything -- you don't want that to happen when you're live.
Olivier
A safe but cumbersome way is to maintain both hanfs.sh as well as a static /etc/exports file which can be used to re-export everything. Or run exportfs manually when adding a new export. But this knowledge can be lost between admins. And be careful when editing hanfs.sh as well, as if there is a single typo in there, it might fail next time you run it months later.
Using your own variables directly in hanfs.sh or netgroups could help to make the syntax leaner, but they must be kept synchronized on all your nodes as well.
I did modify hanfs.sh in the old days and added an option to make dynamic exports, but I had to be very careful because if there was any error encountered while running the script, it went berzerk and unexported everything -- you don't want that to happen when you're live.
Olivier
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP