IBM Support

IJ36899: AFMCOS: LS FILESET ROOT GOT "INVALID ARGUMENT"

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Error Description:
    When there are two users with uid 0 in /etc/passwd,
    ls the AFM COS fileset root fails with an error
    "Invalid argument".
    
    # ll /gpfs01/afm02
    Sat Dec 11 23:02:10 CST 2021
    ls: reading directory '/gpfs01/afm02': Invalid argument
    total 0
    
    # awk -F : '{if ($3==0) print $0; }' /etc/passwd
    root:x:0:0:root:/root:/bin/bash
    test:x:0:0::/home/test:/bin/bash
    
    Reported in:
    Spectrum Scale 5.1.2.1 on RHEL7
    
    Known Impact:
    Unable to ls the directory.
    
    Verification steps:
    
    Recovery action:
    Change the non-root user's uid to a non-zero id.
    

Local fix

  • NA
    

Problem summary

  • If the /etc/passwd file has multiple entries for
    the same UID, readdir fails while downloading
    the objects due to incorrect parsing of the UID.
    

Problem conclusion

  • This problem is fixed in 5.1.2 PTF 4
    To see all Spectrum Scale APARs and
    their respective fix solutions refer to page
    https://public.dhe.ibm.com/storage/spectrumscale/spectrum_scale_
    apars.html
    
    
    Benefits of the solution:
    Fixed the code to use first entry from the passwd
    file if the UID has multiple entries.
    
    Work around:
    Remove duplicate entries from /etc/passwd
    
    Problem trigger:
    AFM+COS caching with duplicate entries in the passwd file
    
    Symptom: Unexpected results
    
    Platforms affected: All Linux OS environments
    
    Functional Area affected:  AFM
    
    Customer Impact: High Importance
    

Temporary fix

Comments

APAR Information

  • APAR number

    IJ36899

  • Reported component name

    SPEC SCALE DME

  • Reported component ID

    5737F34AP

  • Reported release

    512

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-12-29

  • Closed date

    2022-04-05

  • Last modified date

    2022-04-05

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    SPEC SCALE DME

  • Fixed component ID

    5737F34AP

Applicable component levels

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"STXKQY"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"512","Line of Business":{"code":"LOB26","label":"Storage"}}]

Document Information

Modified date:
06 April 2022