[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference smurf::ase

Title:ase
Moderator:SMURF::GROSSO
Created:Thu Jul 29 1993
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2114
Total number of notes:7347

2044.0. " Can ASE member act as a nfs service client?" by NNTPD::"[email protected]" (Feynman Lo) Mon May 05 1997 05:04

In an ASE cluster of two members, is it recommended that an ASE member
to NFS mount the NFS service which is currently running
on the other member system ?

Actually we tried this and obviously we encountered problem
when the NFS service is trying to failover using the default
setting. 

Is it possible to make it work? What should be done in the
service start/stop scripts?

-feynman

[Posted by WWW Notes gateway]
T.RTitleUserPersonal
Name
DateLines
2044.1It works if you follow the rules.ZEKE::ranger.zko.dec.com::dilsworthKeith DilsworthMon May 05 1997 11:413
This can be done.  The main thing is not to NFS mount it at the ASE 
mount point.  Another thing is not to try and mount it durring bootup 
before ASE has started.
2044.2be careful and check the notes conferenceUSCTR1::ASCHERDave AscherMon May 05 1997 12:4328
re: .0
    
    It can be done - but you should make sure that you understand
    what is going on thoroughly... this notes conference is full
    of people's problems when they (we) did not completely understand
    all that ASE is doing under the covers.
    
    Be particularly aware that 
    
    - ASE is going to call the shutdown script during the ASE startup
    process on each node where the service is NOT going to be started
    at that time.
    
    - ASE will [Blocate the exported directories in
    /var/ase/mnt/servicename/directorypath but a mount of
    'directorypath@servicename' will actually find the desired
    directories.

    - there is no clear, supported mechanism for coordinating the
    order of startup of services
    
    - the shutdown of a service will be impeded (to put it delicately)
    if any of the files are open locally on the system providing
    the service.
    
    Good luck.
    
    
2044.3BRSDVP::DEVOSManu Devos NSIS Brussels 856-7539Mon May 05 1997 13:5721
    Hi,
    
>    In an ASE cluster of two members, is it recommended that an ASE member
>    to NFS mount the NFS service which is currently running on the other member system ?
                      +++++++++++
    
    Yes, if it is a NFS service without any problem. You can even place the
    servicename:/exported_path (or /exported_path@servicename) in the
    /etc/fstab file. I suggest that you place the NFS option "bg" to put
    the mount in "background" just in case the service is not running at
    the boot-up of this system. You even don't need any particular stop
    script action as an open file on a NFS filesystem does NOT block the
    un-mounting operation.
    
    If it is NOT an NFS service but a DISK service, then the things are
    more complicated. You should NOT use directly /etc/exports to export
    the DISK service filesystem(s), but use the ASE provided scripts in
    /var/ase/sbin (nfs_mountd and nfs_lock). There is a note explaining how
    to proceed in this notefile
    
    Manu.
2044.4USCTR1::ASCHERDave AscherMon May 05 1997 19:0217
    
.    Yes, if it is a NFS service without any problem. You can even place the
.    servicename:/exported_path (or /exported_path@servicename) in the
.    /etc/fstab file. I suggest that you place the NFS option "bg" to put
.    the mount in "background" just in case the service is not running at
.    the boot-up of this system. You even don't need any particular stop
.    script action as an open file on a NFS filesystem does NOT block the
.    un-mounting operation.
.
    
    Manu is, as usual, correct. Of course, you need to remember
    that you should not locally mount that directory on the system
    where it 'usually' resides - only nfs mount it.
    
    Also, don't forget to set the syconfigtab parameter for loop
    back mounts...    

2044.5loop back entry??DYOSW5::WILDERDoes virtual reality get swapped?Tue May 06 1997 08:283
    And the sysconfigtab entry for loop back is???
    
    
2044.6loop back entry !ALFAM7::GOSEJACOBTue May 06 1997 09:154
    re .5
    
    vm:
            ubc-nfsloopback = 1
2044.7Uh-oh....WONDER::BENTOI've got TV but I want T-Rex...Tue May 06 1997 13:436
    How come I don't find this parameter in my sysconfigtab files?
    
    V1.4 TCR
    V4.0b UNIX
    
    -Tony
2044.8you need to look at a different placeALFAM7::GOSEJACOBWed May 07 1997 04:3125
    re .7
    Well, the /etc/sysconfigtab file usually contains only a fraction of
    the kernel parameters. The rule of thumb is: you only put parameters
    there that you want to assign values different from the default values
    hardcoded into the kernel.
    
    	sysconfig -s 
    
    will tell you which subsystems are currently configured into the
    kernel. And
    
    	sysconfig -q <subsystem>
    
    will tell you the current values of all parameters for that subsystem.
    So try
    
    	sysconfig -q vm | grep nfs
    
    to check your current setting of ubc-nfsloopback. In any case I always
    only trust sysconfig -q because /etc/sysconfigtab might have changed
    since the last re-boot. Or a parameter setting might not have been
    accepted during re-boot.
    
    	Martin
    
2044.9why does it work without ubc-nfsloopback = 1DOOSJE::HERTAFor something fulfilled this hour, loved, or enduredWed May 07 1997 07:1015
Re:.4 - Dave Ascher
>    Also, don't forget to set the syconfigtab parameter for loop
>    back mounts...    
Is this really necessary?  Reading this note, I remembered I forgot to do this, 
yet my NFS service with loop back mount works fine.  

Why? Could it be that this parameter does not need to be there because the mount 
goes against the IP name/address for the NFS service rather than to the hostname
of the system doing the NFS mount? Or am I getting penalties in performance that 
I just haven't noticed yet?

I guess the real question is, how does this ubc-nfsloopback parameter actually
work?

Herta
2044.10Not in there...WONDER::BENTOI&#039;ve got TV but I want T-Rex...Wed May 07 1997 10:0310
    re: .8
    
    I used both "sysconfig -q vm | grep nfs" as well as "dxkerneltuner"
    and found that all 14 of my systems that I have configured with ASE
    in various configurations, do NOT have this parameter setting!
    
    As .9 brings up, am I running with performance problems I don't know 
    about?
    
    -TB
2044.11available since 4.0BALFAM7::GOSEJACOBWed May 07 1997 11:569
    re .10
    Are you sure you are running 4.0b?
    
    Check out TURRIS::DIGITAL_UNIX
    
    	8338.*
    	9345.*
    
    	Martin
2044.12Yup, I'm sure...WONDER::BENTOI&#039;ve got TV but I want T-Rex...Wed May 07 1997 14:461
    Yes V4.0b on all of the 14 systems....
2044.13USCTR1::ASCHERDave AscherWed May 07 1997 16:0436
    Sorry to cause such a panic... It is my understanding that
    the parameter takes care of a problem that has existed since
    3.2A or so - our first SMP version of UNIX. The symptom was
    that processes that were using files that are nfs mounted from
    directories that are exported from the same system as the client
    is running on will get themselves into "U" state - which means
    that they cannot be stopped and that they will never continue.
    SOme kind of underlying corruption of ubc structures. There
    was a series of apparent mildly effective patches that came
    out under 3.2x which probably still left some design holes 
    and made the problem less likely to occur (and harder to identify
    when it did occur). 
    
    Personally, I avoid the use of nfs loopback mounts rather than
    have to worry about this old bug cropping up again. I'm not
    all that confident about what appears to be yet another crude
    workaround that gets turned on by this parameter.
    
    When faced with the necessity of having an nfs service that
    moves between nodes and that has to be mounted on both nodes
    I use a disk service with links on the local system to the
    directory in question... which leads to a lot of pain in the
    neck complexity like having to NOT have ASE do the file system
    mounts/umounts so I can have the start/stop scripts do the
    right things at the right times... like use lsof or fuser to
    identify any processes that have locally opened files in the
    file system so they can be killed (which may be a problem for
    some applications, I would think), remove links and create
    links, etc.. .
    
    Unfortunately I do not have any simple example scripts to share
    - the functionality is buried in complicated scripts used with
    SAP. 
    
    
2044.14I got to know...WONDER::BENTOI&#039;ve got TV but I want T-Rex...Wed May 07 1997 17:1911
    So can someone explain to me whether or not this parameter should be 
    set at "1" or left at "0" and what the implications are?
    If it should be set, why isn't the INSTALL doing it or the
    documentation telling me to do it?
    
    I'm telling folks that for reasons of performance they should not be
    using NFS mounted filesystems.  If I'm getting no performance benefit
    from ASE NFS loopback then I want to tell them instead of having them
    tell me.
    
    	-TB
2044.15KITCHE::schottEric R. Schott USG Product ManagementWed May 07 1997 19:2410
Hi

 Set it to 1, it fixes a possible deadlock condition within the buffer
cache code when the system is a client/server of itself.

I think we need to improve the docs here if no one can find
references to it in release notes/tuning guides...

A qar might be in order here.

2044.16Can I really manually relocate the service?NNTPD::&quot;[email protected]&quot;Feynman LoTue May 13 1997 05:3127
Thanks for all the suggestions.
We tried the scenario with the following configuration:

- Define the NFS service.

- the service is NFS exported as, say /service_mount@service_alias

- Each member system acts as a NFS client to mount the NFS service.
  The member running the service will be doing a NFS loopback mount
  on the NFS service. We have done the vm: ubc-nfsloopback=1

- Add the nfs entry in  /etc/fstab on the two member systems

  /service_mount@service_alias    /nfs_mount  nfs  hard,rw,intr,bg 0 0



But when we try to manually relocate the NFS service from
member A to member B using asemgr, it fails to do so.

Can I really manually relocate the NFS service using asemgr,
under such scenario? Or somethings I have been missing?

-feynman

[Posted by WWW Notes gateway]
2044.17COMICS::CORNEJWhat&#039;s an Architect?Tue May 13 1997 07:467
    Is anyone on the system exporting the service accessing the files
    directly (rather than the NFS mount)?
    
    What does the daemon log have to say?
    
    Jc
    
2044.18On more question...NNTPD::&quot;[email protected]&quot;Feynman LoWed May 21 1997 08:2411
Because this configuration is not documentated in the
manuals, the customer need to know whether Digital
will support the configuration or not in case
there are further issues encountered in the future.

Could someone comment on this?

-feynman

[Posted by WWW Notes gateway]
2044.19BACHUS::DEVOSManu Devos NSIS Brussels 856-7539Wed May 21 1997 18:227
    
    ...
    
    if everything were documented in the manuals, I would not find the
    time to read them :-)  Go ahead, I will support you !
    
    Manu.