IBM TechXchange Group

 View Only

commands not working after moving to smb3

  • 1.  commands not working after moving to smb3

    Posted Mon April 29, 2024 12:00 PM

    Hi All,

    We were having filesystem exports from windows fileshare mounted on datastage aix server with cifs protocol, but due to hardening policy cifs was disabled and we then mounted shares with smbc protocol, but post that we started receiving failures in jobs as some commands started to through extra messages which made the command return code 1 instead of 0.
    ------------------------------------------------
    xxxx@xxxxxx:/usr/local/datastage/scripts # cp -p mani.txt /data/datastage_smbc/CDD_Dev/
    cp: /data/datastage_smbc/CDD_Dev/mani.txt: An attempt was made to set an attribute to an unsupported value.
    cp: /data/datastage_smbc/CDD_Dev/mani.txt: An attempt was made to set an attribute to an unsupported value.
    cp: not all requested changes were made to /data/datastage_smbc/CDD_Dev/mani.txt
    xxxx@xxxxx:/usr/local/datastage/scripts # echo $?
    1

    To resolve this issue we build a wrapper script, which is then returning proper return code, we tested this on aix server. 
    -------------------------------------------------------
    Now to use the same wrapper script on datastage server we created alias so job level changes can be avoided. But unfortunately on job level these commands fails on the contrary if we execute such alias over aix server it succeed.

    -------------------------------------------------------
    xxx@xxxxxx:/usr/local/datastage/scripts # alias gzip='/usr/local/datastage/scripts/gzip_wrapper.sh'
    xxx@xxxxxx:/data/datastage/CDD_Dev # touch mani.txt
    xxx@xxxxxx:/data/datastage/CDD_Dev # gzip mani.txt
    xxx@xxxxxx:/data/datastage/CDD_Dev # echo $?
    0
    --------------------------------------------------

    To test it further we defined alias in dsenv and restarted engine, but still scenario remains same on job level it fails but on server level same alias works.

    Can you help here..
    let us know if anything is not clear



    ------------------------------
    Iqbal Singh
    ------------------------------