Find in this Blog

Saturday, November 14, 2020

SLES 15 SP1 UPGRADE TO SP2 single step ---Upgrading with Zypper

#Upgrading with Zypper

When performing the Service Pack migration, YaST will install all recommended packages. Especially in the case of custom minimal installations, this may increase the installation size of the system significantly.

To change this default behavior and allow only required packages, adjust the solver.onlyRequires option in /etc/zypp/zypp.conf.


</ vi /etc/zypp/zypp.conf


solver.onlyRequires = true

installRecommends=false


Make sure SUSE connect is available with the system .

Register your SUSE Linux Enterprise machine if you have not done so:

sudo SUSEConnect --regcode YOUR_REGISTRATION_CODE


Run zypper migration:

</sudo zypper migration


Executing 'zypper patch-check --updatestack-only'

Refreshing service 'Basesystem_Module_15_SP1_x86_64'.
Refreshing service 'Desktop_Applications_Module_15_SP1_x86_64'.
Refreshing service 'SAP_Applications_Module_15_SP1_x86_64'.
Refreshing service 'SUSE_Linux_Enterprise_High_Availability_Extension_15_SP1_x86_64'.
Refreshing service 'SUSE_Linux_Enterprise_Server_for_SAP_Applications_15_SP1_x86_64'.
Refreshing service 'Server_Applications_Module_15_SP1_x86_64'.
Building repository 'SLE-Module-Basesystem15-SP1-Pool' cache .......................................................................................................................................[done]
Retrieving repository 'SLE-Module-Basesystem15-SP1-Updates' metadata ...............................................................................................................................[done]
Building repository 'SLE-Module-Basesystem15-SP1-Updates' cache ....................................................................................................................................[done]
Building repository 'SLE-Module-Desktop-Applications15-SP1-Pool' cache .............................................................................................................................[done]
Retrieving repository 'SLE-Module-Desktop-Applications15-SP1-Updates' metadata .....................................................................................................................[done]
Building repository 'SLE-Module-Desktop-Applications15-SP1-Updates' cache ..........................................................................................................................[done]
Building repository 'SLE-Module-SAP-Applications15-SP1-Pool' cache .................................................................................................................................[done]
Retrieving repository 'SLE-Module-SAP-Applications15-SP1-Updates' metadata .........................................................................................................................[done]
Building repository 'SLE-Module-SAP-Applications15-SP1-Updates' cache ..............................................................................................................................[done]
Building repository 'SLE-Product-HA15-SP1-Pool' cache ..............................................................................................................................................[done]
Retrieving repository 'SLE-Product-HA15-SP1-Updates' metadata ......................................................................................................................................[done]
Building repository 'SLE-Product-HA15-SP1-Updates' cache ...........................................................................................................................................[done]
Building repository 'SLE-Product-SLES_SAP15-SP1-Pool' cache ........................................................................................................................................[done]
Retrieving repository 'SLE-Product-SLES_SAP15-SP1-Updates' metadata ................................................................................................................................[done]
Building repository 'SLE-Product-SLES_SAP15-SP1-Updates' cache .....................................................................................................................................[done]
Building repository 'SLE-Module-Server-Applications15-SP1-Pool' cache ..............................................................................................................................[done]
Retrieving repository 'SLE-Module-Server-Applications15-SP1-Updates' metadata ......................................................................................................................[done]
Building repository 'SLE-Module-Server-Applications15-SP1-Updates' cache ...........................................................................................................................[done]
Loading repository data...
Reading installed packages...

Considering 10 out of 393 applicable patches:
Category    | Updatestack
------------+------------
security    | 1
recommended | 9

10 patches needed (1 security patch)

Executing 'zypper --no-refresh patch --updatestack-only'

Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 2 NEW packages are going to be installed:
  libyaml-cpp0_6 libzstd1

The following 10 NEW patches are going to be installed:
  SUSE-SLE-Module-Basesystem-15-SP1-2020-1026 SUSE-SLE-Module-Basesystem-15-SP1-2020-1611 SUSE-SLE-Module-Basesystem-15-SP1-2020-1637 SUSE-SLE-Module-Basesystem-15-SP1-2020-1869
  SUSE-SLE-Module-Basesystem-15-SP1-2020-2040 SUSE-SLE-Module-Basesystem-15-SP1-2020-2818 SUSE-SLE-Module-Basesystem-15-SP1-2020-3285 SUSE-SLE-Module-Basesystem-15-SP1-2020-432
  SUSE-SLE-Module-Desktop-Applications-15-SP1-2020-1611 SUSE-SLE-Module-Desktop-Applications-15-SP1-2020-1869

The following 15 packages are going to be upgraded:
  PackageKit PackageKit-backend-zypp PackageKit-lang libpackagekit-glib2-18 libsigc-2_0-0 libsolv-tools libyui-ncurses-pkg9 libyui-qt-pkg9 libzypp python3-solv typelib-1_0-PackageKitGlib-1_0
  yast2-pkg-bindings zypper zypper-log zypper-needs-restarting

15 packages to upgrade, 2 new.
Overall download size: 7.4 MiB. Already cached: 0 B. After the operation, additional 1.8 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y

Executing 'zypper  refresh'

Repository 'SLE-Module-Basesystem15-SP1-Pool' is up to date.
Repository 'SLE-Module-Basesystem15-SP1-Updates' is up to date.
Repository 'SLE-Module-Desktop-Applications15-SP1-Pool' is up to date.
Repository 'SLE-Module-Desktop-Applications15-SP1-Updates' is up to date.
Repository 'SLE-Module-SAP-Applications15-SP1-Pool' is up to date.
Repository 'SLE-Module-SAP-Applications15-SP1-Updates' is up to date.
Repository 'SLE-Product-HA15-SP1-Pool' is up to date.
Repository 'SLE-Product-HA15-SP1-Updates' is up to date.
Repository 'SLE-Product-SLES_SAP15-SP1-Pool' is up to date.
Repository 'SLE-Product-SLES_SAP15-SP1-Updates' is up to date.
Repository 'SLE-Module-Server-Applications15-SP1-Pool' is up to date.
Repository 'SLE-Module-Server-Applications15-SP1-Updates' is up to date.
All repositories have been refreshed.
command 'zypper --no-refresh --non-interactive install --no-recommends --auto-agree-with-product-licenses -t product sle-module-python2' failed
Can't install release package for registered product sle-module-python2
SUSE::Connect::ZypperError: No provider of 'sle-module-python2' found.
Calling SUSEConnect rollback to make sure SCC is synchronized with the system state.
Starting to sync system product activations to the server. This can take some time...
Available migrations:

    1 | SUSE Linux Enterprise Server for SAP Applications 15 SP2 x86_64
        Basesystem Module 15 SP2 x86_64
        Desktop Applications Module 15 SP2 x86_64
        Python 2 Module 15 SP2 x86_64
        Server Applications Module 15 SP2 x86_64
        SUSE Linux Enterprise High Availability Extension 15 SP2 x86_64
        SAP Applications Module 15 SP2 x86_64


[num/q]:1

Executing 'snapper create --type pre --cleanup-algorithm=number --print-number --userdata important=yes --description 'before online migration''

The config 'root' does not exist. Likely snapper is not configured.
See 'man snapper' for further instructions.
Upgrading product SUSE Linux Enterprise Server for SAP Applications 15 SP2 x86_64.
Upgrading product Basesystem Module 15 SP2 x86_64.
Upgrading product Desktop Applications Module 15 SP2 x86_64.
Upgrading product Python 2 Module 15 SP2 x86_64.
Upgrading product Server Applications Module 15 SP2 x86_64.
Upgrading product SUSE Linux Enterprise High Availability Extension 15 SP2 x86_64.
Upgrading product SAP Applications Module 15 SP2 x86_64.



The following 6 products are going to be upgraded:
  SUSE Linux Enterprise Server for SAP Applications 15 SP1  15.1-0 -> 15.2-0
  SUSE Linux Enterprise High Availability Extension 15 SP1  15.1-0 -> 15.2-0
  Basesystem Module                                         15.1-0 -> 15.2-0
  Desktop Applications Module                               15.1-0 -> 15.2-0
  SAP Applications Module                                   15.1-0 -> 15.2-0
  Server Applications Module                                15.1-0 -> 15.2-0

The following 8 packages are going to be downgraded:
  libsolv-tools libzypp python3-solv xdg-utils yast2-xml zypper zypper-log zypper-needs-restarting

The following 2 packages are going to change architecture:
  liblouis-data        x86_64 -> noarch
  snapper-zypp-plugin  noarch -> x86_64

The following 5 packages require a system reboot:
  glibc kernel-default-5.3.18-24.37.1 libopenssl1_1 systemd udev

902 packages to upgrade, 8 to downgrade, 186 new, 33 to remove, 2 to change arch.
Overall download size: 642.3 MiB. Already cached: 0 B. After the operation, additional 558.9 MiB will be used.

    Note: System reboot required.
Continue? [y/n/v/...? shows all options] (y): y


Executing %posttrans scripts .............................................................
There are running programs which still use files and libraries deleted or updated by recenfrom the latest updates. Run 'zypper ps -s' to list these programs.

Core libraries or services have been updated.
Reboot is required to ensure that your system benefits from these updates.
adobeqas:~ # reboot

Thanks
Yoonus




Thursday, November 12, 2020

447: backup could not be completed: [110203] Not all data could be written: Expected 4096 but transferred 0


EMC NOTWORKER 19X

====================

 cat /nsr/applogs/nsrsapsv_GBP_2020_11_12.16_13_01_158295.log

* 447: backup could not be completed: [110203] Not all data could be written: Expected 4096 but transferred 0, [110515] Backint missing software version tag SQLSTATE: HY000

(pid = 158295) (11/12/20 16:12:48.511314) The '/usr/sap/GBP/HDB00/exe/hdbsql' program exited with error status 3.

The backup for 'GBP:SYSTEMDB' failed.

* 447: backup could not be completed: [110515] Backint missing software version tag, [110203] Not all data could be written: Expected 4096 but transferred 0 SQLSTATE: HY000

(pid = 158295) (11/12/20 16:13:01.315609) The '/usr/sap/GBP/HDB00/exe/hdbsql' program exited with error status 3.

The backup for 'GBP:GBP' failed.

(pid = 158295) (11/12/20 16:13:01.315876) At least one of the database backups failed.

(pid = 158295) (11/12/20 16:13:01.316048) NMSAP full backup failed.



Solution: 
set the initSID.utl set like below


biprddb:/usr/sap/GBP/SYS/global/hdb/opt # cat initGBP.utl

NSR_CLIENT=biprddb.TXR.LOCAL
NSR_DATA_DOMAIN_INTERFACE=IP
NSR_DEVICE_INTERFACE=DATA_DOMAIN
NSR_PARALLELISM=24
NSR_SERVER=emcbkp137.TXR.local


Thanks
Yoonus



Sunday, November 8, 2020

CIF share Auto mount command on linux

 How to enable auto mount after reboor the Linux system.?

Add below entry to fstab 

//192.168.77.24/linux24 /LINUX24 cifs username=admin,password=test,dir_mode=0777,file_mode=0777,nounix

Execute: command 

mount all



Thanks

Yoonus