【SUSE Linux自动调整系统参数】安装升级saptune并配置saptune

本文介绍了如何在SUSE Linux Enterprise Server 12 SP5中安装、升级和配置saptune,以自动调整系统参数以适应SAP软件的需求。详细步骤包括使用zypper命令或手动下载安装saptune,启动和检查saptune服务,以及应用和移除解决方案。
摘要由CSDN通过智能技术生成

目录

背景

安装升级saptune

saptune安装升级方式一:通过zypper命令安装升级

saptune安装升级方式二:手工下载saptune文件并安装升级

启动saptune

配置saptune

移除某个saptune solution

查看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
  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值