# 查询源
zypper lr
zypper modifyrepo -e 1
zypper modifyrepo -e 2
zypper modifyrepo -e 3
zypper modifyrepo -e 4
# 验证源
zypper lr
# 自动补全
zypper install bash-completion
# 安装vi
zypper install vi
# 安装ping
zypper install iputils
# 安装less
zypper install less
# 安装insserv
zypper install insserv
#设置主机名
hostnamectl set-hostname devhanadb01
# 修改网络 yast2 lan # 可修改网络参数
vi /etc/sysconfig/network/ifcfg-eth0
BOOTPROTO='static'
BROADCAST='192.168.22.1'
IPADDR='192.168.22.24'
NETMASK='255.255.255.0'
STARTMODE='auto'
vi /etc/sysconfig/network/routes
default 192.168.22.1 - -
vi /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
#重载网络
systemctl restart network-online.target
# 添加第三方源
zypper addrepo -f https://ftp.lysator.liu.se/pub/opensuse/distribution/leap/15.5/repo/oss/ SLE-SERVER-15-SP5_oss
修改hosts
192.168.22.24 devhana01.haosezhitu.cn devhana01
hostname –f # 返回FDQN如:suma4v.suse.lab
hostname –s # 返回短主机名: suma4v
hostname –I # 返回本机IP地址 192.168.100.70
# 安装必备原件
zypper install sysstat
zypper install uuid
systemctl start uuidd.socket
zypper install saptune
saptune solution list
saptune solution apply HANA
saptune service enablestart
systemctl status saptune.service
# 安装包
zypper install tcsh
zypper install binutils
#修改UseDNS
sed -i "s/UseDNS yes/UseDNS no/g" /etc/ssh/sshd_config
#查看执行命令的历史记录
echo "HISTFILESIZE=20000" >> /etc/bashrc
echo "HISTSIZE=20000" >> /etc/bashrc
echo "HISTTIMEFORMAT="%Y%m%d-%H%M%S: "" >> /etc/bashrc
echo "export HISTTIMEFORMAT" >> /etc/bashrc
#设置命令行界面超时退出
echo "export TMOUT=3000" >> /etc/profile
#划lvm盘 450
lvcreate -L 50G -n lv_usrsap sapvg
lvcreate -L 100G -n lv_hanadata sapvg
lvcreate -L 100G -n lv_hanalog sapvg
lvcreate -L 200G -n lv_hanashared sapvg
mkfs.xfs /dev/sapvg/lv_usrsap
mkfs.xfs /dev/sapvg/lv_hanadata
mkfs.xfs /dev/sapvg/lv_hanalog
mkfs.xfs /dev/sapvg/lv_hanashared
# 编辑挂载
vi /etc/fstab
/dev/sapvg/lv_usrsap /usr/sap xfs defaults 0 0
/dev/sapvg/lv_hanadata /hana/data xfs defaults 0 0
/dev/sapvg/lv_hanalog /hana/log xfs defaults 0 0
/dev/sapvg/lv_hanashared /hana/shared xfs defaults 0 0
mount -a
./SAPCAR_1200-70007716.EXE -manifest SIGNATURE.SMF -xvf IMDB_SERVER20_059_8-80002031.SAR -R .
mv SIGNATURE.SMF SAP_HANA_DATABASE/
./hdbinst
SAP HANA Database installation kit detected.
Installation failed
Checking system requirements failed
rpm package 'libatomic1' is not installed
The operating system is not ready to perform gcc 9 assemblies
For more information, see SAP Note 2886607.
# 安装缺少包
zypper install libatomic1
./hdbinst
SAP HANA Database installation kit detected.
######################################################################
Warning: Direct usage of hdbinst is not supported. Use hdblcm instead.
######################################################################
SAP HANA Lifecycle Management - Database Installation 2.00.059.08.1678802465
****************************************************************************
Enter Local Host Name [devhanadb01]:
1 个赞