Forum Discussion

Pinku's avatar
Pinku
Level 5
10 years ago

Upgrade to 7.6.1 failing

My upgrade from NB 7.1.0.1 to 7.6.1 is failing, below is the snippet of the error.

Operating system:

netbackup:/tmp> uname -a
SunOS netbackup 5.10 Generic_147440-25 sun4v sparc SUNW,SPARC-Enterprise-T5120
netbackup:/tmp>

 

Snippet from install logs:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Participate in the NetBackup Product Improvement Program? [y,n] (y) y

Checking for required system conditions...

ok nbdb_ntfs_dir_symlink: inapplicable on solaris: skipping

ok remote_emm: No remote EMM is detected

Checking for recommended system conditions...

ok semaphore_limits: semaphore limits are high enough

not ok ulimit_nofiles: nofiles ulimit 256 is too low.

  NetBackup Master and Media Server processes may run slower if they are

  limited to fewer than 8000 open file descriptors.  This test runs

  'ulimit -n' and checks that the result is at least 8000 on NetBackup

  servers.  See

    https://www.symantec.com/docs/TECH75332

  for more information.

ok nb_761_hotfix_auditor: No potential for regression of hotfixes or EEBs was detected.

WARNING: One or more non-critical preinstall checks have failed.

Do you wish to continue? [y,n] (n) y

NetBackup is currently at release level 7.1.0.1.

This package will install release level 7.6.1.

Checking for pre-existing SYMCnetbp package.

Removing pre-existing SYMCnetbp package.

 
ERROR:   Removal of package SYMCnetbp was unsuccessful.

         Aborting...


== Checking for pre-existing package ==

application SYMCnetbp NetBackup and Media Manager

 

==== Removing pre-existing package ====

./install: pkgrm: not found

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

  • Pkgrm is in /usr/sbin. I bet its not in your $PATH. I bet it works if you are root. Try it. 

  • No, not as root. But tried using sudo. Will it require only root user?

  • Pkgrm is in /usr/sbin. I bet its not in your $PATH. I bet it works if you are root. Try it. 

  • okay, let me try it...I'll update you.....the next downtime is after 12 hours...

    Many thanks : )

  • You need to be root to use pkg commands. Folders such as /var/sadm can only be written to by root during package removal and installation. Find a sysadmin who can login as root or can su. Check that pkg commands can be used before you try again. Try pkginfo as a test.
  • This seems to be the problem:

    not ok ulimit_nofiles: nofiles ulimit 256 is too low.

    make sure that open files limit is the required 8000 before retrying the install

  • Hi,

     

    I fully agrre to marianne. You should be root. Test for pkginfo, pkgrm and pkgadd. The locaations differs.

    root@myhost # which pkgrm
    /usr/sbin/pkgrm
    root@myhost # which pkginfo
    /usr/bin/pkginfo
    root@myhost # which pkgadd
    /usr/sbin/pkgadd
    root@myhost #

    uname -a
    SunOS myhost 5.10 Generic_150400-23 sun4v sparc sun4v
    root@smyhost #

    As you can see pkginfo is for all pkgrm and pkgadd are in sbin directory.

    The ulimit value which is too low is no problem for upgrading or installation. But is recommended to change prior to upgrade. You may have performance issues.

    Global you can use settings in /etc/system:

    set rlim_fd_max = 8192
    set rlim_fd_cur = 8192

     

     

    ciao

    Martin

     

     

  • Root login worked and upgrade went successful.

    Thanks a lot Mr. WVT :)

    Wish I could add Marianne's post as solution as well. Thanks others for replying, appreciate your time.