AIX

AIX

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


#Power
#Power
 View Only
  • 1.  AIX VSCSI Failover – From Issue to Resolution

    Posted 5 days ago

    Earlier, we faced recurring issues with LPARs hanging during VIO failover - especially when one VIOS went down, the disks would temporarily lose path access.

    After some deep-dive analysis and tuning, here's what fixed it 

    # chdev -l hdiskX -a queue_depth=32 -P # chdev -l hdiskX -a hcheck_interval=60 -P # chpath -l hdiskX -p vscsiX -a priority=2 # adjusted one path per VSCSI # Reboot the LPAR before testing

    Testing Results:

    • Test 1 (Shutdown VIOS1): LPAR stayed accessible, paths auto-recovered.

    • Test 2 (Shutdown VIOS2): Same result - no hang, smooth recovery.

    ✅ Issue resolved - stable VSCSI failover confirmed!


     Next step: Plan migration from VSCSI → NPIV for higher I/O performance and simplified management on modern FC adapters.



    ------------------------------
    Abbas Meeran
    ------------------------------


  • 2.  RE: AIX VSCSI Failover – From Issue to Resolution

    Posted 5 days ago

    Hi Abbas

    it was my pleasure to working with you and to resolving the vscsi hange issue .

    now the environment are stable after we implemented and applied the tuning parameters for vscsi disk .

    lets plan for NPIV instead of vscsi.

    thank you 

    Anas



    ------------------------------
    Anas AlSaleh
    IBM Power Systems Software Specialist
    Saudi Business Machines ( SBM )
    Riyadh
    ------------------------------



  • 3.  RE: AIX VSCSI Failover – From Issue to Resolution
    Best Answer

    Posted 3 days ago

    Just a small tip on the chdev commands: if you use -U instead of -P the reboot is not required. Any parameter shown as 'True+' in the output from lsattr -E -l can be updated this way:

    [root@aix2 /]# lsattr -E -l hdisk0
    PCM             PCM/friend/vscsi                 Path Control Module        False
    algorithm       fail_over                        Algorithm                  True
    hcheck_cmd      test_unit_rdy                    Health Check Command       True+
    hcheck_interval 0                                Health Check Interval      True+
    hcheck_mode     nonactive                        Health Check Mode          True+
    max_transfer    0x20000                          Maximum TRANSFER Size      True
    pvid            00d952faebba7f180000000000000000 Physical volume identifier False
    queue_depth     8                                Queue DEPTH                True+
    reserve_policy  no_reserve                       Reserve Policy             True+



    ------------------------------
    Zaki Jääskeläinen
    ------------------------------



  • 4.  RE: AIX VSCSI Failover – From Issue to Resolution

    Posted 3 days ago

    Thank you and working as expected.



    ------------------------------
    Abbas Meeran
    ------------------------------



  • 5.  RE: AIX VSCSI Failover – From Issue to Resolution

    Posted 3 days ago
    Did you set the vscsi_path_to and vscsi_err_recov attributes on the
    vscsi adapters on the client LPAR?

    chdev -l vscsi0 -a vscsi_path_to=30 -a vscsi_err_recov=fast_fail -P

    These were required in dual VIO configurations to failover vscsi
    hdisks quickly and correctly.

    Without those you'd see issues with failover and automatic healing.

    Thanks.

    On Mon, Nov 03, 2025 at 02:44:03AM +0000, Abbas Meeran via IBM TechXchange Community wrote:
    > Earlier, we faced recurring issues with LPARs hanging during VIO failover - especially when one VIOS went down, the disks would temporarily lose path access.
    >
    > After some deep-dive analysis and tuning, here's what fixed it
    >
    >
    >
    >
    >
    >
    >
    > # chdev -l hdiskX -a queue_depth=32 -P
    > # chdev -l hdiskX -a hcheck_interval=60 -P
    > # chpath -l hdiskX -p vscsiX -a priority=2 # adjusted one path per VSCSI
    > # Reboot the LPAR before testing
    >
    >
    >
    > Testing Results:
    >
    >
    >
    > Test 1 (Shutdown VIOS1): LPAR stayed accessible, paths auto-recovered.
    >
    >
    >
    > Test 2 (Shutdown VIOS2): Same result - no hang, smooth recovery.
    >
    >
    >
    > ✅ Issue resolved - stable VSCSI failover confirmed!
    >
    >
    > Next step: Plan migration from VSCSI → NPIV for higher I/O performance and simplified management on modern FC adapters.
    >
    >
    > ------------------------------
    > Abbas Meeran
    > ------------------------------
    >
    >
    > Reply to Sender : https://community.ibm.com/community/user/eGroups/PostReply?GroupId=6049&MID=817188&SenderKey=18f9f196-b06b-4bfd-90af-018f7d42fc6c
    >
    > Reply to Discussion : https://community.ibm.com/community/user/eGroups/PostReply?GroupId=6049&MID=817188
    >
    >
    >
    > You are subscribed to "AIX" as Russell.Adams@AdamsSystems.nl. To change your subscriptions, go to http://community.ibm.com/community/user/preferences?section=Subscriptions. To unsubscribe from this community discussion, go to https://community.ibm.com/HigherLogic/eGroups/Unsubscribe.aspx?UserKey=c23dfccc-9910-40ae-beeb-fdcbced5bf1f&sKey=KeyRemoved&GroupKey=7b554d78-d4dc-417a-b4dc-017e309e5c91.


    ------------------------------------------------------------------
    Russell Adams Russell.Adams@AdamsSystems.nl
    Principal Consultant Adams Systems Consultancy
    https://adamssystems.nl/




  • 6.  RE: AIX VSCSI Failover – From Issue to Resolution

    Posted 2 days ago

    A common problem that causes VSCSI failover issues is that the hdiskX in the VIO doesn't have "reserve_policy=no_reserve" set.  This blocks both VIOs from accessing the disk on the SAN and being able to actually serve I/O for it.

    This page - https://aix4admins.blogspot.com/2011/06/virtual-scsi-virtual-scsi-is-based-on.html, under Multipathing with dual VIO config outlines how to setup VSCSI for correct operation of failover in a dual VIO environment.



    ------------------------------
    Phill Rowbottom
    Unix Consultant
    Service Express
    Bedford
    ------------------------------