AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Using HACMP and NFS together

    Posted Mon September 03, 2007 10:06 PM

    Originally posted by: SystemAdmin


    Hi,

    need advice on this.

    Is it possible to assign a mountpoint from a SAN storage to server1 & server2.
    Use NFS to the same mountpoint from server2 so that concurrent access is allowed.
    Can this setup be used together with HACMP?
    If server1 crash, the mountpoint resource will swing to server2, will it automatically remove the NFS and server2 take over the mountpoint resource and become active.

    Simpler approach is to use PFSS?

    Any ideas?

    Regards
    #AIX-Forum


  • 2.  Re: Using HACMP and NFS together

    Posted Tue September 04, 2007 09:28 AM

    Originally posted by: grukrz1


    I am not sure I get right your question but NFS in HACMP are possible.

    For example, you have two resource groups in the 2 node cluster: RG1 and RG2 with following startup/fallover/fallback policies:
    Resource Group Name RG1
    Participating Node Name(s) CLNODE1 CLNODE2
    Startup Policy Online On Home Node Only
    Fallover Policy Fallover To Next Priority Node In The List
    Fallback Policy Fallback To Higher Priority Node In The List

    Resource Group Name RG2
    Participating Node Name(s) CLNODE2 CLNODE1
    Startup Policy Online On Home Node Only
    Fallover Policy Fallover To Next Priority Node In The List
    Fallback Policy Fallback To Higher Priority Node In The List

    You have shared VG built on shared SAN disks (configured on both cluster nodes)

    In RG1 (lets call it primary or parent RG) you configure shared VG and NFS:
    Filesystems/Directories to be exported /fs_on_shared_VG Filesystems to be NFS mounted /fs_on_shared_VG_NFS;/fs_on_shared_VG
    Volume Groups sharedvg

    Having above, when the cluster is started:

    on CLNODE1:
    • RG1 is brought ONLINE
    • sharevg is "active" and shared fs are mounted
    • NFS filesystem CLNODE1:/fs_on_shared_VG is mounted to mountpoint /fs_on_shared_VG_NFS

    on CLNODE2:
    • RG2 is brought ONLINE
    • NFS filesystem CLNODE1:/fs_on_shared_VG is mounted to mountpoint /fs_on_shared_VG_NFS
    When you takeover RG1 to RG2 you will have on CLNODE2:
    • RG1 & RG2 ONLINE
    • sharevg "active" and shared fs are mounted
    • NFS filesystem CLNODE1:/fs_on_shared_VG mounted to mountpoint /fs_on_shared_VG_NFS

    Is that what you were asking about?
    #AIX-Forum


  • 3.  Re: Using HACMP and NFS together

    Posted Wed September 05, 2007 04:45 AM

    Originally posted by: SystemAdmin


    Hi grukrz1,
    thanks for replying.
    I am a newbie at this so not very sure of the setup.

    1) Server A and B both are assigned same VG from SAN storage.

    2) Server A takes possession of resources /TEST and is active (HACMP)

    3) Server B using NFS shares the /TEST from Server A.

    Cluster WAS Application (active:active) in Server A & B concurrently writes to /TEST.

    4) When Server A crashes or goes offline, HACMP auto swing resources /TEST over to Server B and becomes active.

    Server B NFS connection to Server A is lost when Server A becomes offline but empty mountpoint remains. When HACMP swing resources over (same mountpoint name), will there be problems?
    #AIX-Forum


  • 4.  Re: Using HACMP and NFS together

    Posted Sun September 16, 2007 09:17 PM

    Originally posted by: SystemAdmin


    I got the solution already. Actually the feature and function can be configured inside HACMP.

    NFS can be configured via HACMP.
    Primary node via hacmp can configure sharedvg on SAN storage
    Include to export out
    Specify folder name to mount
    Sync the HA clusters

    /NFS_share (sharedvg seen by primary node)
    /abc (mounted slice seen by both primary & secondary node)

    When primary node goes down, /NFS_share resource will swing over to secondary node, /abc remains intact.

    Cheers

    #AIX-Forum