GlusterFS in AWS

挂载Amazon EBS

yum install -y xfsprogs
wget -P /etc/yum.repos.d
sed -i 's/$releasever/6/g' /etc/yum.repos.d/glusterfs-epel.repo 
mkfs.xfs -i size=512 /dev/xvdf
mkdir -p /export/xvdf
echo "/dev/xvdf /export/xvdf xfs defaults,nofail,noatime 1 2"  >> /etc/fstab
mount -a


#install glusterfs
yum install -y glusterfs{-fuse,-server}
#start glusterfs
service glusterd start
#turn on auto-start
chkconfig glusterd on
mkdir /export/xvdf/brick1
gluster volume create pcvol
gluster volume start pcvol
gluster volume info
gluster volume status


#install glusterfs repo
wget -P /etc/yum.repos.d
#fix it for amazon linux
sed -i 's/$releasever/6/g' /etc/yum.repos.d/glusterfs-epel.repo 

#install glusterfs
yum install -y glusterfs-fuse

#setup fstab
echo " /data_pcvol glusterfs defaults,noatime 0 0" >> /etc/fstab

mkdir /data_pcvol
mount -a
ls /data_pcvol




您的电子邮箱地址不会被公开。 必填项已用*标注

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    Markdown is turned off in code blocks:
     [This is not a link](

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see