SUSE Enterprise Storage 5 Installation Guide

SUSE Enterprise Storage 是软件定义的储存解决方案,高度可伸缩和可恢复,由 Ceph 技术提供支持。它使组织能够采用行业标准、现成的服务器和磁盘驱动器来构建经济高效和高度可伸缩的储存。目前最新的版本为SUSE Enterprise Storage 5,详情请参考SUSE Enterprise Storage功能介绍

一、前期准备工作

1.1 主机信息

1.2 主机配置
1.2.1 ssh免密码设置
配置各个节点root用户的免密码登录。通过ssh-keygen创建rsa密钥,最后使用ssh-copy-id将public密钥复制到各个节点即可。
1.2.2 软件仓库设置
在一台装有vsftpd服务的主机上,将suse linux系统镜像和suse enterprise storage 5镜像(官方免费下载)挂载到指定目录,如下图所示:

在每个节点的/etc/zypp/repos.d目录下,创建如下文件:

[[email protected] ~]#cd /etc/zypp/repos.d/
[[email protected] repos.d]#ls
SES5.repo  SLES12-SP3-12.3-0_1.repo
[[email protected] repos.d]#cat SES5.repo
[SES5]
name=SES5
enabled=1
autorefresh=1
baseurl=ftp://hdp01/pub/ses
path=/
type=yast2
keeppackages=0
[[email protected] repos.d]#cat SLES12-SP3-12.3-0_1.repo
[SLES12-SP3-12.3-0_1]
name=SLES12-SP3-12.3-0
enabled=1
autorefresh=1
baseurl=ftp://hdp01/pub/sls
path=/
type=yast2
keeppackages=0
--执行下面的命令刷新下软件仓库
[[email protected] repos.d]#zypper ref
[[email protected] repos.d]#zypper lr
Repository priorities are without effect. All enabled repositories share the same priority.

# | Alias               | Name              | Enabled | GPG Check | Refresh
--+---------------------+-------------------+---------+-----------+--------
1 | SES5                | SES5              | Yes     | (r ) Yes  | Yes
2 | SLES12-SP3-12.3-0_1 | SLES12-SP3-12.3-0 | Yes     | (r ) Yes  | Yes    

同步以上软件仓库配置文件到其他节点:

[[email protected] repos.d]#for i in 2 3 4;do scp *.repo ceph0$i:/etc/zypp/repos.d;done
[[email protected] repos.d]#for i in 2 3 4;do ssh ceph0$i "zypper ref";done

1.2.3 软件包依赖
这里的软件包依赖是指python-boto-2.42.0-11.3.1依赖的python-simplejson(OS和SES镜像中未提供,需要从openSUSE社区下载)版本必须大于等于3.6.5,否则在安装SES的第一步骤出出现报错,从而导致整个环境安装失败。

[[email protected] ~]#rpm -Uvh python-simplejson-3.13.2-2.6.x86_64.rpm
warning: python-simplejson-3.13.2-2.6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 226c7528: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:python-simplejson-3.13.2-2.6     ################################# [100%]
[[email protected] ~]#scp python-simplejson-3.13.2-2.6.x86_64.rpm ceph02:/root/
[[email protected] ~]#scp python-simplejson-3.13.2-2.6.x86_64.rpm ceph03:/root/
[[email protected] ~]#scp python-simplejson-3.13.2-2.6.x86_64.rpm ceph04:/root/
[[email protected] ~]#rpm -Uvh python-simplejson-3.13.2-2.6.x86_64.rpm
[[email protected] ~]#rpm -Uvh python-simplejson-3.13.2-2.6.x86_64.rpm
[[email protected] ~]#rpm -Uvh python-simplejson-3.13.2-2.6.x86_64.rpm 

1.2.4 NTP服务配置

[[email protected] ~]# echo "server ntp1.aliyun.com" >>/etc/ntp.conf
[[email protected] ~]# echo "server ntp2.aliyun.com" >>/etc/ntp.conf
[[email protected] ~]# echo "server ntp3.aliyun.com" >>/etc/ntp.conf
[[email protected] ~]# systemctl enable ntpd
[[email protected] ~]# systemctl start ntpd
[[email protected] ~]# ntpdate -u ntp1.aliyun.com
[[email protected] ~]# for i in 2 3 4;do scp /etc/ntp.conf ceph0$i:/etc/;done

1.2.5 禁用防火墙

[[email protected] ~]#systemctl disable SuSEfirewall2
[[email protected] ~]#systemctl disable SuSEfirewall2
[[email protected] ~]#systemctl disable SuSEfirewall2
[[email protected] ~]#systemctl disable SuSEfirewall2

二、SUSE Enterprise Storage 5安装配置

2.1 Salt服务配置
以下为配置master和minion节点步骤。
2.1.1 Master节点配置
这里将ceph01作为salt的master节点,其他节点全部为minion节点(包括master)。

[[email protected] ~]#zypper in salt-master salt-minion
[[email protected] ~]#systemctl enable salt-master.service
[[email protected] ~]#systemctl start salt-master.service
[[email protected] ~]#systemctl status salt-master.service
[[email protected] ~]#netstat -antpl|grep 4505 4506
[[email protected] ~]#vi /etc/salt/minion
master: ceph01.xzxj.edu.cn
[[email protected] ~]#systemctl enable salt-minion.service
[[email protected] ~]#systemctl start salt-minion.service

2.1.2 Minion节点配置

[[email protected][2..4] ~]#zypper in salt-minion
[[email protected][2..4] ~]#scp ceph01:/etc/salt/minion /etc/salt
[[email protected][2..4] ~]#systemctl enable salt-minion
[[email protected][2..4] ~]#systemctl start salt-minion

2.1.3 节点认证

[[email protected] ~]#salt-key -F
Local Keys:
master.pem:  78:2f:29:24:6b:a3:ef:25:51:18:b9:b8:59:88:28:8f:bb:3d:a7:f8:30:dd:d8:5e:20:17:16:25:23:43:f8:d0
master.pub:  5a:10:f9:4f:84:e4:a3:b4:ef:09:8a:44:1b:e2:0d:32:2d:cc:ca:c2:b2:55:83:d6:a8:56:84:cd:fe:d6:1d:67
Unaccepted Keys:
ceph01.thinkjoy.tt:  a3:32:0e:03:4a:62:90:ea:40:d4:b6:7f:0b:51:fb:43:7a:3f:2f:af:f5:d0:a9:0f:8a:5c:70:b3:55:02:9a:b1
ceph02.thinkjoy.tt:  8a:38:cd:cd:6f:12:39:53:bf:04:f0:93:60:bb:4f:2e:77:1a:ed:21:91:65:30:77:0d:f4:50:21:f5:a9:8e:a1
ceph03.thinkjoy.tt:  38:93:3d:4c:21:95:6e:6a:ca:56:ce:3e:65:ab:b0:f4:a1:4f:c5:52:7e:62:57:7f:b4:7e:11:d3:7e:37:ed:9b
ceph04.thinkjoy.tt:  27:7a:c9:e1:2b:88:30:6e:23:50:9a:71:43:e5:60:92:27:a9:d2:d3:71:2b:69:a9:8a:9d:0a:74:13:d2:8f:39
[[email protected] ~]#salt-key --accept-all
The following keys are going to be accepted:
Unaccepted Keys:
ceph01.thinkjoy.tt
ceph02.thinkjoy.tt
ceph03.thinkjoy.tt
ceph04.thinkjoy.tt
Proceed? [n/Y] Y
Key for minion ceph01.thinkjoy.tt accepted.
Key for minion ceph02.thinkjoy.tt accepted.
Key for minion ceph03.thinkjoy.tt accepted.
Key for minion ceph04.thinkjoy.tt accepted.
[[email protected] ~]#salt-key --list-all
Accepted Keys:
ceph01.thinkjoy.tt
ceph02.thinkjoy.tt
ceph03.thinkjoy.tt
ceph04.thinkjoy.tt
Denied Keys:
Unaccepted Keys:
Rejected Keys:

2.2 安装deepsea
SUSE Enterprise Storage 5的安装配置过程,主要是通过deepsea来完成的。在salt的master节点安装,如下:

[[email protected] ~]#zypper in deepsea
--安装完成后,会修改/srv/pillar/ceph/master_minion.sls 文件的内容为:
[[email protected] ~]#cat /srv/pillar/ceph/master_minion.sls
master_minion: ceph01.thinkjoy.tt

默认情况下,各个minion节点不属于deepsea的任何组,所以要执行下面的命令将其加入到默认的default组:

[[email protected] ~]#salt ceph01.thinkjoy.tt grains.append deepsea default
ceph01.thinkjoy.tt:
    ----------
    deepsea:
        - default
[[email protected] ~]#salt ceph02.thinkjoy.tt grains.append deepsea default
ceph02.thinkjoy.tt:
    ----------
    deepsea:
        - default
[[email protected] ~]#salt ceph03.thinkjoy.tt grains.append deepsea default
ceph03.thinkjoy.tt:
    ----------
    deepsea:
        - default

[[email protected] ~]#salt ceph04.thinkjoy.tt grains.append deepsea default
ceph04.thinkjoy.tt:
    ----------
    deepsea:
        - default
[[email protected] ~]#salt -G ‘deepsea:*‘ test.ping
ceph01.thinkjoy.tt:
    True
ceph04.thinkjoy.tt:
    True
ceph02.thinkjoy.tt:
    True
ceph03.thinkjoy.tt:
    True

如果不做此步骤,在安装配置过程中会出现下面的报错信息:

No minions matched the target. No command was sent, no jid was assigned.
ERROR: No return received

2.3 正式安装
以下操作在salt的master节点运行,如果要监控每个步骤执行了那些操作,可以在另外一个窗口执行deepsea monitor进行监控。
2.3.1 Provisioning(Stage 0)
此步骤主要针对所有minion节点进行操作系统更新操作。

[[email protected] ~]#export DEV_ENV=true
[[email protected] ~]#salt-run state.orch ceph.stage.0

2.3.2 Discovery(Stage 1)
此步骤主要询问所有的minion节点并在/srv/pillar/ceph/proposals目录下创建pillar配置文件。

[[email protected] ~]#salt-run state.orch ceph.stage.1


2.3.3 Configure(Stage 2)
在执行此步骤之前。必须创建policy.cfg文件。此文件主要设置各个节点的角色,内容如下:

[[email protected] ~]#vi /srv/pillar/ceph/proposals/policy.cfg
# Cluster assignment
cluster-ceph/cluster/ceph0[1-4].thinkjoy.tt.sls
# Hardware Profile
profile-default/cluster/ceph0[1-4].thinkjoy.tt.sls
profile-default/stack/default/ceph/minions/ceph0[1-4].thinkjoy.tt.yml
# Common configuration
config/stack/default/global.yml
config/stack/default/ceph/cluster.yml
# Role assignment
role-master/cluster/ceph01.thinkjoy.tt.sls
role-admin/cluster/ceph0[1-4].thinkjoy.tt.sls
role-mon/cluster/ceph0[2-4].thinkjoy.tt.sls
role-mon/stack/default/ceph/minions/ceph0[2-4].thinkjoy.tt.yml
#For MGR
role-mgr/cluster/ceph0[1-3].thinkjoy.tt.sls
#For Openattic
role-openattic/cluster/ceph01.thinkjoy.tt.sls
#For Iscsi Service
role-igw/cluster/ceph0[1-4].thinkjoy.tt.sls
#For RGW
role-igw/cluster/ceph0[2-4].thinkjoy.tt.sls
#For MDS
role-mds/cluster/ceph0[2-4].thinkjoy.tt.sls
#For NFS
role-ganesha/cluster/ceph0[2-4].thinkjoy.tt.sls
[[email protected] ~]#salt-run state.orch ceph.stage.2


2.3.4 Deploy(Stage 3)
此步骤主要检查pillar的配置信息并MONs和OSDs。

[[email protected] ~]#salt-run state.orch ceph.stage.3


执行完成后,整个ceph集群就配置完成,如下:

2.3.5 Services(Stage 4)
此步骤主要创建(iSCSI gateway, CephFS, RadosGW, openATTIC)服务。

[[email protected] ~]#salt-run state.orch ceph.stage.4


OpenATTIC是一个管理监控ceph的web界面工具,默认用户是openattic,密码为openattic。

参考文献:
1、SUSE Enterprise Storage 5
2、Hello Salty Goodness

原文地址:http://blog.51cto.com/candon123/2121506

时间: 2024-10-12 20:30:49

SUSE Enterprise Storage 5 Installation Guide的相关文章

P6 EPPM Manual Installation Guide (Oracle Database)

Contents Oracle Database Manual Configuration Overview ,,★★5 Oracle Database Installation ,,★★6 Creating the Database Structure for Oracle and Loading Application Data ,,★★7 Creating the P6 EPPM Database Structure for Oracle ,,★★7 Copying the Script

Oracle Grid Infrastructure Installation Guide for Linux 以debug模式安装并记录日志

使用如下命令能够以debug模式安装Oracle Grid并将日志记录到文件 [[email protected] 11ggrid]$ ./runInstaller -debug > /home/grid/oracle_grid_installer_`date +%G%m%d_%H%M%S`.log 注意:其中的文件名为了避免重复,加入了当前的日期和时间`date +%G%m%d_%H%M%S` 代表了当前的日期和时间,之间用下横线隔开 重要说明点:那个日期$(`date +%G%m%d_%H%

通过阅读Oracle Enterprise Asset Management User Guide,我对Oracle eAM的初步理解

通过阅读Oracle Enterprise Asset Management User Guide,我对Oracle eAM的初步理解 Oracle eAM是Oracle EBS套件的一部分,解决资产密集的组织的综合的和常规的设备维护需求.在设备层面追踪所有的维护成本和工作历史,来衡量绩效和最优化维护操作. eAM为组织提供了工具给资产和可重建的库存物料创建和应用维护程序.eAM让用户可以最大化地计划和安排维护活动,同时对组织的运作或生产中断最小.重要的是,它能提高资源有效性,增强维护质量,跟踪

Full installation guide for YMC

Full Installation Guide These are the steps necessary to get YCM working on a Unix OS and on Windows. Note to Windows users: we assume that you are running the cmd.exe command prompt and that the needed executables are in the PATH environment variabl

Arch Linux Installation Guide

Arch Linux Installation Guide timedatectl set-ntp true sed -i '/Score/{/China/!{n;s/^/#/}}' /etc/pacman.d/mirrorlist pacman -Syy 启动模式检查 检查启动模式是否支持UEFI,这将决定在安装 Bootloader 阶段的步骤: ls /sys/firmware/efi/efivars --如果如上文件存在,就说明为UEFI,否则为legacy BIOS lsblk par

SDCC:可软件定义的存储三——just-in-time caching in an enterprise storage system

    note:本文要说的是一篇论文(Software defined just-in-time caching in an enterprise storage system)的思想. 框架 如下图所示,如果你懂SAN,DAS以及cache的机制,从这个框架就可以看出这个框架的思想(~~不解释啦) note:虽然SAN中的存储节点画出了storage node的tier结构,实际上这个论文完全不讲tier policy,只关心DAS的cache read... SDCC layer 协调fl

Installation Guide Ubuntu 16.04

Beside the installation guide on the main page, here is a guide to install GenieACS off a freshly installed Ubuntu 16.04 LTS. Prequisites and basic components First you should update all components and install the following perquisites sudo apt-get u

Nagios Installation Guide

Introduction This guide is intended to provide you with simple instructions on how to install Nagios from source (code) on Fedora and have it monitoring your local machine inside of 20 minutes. No advanced installation options are discussed here - ju

SUSE Enterprise Linux Desktop 12

注:本次安装在虚拟机中进行,具体配置如下: 设置虚拟机从光盘启动,然后开始安装. Boot From Hard Disk    从硬盘启动 Installation           安装SUSE12 Upgrade                升级至SUSE12 Rescue1System          修复系统 Check Installation Media 检查安装介质 Memory Test            检查内存 在语言和键盘选择界面,选择为英文,并同意许可协议 这里