
本文共 3366 字,大约阅读时间需要 11 分钟。
GlusterFS������
GlusterFS���������������������������������������������Scale���������������������������������������������������������������������������������������server���������Infiniband RDMA������TCP/IP���������������������������������������������������������GlusterFS���������������������
- ���������������������������������������������
- ������������������������������������������������������������������
- ���������������������������������������������
- ���������������������������������������������������������������������������������
������������
������GlusterFS���������������������������������������������������������������������������������������GlusterFS���������������������������������������������1G���
������������������������������������
IP | HOSTNAME | SYSTEM VERSION |
---|---|---|
192.168.72.73 | glusterfs-01 | centos7.6 |
192.168.72.74 | glusterfs-02 | centos7.6 |
������GlusterFS������
������centos���������������glusterfs���������
������������������������������������������������������������������������������������
���������������������������������������������
sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/configsystemctl stop firewalldsystemctl disable firewalldsystemctl restart
���������������������
systemctl status firewalld.service | grep activesestatus | grep SELINUX
���������������������
Inactive: inactive (dead)SELinux status: disabled
������hosts������
���������������������������������������
echo "192.168.72.73 glusterfs-01" >> /etc/hostsecho "192.168.72.74 glusterfs-02" >> /etc/hosts
������GlusterFS
���������������������������������������GlusterFS���
yum install -y centos-release-gluster
������������������
������������������������lsblk������������������������xfs������������������
mkfs.xfs -i size=512 /dev/sdb
���������centos6���������������������xfs������������
yum install -y xfsprogs
������������������������������������etc/fstab���
mkdir -p /bricks/brick1echo '/dev/sdb /bricks/brick1 xfs defaults 0 0' >> /etc/fstab
������������������������������������GlusterFS���
mount -a
������GlusterFS
������������������������GlusterFS���������
yum install -y glusterfs-server
������GlusterFS������������������
systemctl enable glusterd --nowsystemctl status glusterd | grep active
������������������������
���glusterfs-01���������������������������������������
gluster peer probe glusterfs-02
������������������������
gluster pool listgluster peer status
������GlusterFS���������
���������������������������������������
mkdir /bricks/brick1/gv0
���glusterfs-01������������������������������������������Replicate������
gluster volume create gv0 replica 2 glusterfs-01:/bricks/brick1/gv0 glusterfs-02:/bricks/brick1/gv0gluster volume start gv0
��������� ������������������������
gluster volume infogluster volume status gv0
GlusterFS������
������GlusterFS������������
mount -t glusterfs glusterfs-01:/gv0 /mnt
���������������������
df -Th | grep glusterfs
���������������������
for i in `seq -w 1 100`; do cp -rp /var/log/messages /mnt/copy-test-$i; done
���������������������
ls -lA /bricks/brick1/gv0ls -lA /mnt
���������������������������������������������������������������������������������������������������������
���������GlusterFS���������������
������������������������GlusterFS���������������������������������
发表评论
最新留言
关于作者
