标签:关系 rm -rf 格式化 tar bind yum body 配置 pool
node1
yum install glusterfs -y
systemctl restart glusterd.service ;systemctl enable glusterd.service
vgrename vg_bricks vg0
lvcreate -L 10G -T vg0/thin_pool
lvcreate -V 3G -n lv1 vg0/thin_pool
mkfs.xfs /dev/vg0/lv1
mkdir /xx
echo "/dev/vg0/lv1 /xx xfs defaults 0 0" >> /etc/fstab ;mount -a
mkdir /xx/data
vim aa
chmod +x aa
scp /root/aa node2:/root
scp /root/aa node3:/root
scp /root/aa node4:/root
./aa
gluster peer probe node2 node3 node4
gluster volume create v1 node1:/xx/data node2:/xx/data node3:/xx/data node4:/xx/data
gluster volume start v1
yum install nfs-u* -y
systemctl restart rpcbind;systemctl enable rpcbind
showmount -e node1
mount node1:/v1 /mnt
touch /mnt/aa{1..10}
ls /xx/data/ -1 |wc -l
rm -rf /mnt/*
umount /mnt/
mount.glusterfs node1:/v1 /mnt
touch /mnt/aa{1..10}
ls /xx/data/ -1 |wc -l
标签:关系 rm -rf 格式化 tar bind yum body 配置 pool
原文地址:http://blog.51cto.com/12909202/2313718