Operating System - HP-UX
1837214 Members
1841 Online
110115 Solutions
New Discussion

mount remote filesystem in service guard

 
Gireesh
Occasional Advisor

mount remote filesystem in service guard

Hi All,

In service guard is it possible to bring up remote filesystem (exported from another nfs server)
OS version is hpux 11.11 and running service guard 11.16

Thanks
Gireesh
9 REPLIES 9
Tricia Sambrano
Frequent Advisor

Re: mount remote filesystem in service guard

Your question is somewhat vague so I will answer a rephrased question.

Is it possible for a Serviceguard package to mount an NFS share from another server outside of the cluster?

Easy answer: Yes. Add the mount and umount to the package control script.
UNIX IS user friendly... it's just selective about who its friends are. -Fabio Esquivel
Gireesh
Occasional Advisor

Re: mount remote filesystem in service guard

Yes,that was my question.
When I try to bring up the package I am getting the below error.

fsck: /etc/default/fs is used for determining the file system type
vxfs fsck: cannot stat 172.xx.xx.xx:/test_fs/rtestfs
ERROR: Function check_and_mount
ERROR: Failed to fsck one of the logical volumes.
Steven E. Protter
Exalted Contributor

Re: mount remote filesystem in service guard

Shalom,

Service guard can be used to bring up a high availability NFS file system. That file system must be on shared storage.

You can add logic to a Service Guard package script to do remote file system mounts as well, but there really is no reason.

You can not do a local NFS share of a file system that is already shared NFS by another system. That will not work and you should manage NFS on the system that owns the share.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Tricia Sambrano
Frequent Advisor

Re: mount remote filesystem in service guard

Steve,
True enough. That's why I was sticking to the easy question/answer. ;-)

Gireesh,
Is this something you are adding new? Is it something that worked before? What is the exact command you are using?

Trish
UNIX IS user friendly... it's just selective about who its friends are. -Fabio Esquivel
Anoop P_2
Regular Advisor

Re: mount remote filesystem in service guard

Gireesh, you just treated an nfs remote file system like a local file system with in the package. Hence the error.

It would not be a nice idea to have an NFS file system on a remote system added on to the package. (by adding logic ofcourse) This can cause package instabilities.

Instead, consider configuring automount on the client and consider starting and stopping automounter from with in the package. ( If there are no other nfs mounts )

Automounter will mount the remote file system when ever access is requested.

Hope it helps.
Suraj K Sankari
Honored Contributor

Re: mount remote filesystem in service guard

HI,

You can use HA NFS file system into a cluster but you cannot use local NFS.

Suraj
Sajjad Sahir
Honored Contributor

Re: mount remote filesystem in service guard


Gireesh

Yes, it is possible.

thanks and regards

Sajjad Sahir
Viktor Balogh
Honored Contributor

Re: mount remote filesystem in service guard

HA NFS is for exporting an NFS share from a HA package, not for mounting an external NFS share INTO a package!
****
Unix operates with beer.
Viktor Balogh
Honored Contributor

Re: mount remote filesystem in service guard

Gireesh,

you can add a "mount machine:/share /mntpoint" line into the "customer_defined_run_cmds" part, and of course an "umount..." into the stop part, but it's best to use automounter. Without automounter the package start would fail in case of an unreachable NFS server. Automounter mounts shares on-demand, this way the network won't be overheaded.


****
Unix operates with beer.