Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Deploy KVM Virtualization platform using GFS Cluster

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

In the experimental environment, 4 GFS node servers do GlusterFS clusters and provide storage services to KVM clients for virtualization.

Server role IP address disk space gfs-node1192.168.142.15240G+40Ggfs-node2192.168.142.15440G+40Ggfs-node3192.168.142.16240G+40Ggfs-node4192.168.142.16340G+40Gkvm-client192.168.142.16340G step 1: deploy GFS node server

1. Add a new disk for each of the four GFS node server servers

two。 Deploy the GFS node with one click of the script

#! / bin/bashsystemctl stop firewalld.servicesetenforce formatting disk echo "the disks exist list:" fdisk-l | grep 'disk / dev/sd [amurz]' echo "= =" PS3= "chose which disk you want to create:" select VAR in `disk / dev/sd* | grep-o'sd [bmerz]'| uniq` quitdo case $VAR in sda) fdisk-l / dev/sda break Sd [bmerz]) # create partitions echo "n p w" | fdisk / dev/$VAR # make filesystem mkfs.xfs-I size=512 / dev/$ {VAR} "1" & > / dev/null # mount the system mkdir-p / data/$ {VAR} "1" & > / dev/null echo-e "/ dev/$ {VAR} "1" / data/$ {VAR} "1" xfs defaults 0\ n "> > / etc/fstab mount-a & > / dev/null break ; quit) break;; *) echo "wrong disk,please check again";; esacdone# grants execution permission chmod + x a.sh# to execute the script. / a.sh# Note to modify the host address!! cat > > / etc/hosts

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report