自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

拙能胜巧

系统架构师(RHCA)和信息系统审计师(CISA)认证专家,坚持脚踏实地搞技术。

  • 博客(45)
  • 收藏
  • 关注

原创 ClusterStorage-11-安装控制台

0.实验前的环境检查与配置[student@workstation ~]$ lab console-install-lab setup 1.安装软件包[root@manager ~]# yum -y install rhsc 2.启动初始化rhsc-setup初始化。(注意:这里没有配防火墙,其他选项都是采用默认安装选项)[root@manager ~]# rhsc-s...

2019-01-31 20:40:56 259

原创 ClusterStorage-10-快照实验

0.实验前的环境检查与配置[student@workstation ~]$ lab snapshots setup 1.测试删除gluster snapshot delete tigers删除快照。[root@serverc ~]# gluster snapshot delete tigersDeleting snap will erase all the informatio...

2019-01-31 15:44:22 329

原创 ClusterStorage-10-快照之快照调度

0.实验前的环境检查与配置[student@workstation ~]$ lab snapshot-schedule setup 1.配置快照参数gluster snapshot config snap-max-hard-limit 10 snap-max-soft-limit 50设定快照的最大数量,及达到最大数量开始监测的百分比参数。 gluster snapshot conf...

2019-01-31 15:15:57 386

原创 ClusterStorage-10-快照之快照管理

0.实验前的环境检察与配置[student@workstation ~]$ lab snapshot-manage setup 1.创建快照gluster snapshot create safetysnap snapvol no-timestamp创建快照。gluster snapshot info safetysnap查看快照信息。[root@servera ~]# glus...

2019-01-31 14:34:41 459

原创 ClusterStorage-9-基本排错实验

0.实验前的环境检查与配置[student@workstation ~]$ lab troubleshooting setup 1.恢复检测gluster volume heal datavol info恢复前的信息检测。rht-vmctl start serverc重新启动节点serverc。ssh root@serverc登陆节点serverc。gluster volume he...

2019-01-30 22:24:22 197

原创 ClusterStorage-9-基本排错之BitRot检测基本配置

0.实验前的环境检查与配置[student@workstation ~]$ lab bitrot setup 1.gluster volume bitrot replvol enable开启bitrot检测功能。[root@servera ~]# gluster volume bitrot replvol enablevolume bitrot: success 2.glu...

2019-01-30 21:13:21 618

原创 ClusterStorage-9-基本排错之管理无效存储条

0.实验前的环境检查与配置[student@workstation ~]$ lab selfheal setup 1.存储检测gluster volume heal replvol info进行恢复性文件检测。[root@serverb ~]# gluster volume heal replvol infoBrick servera:/bricks/brick-a1/bric...

2019-01-30 20:57:46 246

原创 ClusterStorage-8-Georeplication管理灾复实验

0.实验前的环境检查与配置[student@workstation ~]$ lab georep-lab setup 1.开启共享gluster volume set all cluster.enable-shared-storage enable开启存储共享功能。[root@serverc ~]# gluster volume set all cluster.enable-sh...

2019-01-30 17:29:10 280

原创 ClusterStorage-8-Georeplication管理灾复之使用Georeplication

0.实验前的环境检查与配置[student@workstation ~]$ lab geomanage setup 1.配置滚动更新umount /mnt/mastervol取消挂载。gluster volume set mastervol changelog.rollover-time 5设置滚动更新时间。mount /mnt/mastervol挂载目录。gluster volum...

2019-01-30 15:35:01 360

原创 ClusterStorage-8-Georeplication管理灾复之配置Georeplication

0.实验前的环境检查与配置[student@workstation ~]$ lab georeplication setup 1.开启共享gluster volume set all cluster.enable-shared-storage enable开启共享存储功能。gluster volume list all查看存储卷情况。[root@servera ~]# glust...

2019-01-30 14:43:10 371

原创 ClusterStorage-7-配置灾备地址( NFS Ganesha )

0.实验前的环境检查与配置[student@workstation ~]$ lab ganesha setup 1.配置环境systemctl stop glusterd停止服务。killall glusterfs关闭进程。killall glusterfsd关闭进程。 yum -y install glusterfs-ganesha安装软件包。serverb参照servera操作。...

2019-01-29 23:03:40 566

原创 ClusterStorage-7-配置灾备地址( Samba CTDB )

0.实验前的环境检查与配置[student@workstation ~]$ lab ctdb setup 1.配置环境yum install -y samba ctdb安装软件包。firewall-cmd --add-service=samba放行服务。firewall-cmd --add-port=4379/tcp放行端口。 firewall-cmd --runtime-to-pe...

2019-01-29 22:23:57 477

原创 ClusterStorage-7-配置灾备地址实验

0.实验前的环境检查与配置[student@workstation ~]$ lab ipfailover setup 1.环境配置yum -y install samba ctdb安装软件包。firewall-cmd --add-service=samba放行服务。firewall-cmd --add-port=4379/tcp放行端口。firewall-cmd --runtime-...

2019-01-29 17:42:47 303

原创 ClusterStorage-6-调整存储实验

0.实验前的环境检查与配置[student@workstation ~]$ lab extendvolume-lab setup 1.查看存储gluster volume info important查看存储卷的信息。这里类型是分布式,即在已有的存储条之间进行分布,而存储条的数量为2,即在a3 b3之间进行分布。[root@servera ~]# gluster volume i...

2019-01-28 10:23:56 195

原创 ClusterStorage-6-调整存储之收缩存储

0.实验前的环境检查与配置[student@workstation ~]$ lab shrinkvolume setup 1.查看存储卷gluster volume info shrinkme查看存储卷的信息(此时有4个存储条,注意:这里Type: Distributed-Replicate,是先分布再复制副本的模式,这些信息用来确认是否可以删除存储条,否则随意删除存储条容易导致信息...

2019-01-27 23:25:57 241

原创 ClusterStorage-6-调整存储之扩展存储

0.实验前的环境检查与配置[student@workstation ~]$ lab extendvolume setup 1.配置存储卷gluster volume add-brick extendme为存储卷添加存储条。gluster volume info extendme查看存储卷信息(变为先分布再复制副本的模式)。[root@servera ~]# gluster vol...

2019-01-27 22:40:51 367

原创 ClusterStorage-5-配置ACLs与Quotas实验

0.实验前的环境检查与配置[student@workstation ~]$ lab aclsquotas setup 1.配置挂载yum -y install glusterfs-fuse安装软件包。mkdir /mnt/finance创建挂载目录。echo "servera:/finance /mnt/finance glusterfs _netdev,acl 0 0" >&...

2019-01-27 13:48:51 218

原创 ClusterStorage-5-配置ACLs与Quotas之设置Quotas

0.实验前的环境检查与配置[student@workstation ~]$ lab quotas setup 1.配置定额mount | grep graphics查看已经挂载的目录。umount /mnt/graphics取消挂载。gluster volume quota graphics enable启动定额控制。gluster volume quota graphics lim...

2019-01-26 23:41:54 305

原创 ClusterStorage-5-配置ACLs与Quotas之设置ACLs

0.实验前的环境检查与配置[student@workstation ~]$ lab acls setup 1.配置挂载yum -y install glusterfs-fuse安装软件。 mkdir /mnt/groupdata创建挂载目录。echo "servera:/groupdata /mnt/groupdata glusterfs _netdev,acl 0 0" >&...

2019-01-26 23:04:49 264

原创 ClusterStorage-4-配置客户端实验

0.实验前的环境检查与配置[student@workstation ~]$ lab clients-lab setup 1.配置防火墙firewall-cmd --add-service=rpc-bind --add-service=nfs放行服务。 firewall-cmd --runtime-to-permanent永久放行。[root@servera ~]# firewal...

2019-01-26 21:27:20 208

原创 ClusterStorage-4-配置客户端常用选项设置(OPTION)

0.实验前的环境检查与配置[student@workstation ~]$ lab volopts setup 1.配置防火墙firewall-cmd --add-service=rpc-bind --add-service=nfs放行服务。 firewall-cmd --runtime-to-permanent永久放行。[root@servera ~]# firewall-cm...

2019-01-26 20:54:23 558

原创 ClusterStorage-4-配置客户端(Samba/CIFS输出)

0.实验前的环境检查与配置[student@workstation ~]$ lab smb-client setup 1.配置防火墙firewall-cmd --add-service=samba放行samba服务。 firewall-cmd --runtime-to-permanent配置永久放行。[root@servera ~]# firewall-cmd --add-ser...

2019-01-26 16:39:34 290

原创 ClusterStorage-4-配置客户端(NFS)

0.实验前的环境检查和配置。[student@workstation ~]$ lab nfs-client setup 1.配置防火墙firewall-cmd --add-service=rpc-bind --add-service=nfs放行nfs服务。firewall-cmd --runtime-to-permanent永久放行。[root@servera ~]# firew...

2019-01-26 15:44:01 256

原创 ClusterStorage-4-配置客户端(系统自带glusterfs)

0.实验前的环境检查和配置。[student@workstation ~]$ lab native-client setup 1.软件包安装sudo yum -y install glusterfs-fuse安装软件包。rpm -ql glusterfs-fuse查看安装的内容,这里可以看到支持glusterfs方式挂载。[student@workstation ~]$ sudo...

2019-01-26 15:11:30 700

原创 ClusterStorage-3-创建Volumes实验(Distributed-Replicate与Distributed-Disperse)

0.实验前的环境检查和配置。[student@workstation ~]$ lab creatingvolumes-lab setup1.配置存储(Distributed-Replicate模式)gluster volume create distreplvol replica 2进行副本总量为2的存储(注意此时有4个brick)。gluster volume start di...

2019-01-22 23:09:12 687

原创 ClusterStorage-3-创建Volumes(副本模式与分布模式)

0.实验前的环境检查和配置。[student@workstation ~]$ lab createvolumes setupSetting up servera for lab exercise work: · Testing if servera is reachable.............................  PASS · Testing if serverb...

2019-01-21 17:02:01 293

原创 ClusterStorage-2-配置Cluster Storage实验

0.实验前的环境检查lab basicconfig setup检查环境,网络配置和主机的启动情况检查。[student@workstation ~]$ lab basicconfig setupTesting if serverc and serverd are ready for lab exercise work: · Testing if serverc is reachab...

2019-01-21 15:30:12 255

原创 ClusterStorage-2-配置Cluster Storage之搭建Volume

0.实验前的环境检查。[student@workstation ~]$ lab setup-volume setupTesting if server and serverb are ready for lab exercise work: · Testing if servera is reachable.............................  PASS · T...

2019-01-21 14:45:02 353

原创 ClusterStorage-2-配置Cluster Storage之创建Bricks

1.创建逻辑卷。在servera上,lvcreate -L 10G -T vg_bricks/thinpool从vg_bricks卷组中创建名为thinpool且大小为10G的逻辑卷, lvdisplay查看逻辑卷信息,vgdisplay查看卷组信息。serverb按照类似操作。[root@servera ~]# lvcreate -L 10G -T vg_bricks/thinpool...

2019-01-21 14:05:34 335

原创 ClusterStorage-2-配置Cluster Storage之搭建可信任的存储池

1.检查节点glusterd服务状态。systemctl status glusterd检查servera确认glusterd处于active状态。systemctl status glusterd检查serverb确认glusterd处于active状态。[root@servera ~]# systemctl status glusterd● glusterd.service - Gl...

2019-01-21 11:47:34 343

原创 ClusterStorage-1-安装Cluster Storage

0.进行初始环境的检查和搭建。这里系统已经自己准备了镜像(没有镜像的可以自行去下载),完成了网络检查(采用dhcp分配网络地址),配置了虚拟机(后面用来安装gluster storage的节点机器)。rht-vmctl start all启动虚拟机。ssh workstation登陆workstation。lab install-rhs setup进行环境配置。[kiosk@foundat...

2019-01-21 11:07:07 689

原创 系统运维-19-1-bind高级应用之子域授权与服务转发

1.关于父域服务器配置vim /etc/named.conf编辑配置文件。systemctl reload named载入配置。cat /etc/named.conf | grep -v ^$ | grep -v ^\/查看配置文件。vim /etc/named.rfc1912.zones 编辑配置文件。tail -5 /etc/named.rfc1912.zones查看增加的父域解析文件定义...

2019-01-18 16:58:51 273

原创 系统运维-18-2-bind高级应用之主从同步与反向解析

1.关于host命令host -t NS example.com 172.20.0.131解析名称空间服务。host -t MX example.com 172.20.0.131解析邮件服务。[root@lab1 named]# host -t NS example.com 172.20.0.131Using domain server:Name: 172.20.0.131Addre...

2019-01-16 21:18:36 628

原创 系统运维-18-1-DNS的bind工具

1.bind工具安装的基础知识。yum install -y bind安装软件包。 yum install -y bind-libs安装软件包。yum install -y bind-utils安装软件包。rpm -qi bind-libs查看安装包信息。rpm -qi bind-utils查看安装包信息。rpm -ql bind-utils查看安装包生成的指令。yum info bind-c...

2019-01-15 21:27:41 532

原创 系统运维-17-3-OpenSSL工具

1.简单的对称加密openssl version查看版本号。whatis enc查看enc工具。cp /etc/fstab ./复制测试文件到当前目录。 ll | grep fstab确认文件。openssl enc -e -des3 -a -salt -in fstab -out fstab.ciphertext使用enc进行加密。cat fstab.ciphertext 查看加密后的文件。...

2019-01-13 22:45:11 357

原创 系统运维-17-2-GNU的awk高级应用

1.结合 if else 条件判断的使用[root@lab1 ~]# awk -F: '{if($3>=1000) print $1,$3}' /etc/passwd | head -5测试输出uid大于1000的相关信息。awk -F: '{if($3>=1000) {printf "Common user: %s\n",$1} else {printf "root or sys...

2019-01-13 19:14:51 185

原创 系统运维-17-1-GNU的awk基础知识

1.初步认识awk命令which awk查看awk命令路径。ls -l /usr/bin/awk查看命令的链接指向。man gawk | grep ^NAME -A1查看帮助手册的解释。cat /etc/fstab | grep UUID查看准备进行测试的测试文档(注意UUID也可能是多行,根据自己的电脑情况确定,不是死板的)。[root@lab1 ~]# which awk/usr/b...

2019-01-13 14:17:25 192

原创 系统运维-16-3-Bash编程中数组与字符串的应用技巧

1.初步认识数组。weekdays[0]="Sun"给数组赋值。weekdays[1]="Mon"给数组赋值。weekdays[6]="Sat"给数组赋值(支持稀疏数列)。echo ${weekdays[1]}返回指定数列的值。echo ${weekdays}不标记数列则返回第0列的值。[root@lab1 ~]# weekdays[0]="Sun"[root@lab1 ~]# week...

2019-01-06 21:05:37 270 2

原创 系统运维-16-2-Systemd基本使用方法

0.基础知识准备。需要先了解系统的启动基本流程:POST  --->  Boot Sequence  --->  Bootloader  --->  kernel + iniramfs  (initrd)  --->rootfs  --->  /sbin/init  (centos5:SysV init  /  centos6:Upstart  /  centos...

2019-01-06 15:51:11 647

原创 系统运维-16-1-Bash编程中函数的使用

1.以简单的用户创建函数为例先简单介绍。vim function1.sh编辑脚本。bash -n function1.sh检查脚本。bash -x function1.sh执行脚本并输出过程(可以看到这里只执行了赋值,而没有执行函数)。cat function1.sh查看脚本(只定义了函数并没有调用)。vim function1.sh编辑脚本。bash -x function1.sh执行脚本并...

2019-01-06 13:35:46 296 2

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除