目录
saptune安装升级方式二:手工下载saptune文件并安装升级
背景
使用SUSE Linux操作系统安装SAP软件之前,需要调整系统参数。手工调整系统参数容易出错或遗漏,为了方便,我们通常安装升级saptune软件包并配置saptune来实现自动调整系统参数。
本次实验环境是SUSE Linux Enterprise Server 12 SP5:
cat /etc/*-release
SAPTEST:~ # cat /etc/*-release
SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 5
# This file is deprecated and will be removed in a future service pack or release.
# Please check /etc/os-release for details about this release.
NAME="SLES"
VERSION="12-SP5"
VERSION_ID="12.5"
PRETTY_NAME="SUSE Linux Enterprise Server 12 SP5"
ID="sles"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles_sap:12:sp5"
安装升级saptune有两种方式,方式一是通过配置zypper源并使用zypper命令来安装升级saptune至最新版本,方式二是手工下载最新版本的saptune文件并安装升级saptune版本。
安装升级saptune
saptune安装升级方式一:通过zypper命令安装升级
zypper install saptune (安装saptune)
SAPTEST:~ # zypper install saptune
Loading repository data...
Reading installed packages...
'saptune' is already installed.
No update candidate for 'saptune-3.0.2-4.10.1.x86_64'. The highest available version is already installed.
Resolving package dependencies...
Nothing to do.
zypper update saptune (升级saptune)
SAPTEST:~ # zypper update saptune
Loading repository data...
Reading installed packages...
No update candidate for 'saptune-3.0.2-4.10.1.x86_64'. The highest available version is already installed.
Resolving package dependencies...
Nothing to do.
以上结果是因为未配置zypper源,故通过zyyper命令无法安装升级saptune版本。
saptune安装升级方式二:手工下载saptune文件并安装升级
手工下载saptune文件之前,需要先确认当前saptune包的版本:
rpm -qa|grep saptune
SAPTEST:/sapcd/SUSE12SP5 # rpm -qa|grep saptune
saptune-2.0.1-3.3.1.x86_64
yast2-saptune-1.3-3.4.2.noarch
通过网址 https://scc.suse.com登录SUSE Customer Center并下载saptune包:
将下载的saptune包放入目录/sapcd/SUSE12SP5底下:
SAPTEST:/sapcd/SUSE12SP5 # ls -l
total 218760
-rwxrwxrwx 1 root root 1025963 Mar 21 16:29 saptune-3.0.2-4.10.1.x86_64.rpm
安装saptune
rpm -ivh saptune*
升级saptune:
rpm -Uvh saptune*
SAPTEST:/sapcd/SUSE12SP5 # rpm -Uvh saptune*
Preparing... ################################# [100%]
Updating / installing...
1:saptune-3.0.2-4.10.1 ################################# [ 50%]
Updating /etc/sysconfig/saptune...
detected enabled Solution 'S4HANA-APPSERVER', checking for new or deleted Notes
### appending the new Note '2993054' from Solution 'S4HANA-APPSERVER' to 'NOTE_APPLY_ORDER' in '/etc/sysconfig/saptune'
### appending the new Note '1656250' from Solution 'S4HANA-APPSERVER' to 'NOTE_APPLY_ORDER' in '/etc/sysconfig/saptune'
### appending the new Note '900929' from Solution 'S4HANA-APPSERVER' to 'NOTE_APPLY_ORDER' in '/etc/sysconfig/saptune'
Cleaning up / removing...
2:saptune-2.0.1-3.3.1 ################################# [100%]
Removed symlink /etc/systemd/system/multi-user.target.wants/tuned.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/saptune.service to /usr/lib/systemd/system/saptune.service.
查看saptune版本:
rpm -qa|grep saptune
SAPTEST:~ # rpm -qa|grep saptune
saptune-3.0.2-4.10.1.x86_64
yast2-saptune-1.3-3.4.2.noarch
启动saptune
saptune不同版本的启动方式不一样,saptune 2.0和saptune 3.0的启动方式如下:
saptune daemon start (saptune 2.0版本)
SAPTEST:~ # saptune daemon start
Starting daemon (tuned.service), this may take several seconds...
Daemon (tuned.service) has been enabled and started.
saptune service takeover (saptune 3.0版本)
SAPTEST:~ # saptune service takeover
NOTICE: Starting 'saptune.service', this may take some time...
NOTICE: Service 'tuned.service' disabled and stopped
NOTICE: Service 'saptune.service' has been enabled and started.
查看saptune的服务状态:
saptune daemon status (saptune 2.0版本)
SAPTEST:~ # saptune daemon status
Daemon (tuned.service) is running.
The system has been tuned