Forum Discussion

Will_Restore's avatar
9 years ago

7.7.1 nbdeployutil broken on RedHat6

# nbdeployutil --gather

Can't load /tmp/p2xtmp/auto/attributes/attributes.so for module attributes: /tmp/p2xtmp/auto/attributes/attributes.so: failed to map segment from shared object: Operation not permitted at PERL2EXE_STORAGE/Dynaloader.pm

Compiliation failed in nbdeployutil line 6

 

  • All you can really do is remount it without noexec, perform the operation and then remount with noexec

  • I have now.  blush

     

    Was hoping someone had run into this issue & perhaps had a fix or workaround.

     

  • Do you perhaps have some security on the server that does not allow loading from /tmp? 

  • Will,

    I also have nbu 7.7.1 on RHEL6, and didn't see the same issue as you did 

    # nbdeployutil --gather
    NetBackup Deployment Utility, version 7.7.1
    Gathering license deployment information...
      Discovered master server nbu1
    co  Output for nbu1 at: /usr/openv/var/global/reports/20160229_185656_nbu1
    Gather DONE
    Execution time: 1 min 9 secs
    To create a report for this master server, run one of the following:
      capacity   : nbdeployutil --report --capacity /usr/openv/var/global/reports/20160229_185656_nbu1
      traditional: nbdeployutil --report --traditional /usr/openv/var/global/reports/20160229_185656_nbu1

    # uname -a
    Linux nbu1 2.6.32-573.el6.x86_64 #1 SMP Wed Jul 1 18:23:37 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux

    # cat /etc/*elease|tail -1
    Red Hat Enterprise Linux Server release 6.7 (Santiago)

    # cat /usr/openv/netbackup/bin/version
    NetBackup-RedHat2.6.18 7.7.1

    # ls -ld /tmp
    drwxrwxrwt 8 root root 4096 Feb 29 18:58 /tmp

    # df -k /tmp
    Filesystem           1K-blocks    Used Available Use% Mounted on
    /dev/mapper/vg_nbu1-lv_root
                          51475068 8937204  39916424  19% /

  • Yes, that is the trouble.  nbdeployutil is trying to execute in /tmp

     

    noexec on /tmp is a security requirement:  https://www.stigviewer.com/stig/red_hat_enterprise_linux_6/2015-05-26/finding/V-57569

     

     

  • All you can really do is remount it without noexec, perform the operation and then remount with noexec

  • Alternate workaround:

    export TEMP=/usr/openv/tmp

    and then run nbdeployutil