IBM Support

IJ01066: AFM: CANNOT DELETE FILES UNDER DIRECTORY .PTRASH

 

APAR status

  • Closed as program error.

Error description

  • Problem Description:
    In a Spectrum Scale AFM environment, an error message may
    be encountered when deleting a directory from the .ptrash
    directory, provided it is yet to be fully cached.
    
    Reported in:
    Spectrum Scale 4.2.3.2 on CentOS Linux 7
    
    Known Impact:
    If directory is deleted at the home site, it will be
    moved
    to the .ptrash directory. Deleting the directory from
    .ptrash
    fails if it is not yet cached.
    
    Error Message such as:
    [root@node1]# rm -rf file
    rm: cannot remove  file
    /gpfs/afm : Directory not empty
    
    Verification Steps:
    1. Create a Independent-writer/Read-only fileset.
    2. Create directory structure at home d1/d2/d3.
    3. stat d1 at cache.
    4. Delete d1 at home.
    5. d1 at cache will be moved to .ptrash, and cannot be
       deleted using rm command.
    

Local fix

  • mmafmlocal rm -rf directory
    

Problem summary

  • Deletion of directory is not allowed until it is
    fully cached to avoid missing deletes at home when
    directory is removed locally. If directory is
    deleted at home, it will be moved to .ptrash.
    Deleting the same directory from .ptrash fails if
    it is not cached (readdir is not performed).
    

Problem conclusion

  • Check for local bit (gets set when dir is moved to
    .ptrash) and allow deletion of the directory from
    the .ptrash directory.                    423                 42
    

Temporary fix

  • 3 MPORARY FIX:
    

Comments

APAR Information

  • APAR number

    IJ01066

  • Reported component name

    SPECTRUM SCALE

  • Reported component ID

    5725Q01AP

  • Reported release

    423

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-10-27

  • Closed date

    2017-10-27

  • Last modified date

    2019-06-28

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

    IV99839

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

Fix information

  • Fixed component name

    SPECTRUM SCALE

  • Fixed component ID

    5725Q01AP

Applicable component levels

  • R423 PSY U885025

       19/06/28 I 1000

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"STXKQY","label":"IBM Spectrum Scale"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"423","Edition":"","Line of Business":{"code":"LOB26","label":"Storage"}},{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSFKCN","label":"General Parallel File System"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"423","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
28 June 2019