• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

SimpleDFS: SimpleDFS 分布式文件存储系统

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

SimpleDFS

开源软件地址:

https://gitee.com/FusionStack/SimpleDFS

开源软件介绍:

sdfs

Simple Distributed File System

Dependencies:

yum install -y epel-release \cmake libtool automake gcc gcc-c++ redhat-lsb \libuuid-devel libaio-devel flex bison python2-futurist \jemalloc-devel libtirpc-devel libattr libattr-devel \etcd yajl-devel curl-devel redis hiredis-devel \python-paramiko redhat-lsb expect gperftools \sqlite-devel libattr libattr-devel fuse-devel \openssl-devel rpcbindcurl https://bootstrap.pypa.io/get-pip.py -o get-pip.pypython get-pip.pypip install python-etcd futurist# or:# wget http://www.dnspython.org/kits/1.16.0/dnspython-1.16.0.tar.gz# tar -xzvf dnspython-1.16.0.tar.gz# cd dnspython-1.16.0# python setup.py install# wget https://files.pythonhosted.org/packages/a1/da/616a4d073642da5dd432e5289b7c1cb0963cc5dde23d1ecb8d726821ab41/python-etcd-0.4.5.tar.gz# tar -xzvf python-etcd-0.4.5.tar.gz# cd python-etcd-0.4.5# python setup.py installyum install -y yasmgit clone https://github.com/01org/isa-l.gitcd isa-l./autogen.sh ./configure make install

Installation

cd ${SRC_DIR}mkdir buildcd buildcmake ..makesudo make install

Configuration

1./*prepare disk, from 0 to num_of_your_disks for each node*/mkdir -p /opt/sdfs/data/cds/0mkfs.ext4 /dev/sdxblkid /dev/sdxecho 'UUID="you-disk-uuid" /opt/sdfs/data/cds/0 ext4 user_xattr,noatime,defaults 0 0' >> /etc/fstabmount /dev/sdx /opt/sdfs/data/cds/0/*prepare a ssd or nvme for redis mount*/mkdir -p /opt/sdfs/data/redis/0mkfs.ext4 /dev/sdyblkid /dev/sdyecho 'UUID="you-disk-uuid" /opt/sdfs/data/redis/0 ext4 user_xattr,noatime,defaults 0 0' >> /etc/fstabmount /dev/sdy /opt/sdfs/data/redis/02.modify config, only modify one of your nodes:vim /opt/sdfs/etc/cluster.confupdate hosts in first column, cds with num_of_disks for example:auto1.host155.vmnode31  redis[0,1] mond[0] cds[0,1,2,3,4,5,6] nfs[0]auto1.host155.vmnode32  redis[0,1] mond[0] cds[0,1,2,3,4,5,6] nfs[0]auto1.host155.vmnode33  redis[0,1] mond[0] cds[0,1,2,3,4,5,6] nfs[0]vim /opt/sdfs/etc/sdfs.conf update gloconf.networks, if only single host,then add config:solomode on; for example:networks {    192.168.140.0/8;}vim /etc/hostsupdate hosts, for example:192.168.140.31 auto1.host155.vmnode31192.168.140.32 auto1.host155.vmnode32192.168.140.33 auto1.host155.vmnode33

Create

/opt/sdfs/app/admin/cluster.py sshkey --hosts auto1.host155.vmnode31,auto1.host155.vmnode32,auto1.host155.vmnode33/opt/sdfs/app/admin/cluster.py create --hosts auto1.host155.vmnode31,auto1.host155.vmnode32,auto1.host155.vmnode33

Usage

sdfs --help

Auto Testing

cd testtest.py

FAQ

1.Drectories can only be mounted by nfs or cifs after the share has been created2.Using nfs3 protocol, exec the mount command likes: mount -t nfs -o vers=3 192.168.140.31:/test /mnt/test


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap