SAP S4 HANA 安装部署记事四:创建SAP S4 HANA应用主机系统
1.创建EC2主机
因为是应用服务器,所以硬盘主要考虑空间够应用程序就可以了。
应用服务器规划两块硬盘
10G--OS
180G--APP
使用证书和putty远程连接,和先前申请的主机一样,修改root密码
2.磁盘分区
--先创建设备和组
--显示创建的组
sapdev:/home/ec2-user # vgs
VG #PV #LV #SN Attr VSize VFree
vghana 1 0 0 wz--n- 180.00g 180.00g
--创建卷
sapdev:/home/ec2-user # lvcreate -n lvswap -L 64G vghana
Logical volume "lvswap" created.
sapdev:/home/ec2-user # lvcreate -n lvsapmnt -L 15G vghana
Logical volume "lvsapmnt" created.
sapdev:/home/ec2-user # lvcreate -n lvsap -L 80G vghana
Logical volume "lvsap" created.
sapdev:/home/ec2-user # lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
lvsap vghana -wi-a----- 80.00g
lvsapmnt vghana -wi-a----- 15.00g
lvswap vghana -wi-a----- 64.00g
--格式化
sapdev:/home/ec2-user # mkfs.xfs /dev/mapper/vghana-lvsap
meta-data=/dev/mapper/vghana-lvsap isize=512 agcount=4, agsize=5242880 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0, sparse=0, rmapbt=0, reflink=0
data = bsize=4096 blocks=20971520, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal log bsize=4096 blocks=10240, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
sapdev:/home/ec2-user # mkfs.xfs /dev/mapper/vghana-lvsapmnt
meta-data=/dev/mapper/vghana-lvsapmnt isize=512 agcount=4, agsize=983040 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0, sparse=0, rmapbt=0, reflink=0
data = bsize=4096 blocks=3932160, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal log bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
sapdev:/home/ec2-user # mkfs.xfs /dev/mapper/vghana-lvswap
meta-data=/dev/mapper/vghana-lvswap isize=512 agcount=4, agsize=4194304 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0, sparse=0, rmapbt=0, reflink=0
data = bsize=4096 blocks=16777216, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal log bsize=4096 blocks=8192, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
--创建swap
sapdev:/home/ec2-user # mkswap /dev/mapper/vghana-lvswap
mkswap: /dev/mapper/vghana-lvswap: warning: wiping old xfs signature.
Setting up swapspace version 1, size = 64 GiB (68719472640 bytes)
no label, UUID=bc47c823-a2f0-4f63-9b9b-29df2d65b2c8
sapdev:/home/ec2-user # swapon /dev/mapper/vghana-lvswap
--创建挂载点
sapdev:/home/ec2-user # mkdir /usr/sap
sapdev:/home/ec2-user # mkdir /sapmnt
--修改fstab文件,自动加载
sapdev:/home/ec2-user # vim /etc/fstab
sapdev:/home/ec2-user # mount -a
sapdev:/home/ec2-user # vim /etc/hostname
sapdev:/home/ec2-user # vim /etc/hosts
3.系统配置
HANA主机操作系统使用的是SUSE Linux Enterprise Server 12 SP4
sapdev:/home/ec2-user # cat /etc/os-release
NAME="SLES"
VERSION="12-SP4"
VERSION_ID="12.4"
PRETTY_NAME="SUSE Linux Enterprise Server 12 SP4"
ID="sles"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:12:sp4"
--看看是否有补丁更新
sapdev:/home/ec2-user # sudo zypper list-patches
Refreshing service 'cloud_update'.
Loading repository data...
Reading installed packages...
No updates found.
sudo zypper patch --category=security,recommended --severity=critical,important --dry-run
sudo zypper patch --category=security,recommended --severity=critical,important
--修改主机名
修改规划的HANA数据库主机,应用主机名,并在hosts中将ip地址和主机名的关系维护好
--假设主机和ip定义如下
192.168.0.11 sapdevapp`
192.168.0.12 sapdevhana
sapdev:/hana # vi /etc/hostname
dapdev:/hana # vi /etc/hosts
到这里SAP S4 HANA的应用主机已经准备好,可以具备安装SAP S4 HANA的条件。
原文链接:https://blog.csdn.net/samson_www/article/details/89160380