Tuesday, February 7, 2017

Solaris 10 - patch error


487  ls -ltra
  488  more rec_patchset_version
  489  pwd
  490  cat /var/sadm/install_data/rec_patchset_version
  491  cd /var/sadm/install_data
  492  ls
  493  ls -ltr
  494  mv s10s_rec_patchset_short_2017.02.06_15.34.05.log s10s_rec_patchset_verbose_2017.02.06_15.34.05                                                                                              .log s10s_rec_patchset_session_2017.02.06_15.34.05.dat s10s_rec_patchset_short_2017.02.06_16.33.15.log                                                                                               s10s_rec_patchset_verbose_2017.02.06_16.33.15.log s10s_rec_patchset_session_2017.02.06_16.33.15.dat /va                                                                                              r/tmp
  495  ls -ltra
  496  pwd
  497  cd /var/tmp/patch_Sol/10_Recommended_CPU_2017-01/
  498  nohup ./installcluster -R /alt --s10patchset > /alt/opt/Patches/10_Recommended.out 2>&1 &
  499  tail -f /alt/opt/Patches/10_Recommended.out
  500  tail -f /alt/opt/Patches/10_Recommended.out
  501  history
[root@sun-serv-p05]#


[root@sun-serv-p05]# pwd
/var/sadm/install_data
[root@sun-serv-p05]# cd /var/tmp/patch_Sol/10_Recommended_CPU_2017-01/
[root@sun-serv-p05]# nohup ./installcluster -R /alt --s10patchset > /alt/opt/Patches/10_Recommend                                                                                                     ed.out 2>&1 &
[1] 28334
[root@sun-serv-p05]# tail -f /alt/opt/Patches/10_Recommended.out
ERROR: Another instance of an install script is already running for target boot
       environment '/alt'.
^C
[1]+  Exit 1                  nohup ./installcluster -R /alt --s10patchset > /alt/opt/Patches/10                                                                                                     _Recommended.out 2>&1





# vi installcluster
and search for another instance
and remove the process

drwxr-xr-x   2 root     root         117 Feb  6 15:38 .patchset.fs.temp.mount.18383
drwxr-xr-x   2 root     root         117 Feb  6 16:52 .patchset.fs.temp.mount.28568
-rw-r--r--   1 root     root         100 Feb  6 16:52 .patchset.prereq.patch.order.28568
-rw-r--r--   1 root     root           0 Feb  6 16:52 .patchset.single.instance.lock.alt
-rw-r--r--   1 root     root        4060 Feb  6 16:53 .patchset.processed.patch.order.28568


start again and should be good

root@sinf-mg-p06 # nohup ./installcluster -R /alt --s10patchset > /alt/opt/Patch                                                                                                                     es/10_Recommended.out 2>&1 &
[1] 26811
root@sinf-mg-p06 # tail -f /alt/opt/Patches/10_Recommended.out
Setup ...........

CPU OS Patchset 2017/01 Solaris 10 SPARC (2017.01.13)
Application of patches started : 2017.02.06 15:38:33
Applying 120900-04 (  1 of 406) ... skipped
Applying 121133-02 (  2 of 406) ... skipped
Applying 119254-93 (  3 of 406) ... skipped
Applying 119317-01 (  4 of 406) ... skipped
Applying 121296-01 (  5 of 406) ... skipped
Applying 138215-02 (  6 of 406) ... skipped
Applying 148336-02 (  7 of 406) ... skipped
Applying 146054-07 (  8 of 406) ... skipped
Applying 142251-02 (  9 of 406) ... skipped
Applying 125555-16 ( 10 of 406) ... skipped
Applying 118367-04 ( 11 of 406) ... skipped
Applying 118666-86 ( 12 of 406) ... skipped
Applying 118667-86 ( 13 of 406) ... skipped
Applying 118705-02 ( 14 of 406) ... skipped
Applying 118706-01 ( 15 of 406) ... skipped
Applying 118707-05 ( 16 of 406) ... skipped
Applying 118708-19 ( 17 of 406) ... skipped


^^^^^^^^^^^^^^^^^^^^^^^
 360  lumount aBE01202017 /alt
  361  cd /repository/Solaris/patch/
  362  ls
  363  cd 10_Recommended_CPU_2017-01
  364  ls
  365  ./installcluster --apply-prereq --s10patchset
  366  lustatus
  367  nohup ./installcluster -R /alt --s10patchset > /alt/opt/Patches/10_Recommended.out 2>&1 &
  368  tail -f /alt/opt/Patches/10_Recommended.out
  369  pwdd
  370  pwd
  371  lustatus
  372  pwd
  373  tail -f /alt/opt/Patches/10_Recommended.out
  374  ps -ef | grep inst
  375  df -h /alt
  376  tail -f /alt/opt/Patches/10_Recommended.out
  377  ps -ef | grep inst
  378  kill -9 18383 18459
  379  ps -ef | grep inst
  380  lustatus
  381  nohup ./installcluster -R /alt --s10patchset > /alt/opt/Patches/10_Recommended.out 2>&1 &
  382  tail -f /alt/opt/Patches/10_Recommended.out
  383  ps -ef | grep /alt
  384  lustatus
  385  ps -ef | grep -i inst
  386  nohup ./installcluster -R /alt --s10patchset > /alt/opt/Patches/10_Recommended.out 2>&1 &
  387  tail -f /alt/opt/Patches/10_Recommended.out
  388  df -h
  389  luumount /alt
  390  df -h
  391  pwd
  392  luumount aBE01202017
  393  df -h
  394  ps -ef | grep install
  395  jobs
  396  nohup ./installcluster -R /alt --s10patchset > /alt/opt/Patches/10_Recommended.out 2>&1 &
  397  tail -f /alt/opt/Patches/10_Recommended.out
  398  lustatus
  399  luumount -f aBE01202017
  400  df -h
  401  lustatus
  402  ps -ef | more
  403  df -h
  404  lustatus
  405  ludelete aBE01202017
  406  lustatus
  407  lucreate -n aBE01202017
  408  lustatus
  409  lumount aBE01202017 /alt
  410  df -h /alt /
  411  pwd
  412  nohup ./installcluster -R /alt --s10patchset > /alt/opt/Patches/10_Recommended.out 2>&1 &
  413  tail -f /alt/opt/Patches/10_Recommended.out
  414  ps -ef | more
  415  lustatus
  416  zfs list
  417  df -h
  418  lustatus
  419  pwd
  420  luumount aBE01202017
  421  df -h
  422  ps -ef | more
  423  lustatus
  424  lumount aBE01202017 /alt
  425  df -h
  426  fuser -cu /alt
  427  pwd
  428  ls
  429  df -h .
  430  ls
  431  pwd
  432  pwd
  433  ls
  434  cd ..
  435  ls
  436  pwd
  437  cd /var/tmp/patch_Sol/
  438  ls
  439  unzip /repository/Solaris/patch/10_Recommended_CPU_2017-01.zip
  440  pwd
  441  df -h
  442  pwd
  443  ls
  444  cd 10_Recommended_CPU_2017-01/
  445  ls
  446  ./installcluster --apply-prereq --s10patchset
  447  pwd
  448  ls
  449  nohup ./installcluster -R /alt --s10patchset > /alt/opt/Patches/10_Recommended.out 2>&1 &
  450  tail -f /alt/opt/Patches/10_Recommended.out
  451  fuser -cu /alt
  452  ps -ef | grep alt
  453  ps -ef | more
  454  ps -ef | grep -i inst
  455  df -h
  456  tail -f /alt/opt/Patches/10_Recommended.out
  457  cd /alt
  458  ls
  459  cd var
  460  ls
  461  cd sadm/
  462  ls
  463  cd install_data/
  464  ls
  465  ls -ltr
  466  mv s10s_rec_patchset_short_2017.02.06_15.34.05.log s10s_rec_patchset_verbose_2017.02.06_15.34.05                                                                                              .log s10s_rec_patchset_session_2017.02.06_15.34.05.dat /alt/var/tmp
  467  cd
  468  cd -
  469  cd /var/tmp/patch_Sol/
  470  cd 10_Recommended_CPU_2017-01/
  471  nohup ./installcluster -R /alt --s10patchset > /alt/opt/Patches/10_Recommended.out 2>&1 &
  472  tail -f /alt/opt/Patches/10_Recommended.out
  473  ps -ef | grep alt
  474  fuser /alt/var
  475  cd /var/tun
  476  cd /var/run
  477  ls -ltr
  478  pwd
  479  cd ../alt/var/
  480  cd /alt/var
  481  ls
  482  cd sadm/
  483  ls
  484  cd install_data/
  485  ls
  486  ls -ltr
  487  ls -ltra
  488  more rec_patchset_version
  489  pwd
  490  cat /var/sadm/install_data/rec_patchset_version
  491  cd /var/sadm/install_data
  492  ls
  493  ls -ltr
  494  mv s10s_rec_patchset_short_2017.02.06_15.34.05.log s10s_rec_patchset_verbose_2017.02.06_15.34.05                                                                                              .log s10s_rec_patchset_session_2017.02.06_15.34.05.dat s10s_rec_patchset_short_2017.02.06_16.33.15.log                                                                                               s10s_rec_patchset_verbose_2017.02.06_16.33.15.log s10s_rec_patchset_session_2017.02.06_16.33.15.dat /va                                                                                              r/tmp
  495  ls -ltra
  496  pwd
  497  cd /var/tmp/patch_Sol/10_Recommended_CPU_2017-01/
  498  nohup ./installcluster -R /alt --s10patchset > /alt/opt/Patches/10_Recommended.out 2>&1 &
  499  tail -f /alt/opt/Patches/10_Recommended.out
  500  tail -f /alt/opt/Patches/10_Recommended.out
  501  history
[root@sun-serv-p05]# pwd
/root
[root@sun-serv-p05]# cd /var/run
[root@sun-serv-p05]# ls -ltr
total 160
-rw-r--r--   1 root     root        8192 Nov 10 19:23 tzsync
drwxr-xr-x   3 root     root         191 Nov 10 19:23 sysevent_channels
Dr--r--r--   1 root     root           0 Nov 10 19:23 name_service_door
-rw-------   1 root     root           0 Nov 10 19:23 ipsecconf.lock
Dr--r--r--   1 root     root           0 Nov 10 19:23 picld_door
drwxr-xr-x   2 daemon   daemon       117 Nov 10 19:23 daemon
-rw-r--r--   1 root     root           0 Nov 10 19:23 nfs4_domain
drwx------   2 root     root         182 Nov 10 19:23 smc898
Drw-r--r--   1 root     root           0 Nov 10 19:23 syslog_door
-rw-r--r--   1 root     root           4 Nov 10 19:23 syslog.pid
-rw-r--r--   1 root     root           4 Nov 10 19:23 sshd.pid
-rw-------   1 root     smmsp         32 Nov 10 19:23 sendmail.pid
drwxrwxrwt   2 root     root         186 Nov 10 19:23 rpc_door
-rw-r--r--   1 root     root           0 Nov 10 19:24 rcm_daemon_lock
Dr--------   1 root     root           0 Nov 10 19:24 rcm_daemon_door
-rw-rw-rw-   1 root     bin            0 Nov 10 19:24 cdrom_rcm.conf
-rw-------   1 root     root        1068 Nov 10 19:24 rcm_daemon_state
-rw-------   1 root     root           0 Nov 10 19:25 AdDrEm.lck
----------   1 root     root           4 Nov 10 19:30 auditmanager.pid
Drw-r--r--   1 root     root           0 Feb  6 17:08 hotplugd_door
[root@sun-serv-p05]# ls -ltra
total 245
drwxr-xr-x  52 root     sys           52 Dec 30  2014 ..
-rw-r--r--   1 root     root        8192 Nov 10 19:23 tzsync
drwxr-xr-x   3 root     root         191 Nov 10 19:23 sysevent_channels
Dr--r--r--   1 root     root           0 Nov 10 19:23 name_service_door
-rw-------   1 root     root           0 Nov 10 19:23 ipsecconf.lock
Dr--r--r--   1 root     root           0 Nov 10 19:23 picld_door
drwxr-xr-x   2 daemon   daemon       117 Nov 10 19:23 daemon
-rw-r--r--   1 root     root           0 Nov 10 19:23 nfs4_domain
drwx------   2 root     root         182 Nov 10 19:23 smc898
Drw-r--r--   1 root     root           0 Nov 10 19:23 syslog_door
-rw-r--r--   1 root     root           4 Nov 10 19:23 syslog.pid
-rw-r--r--   1 root     root           4 Nov 10 19:23 sshd.pid
-rw-------   1 root     smmsp         32 Nov 10 19:23 sendmail.pid
drwxrwxrwt   2 root     root         186 Nov 10 19:23 rpc_door
srwxr-xr-x   1 root     root           0 Nov 10 19:23 .inetd.uds
-rw-r--r--   1 root     root           0 Nov 10 19:24 rcm_daemon_lock
Dr--------   1 root     root           0 Nov 10 19:24 rcm_daemon_door
-rw-rw-rw-   1 root     bin            0 Nov 10 19:24 cdrom_rcm.conf
-rw-------   1 root     root        1068 Nov 10 19:24 rcm_daemon_state
-rw-------   1 root     root           0 Nov 10 19:25 AdDrEm.lck
----------   1 root     root           4 Nov 10 19:30 auditmanager.pid
drwxr-xr-x   2 root     root         117 Feb  6 15:38 .patchset.fs.temp.mount.18383
drwxr-xr-x   2 root     root         117 Feb  6 16:52 .patchset.fs.temp.mount.28568
-rw-r--r--   1 root     root         100 Feb  6 16:52 .patchset.prereq.patch.order.28568
-rw-r--r--   1 root     root           0 Feb  6 16:52 .patchset.single.instance.lock.alt
-rw-r--r--   1 root     root        4060 Feb  6 16:53 .patchset.processed.patch.order.28568
Drw-r--r--   1 root     root           0 Feb  6 17:08 hotplugd_door
drwxr-xr-x   8 root     sys         2007 Feb  6 17:13 .
[root@sun-serv-p05]# tail -f /alt/opt/Patches/10_Recommended.out
 120195-02     121104-11     137090-02     145200-13     152250-01
 120412-11     121136-02     138824-12     147992-06     152252-01
 120414-27     121211-02     139291-02     150616-01     152254-01
 120811-09     122031-01     143317-03
Installation of patch set to alternate boot environment complete.
Install log files written :
  /alt/var/sadm/install_data/s10s_rec_patchset_short_2017.02.06_16.53.16.log
  /alt/var/sadm/install_data/s10s_rec_patchset_verbose_2017.02.06_16.53.16.log
^C
[root@sun-serv-p05]# pwd
/var/run
[root@sun-serv-p05]# cd /repository/Solaris/patch/
[root@sun-serv-p05]# ls
10_Recommended_CPU_2017-01      10_Recommended_CPU_2017-01.zip  patches
[root@sun-serv-p05]# cd patches/
[root@sun-serv-p05]# ls
123893-80      123893-80.zip  138352-03      138352-03.zip
[root@sun-serv-p05]# for i in 123893-80 138352-03; do  patchadd -R /alt $i ; done
Validating patches...
Loading patches installed on the system...
Done!
Loading patches requested to install.
Done!
Checking patches that you specified for installation.
Done!

Approved patches will be installed in this order:
123893-80

No comments:

Post a Comment