gluster replica 模式安装
yum install centos-release-gluster
162 yum install glusterfs-server
163 yum install centos-release-gluster
164 yum -y install centos-release-gluster310
165 yum install glusterfs glusterfs-server glusterfs-fuse glusterfs-rdma
166 systemctl start glusterd
167 systemctl enable glusterd
168 systemctl status glusterd
170 ping glusterfs1
171 ping glusterfs2
173 ping glusterfs2
174 ping glusterfs1
175 gluster peer brobe glusterfs1
176 gluster peer probe glusterfs1
177 gluster peer status
178 mkdir /glusterfs-data
179 gluster volume create data replica 2 gluserfs1:/glusterfs-data glusterfs2:/gluster-data
180 gluster volume create data replica 2 glusterfs1:/glusterfs-data glusterfs2:/gluster-data
181 gluster volume create data replica 2 glusterfs1:/glusterfs-data glusterfs2:/gluster-data force
182 gluster volume status
183 gluster volume start data
184 gluster volume status
185 gluster pool list
186 ls /gluster-data/
188 gluster volume info data
189 gluster volume status
190 ls /gluster-data/
192 cd /gluster-data/
199 gluster volume stop
200 gluster volume stop data
201 gluster volume status
202 gluster volume delete data
203 gluster volume create data replica 2 glusterfs1:/glusterfs-data glusterfs2:/glusterfs-data force
204 gluster volume start data
205 gluster volume list
206 gluster volume info
211 gluster peer status
214 gluster peer status
215 gluster volume info
219 gluster peer status
220 gluster volume info
224 cd /glusterfs-data/
232 cd /glusterfs-data
238 gluster volume stop
239 gluster volume stop data
240 gluster volume delete data
241 hostnamectl set-hostname glusterfs1
243 gluster volume create data replica 1 glusterfs1:/glusterfs-data glusterfs2:/glusterfs-data force
244 gluster volume create data replica 2 transport tcp 192.168.0.211:/glusterfs-data 192.168.0.212:/glusterfs-data force
245 gluster volume start data
246 gluster volume info
248 mount.glusterfs 192.168.0.211:data /home/XXXX/logs
258 gluster -V
259 glusterfs -V
260 rmdir /gluster-data/
261 cd /gluster-data/
268 rm gluster-data/
269 rmdir gluster-data/
271 mv gluster-data/ /tmp
273 cd /glusterfs-data/
277 chown -R XXXX.XXXX /glusterfs-data/
283 chown -R XXXX.XXXX /glusterfs-data/
286 cd /glusterfs-data/
288 chmod -R 775 /glusterfs-data/
534 hostnamectl set-hostname glusterfs2
666 gluster volume status
668 ps -ef|grep glusterfs
670 gluster
679 cd /glusterfs-data/
684 mount -t glusterfs1:data /home/XXXX/logs
686 ps -ef|grep gluster
689 mount -t glusterfs1:data /home/XXXX/logs
691 mount -t glusterfs glusterfs1:data /home/XXXX/logs
770 history | grep glusterfs
771 history | grep gluster
772 gluster volume info
773 gluster volume status
794 cd /glusterfs-data/
810 gluster volume status
816 mount -t glusterfs glusterfs1:data /home/XXXX/logs
851 gluster volume status
862 cd /glusterfs-data/
870 gluster volume info
900 gluster volume info
914 mount -t glusterfs glusterfs1:data /home/XXXX/logs
1001 ll /glusterfs-data/
1002 history | grep gluster