Operating System - HP-UX
1836970 Members
2342 Online
110111 Solutions
New Discussion

Re: Mounted nfs on /var FS?

 
SOLVED
Go to solution
Sudhaadm
Regular Advisor

Mounted nfs on /var FS?

Hi All,
We have mounted ServerA Normal(Lke /application) Filesystem on ServerB /var Filesystem. will it create any problem?

thanks
8 REPLIES 8
A. Clay Stephenson
Acclaimed Contributor

Re: Mounted nfs on /var FS?

It depends have you mounted it as /var or as something like /var/ServerA. The former is bad; the latter is ok.
If it ain't broke, I can fix that.
Bill Hassell
Honored Contributor

Re: Mounted nfs on /var FS?

The mount process in HP-UX essentially inserts a filesystem onto a specific directory in the local system, so if you mounted servera:/application onto your local system at /var/application, there are no issues. Now the mount command needs an empty directory but it is not checked (except that nothing is open on the mountpoint or any subdirectories). That means that if a directory like /var/application has files (and perhaps diretories), mounting on top of the same directory will 'hide' the old directory structure. That is why you can't mount something on /var -- all the files and directories would be hidden. But you can create a directory called /var/application and mount to that directory just fine.


Bill Hassell, sysadmin
Mel Burslan
Honored Contributor

Re: Mounted nfs on /var FS?

One thing that comes to mind is the use of /var/tmp for some system related functions and slow response from an nfs server crippling the functionality. If you have a robust network between serverA and serverB and your NFS access rights are set up properly (I would check into root access rights especially) you may be okay. But I have to warn you, it is not a wise idea in my opinion and definitely not common practice.
________________________________
UNIX because I majored in cryptology...
Sudhaadm
Regular Advisor

Re: Mounted nfs on /var FS?

Yes,,,great Analyzation ..
Thanks for the answers for my query..
Is it harmful to mount in /var filesystem?
Mount serverA:/Application /var
A. Clay Stephenson
Acclaimed Contributor

Re: Mounted nfs on /var FS?

Okay. That example is bad; don't do it.
If it ain't broke, I can fix that.
Sudhaadm
Regular Advisor

Re: Mounted nfs on /var FS?

hi clay,
its bad...but is there any high impact ?
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Mounted nfs on /var FS?

Only if you consider little things like crashes "high impact". Your system will be missing things like /var/tmp. Your lp spooler and mail will instantly be dead although probably not as quickly as the system itself crashes. Simply create a direcory under /var (e.g. /var/application) and use that as the mountpoint.
If it ain't broke, I can fix that.
Sudhaadm
Regular Advisor

Re: Mounted nfs on /var FS?

Hi All,
Thanks for the great support and quick solution.