日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關咨詢
選擇下列產(chǎn)品馬上在線溝通
服務時間:8:30-17:00
你可能遇到了下面的問題
關閉右側工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
linux支持的集群文件系統(tǒng)
Linux支持的集群文件系統(tǒng)有GFS、OCFS2、Lustre、Ceph等,它們可以提供高性能、高可靠性和可擴展性的數(shù)據(jù)存儲服務。

在Linux上配置高可用的集群文件系統(tǒng)

網(wǎng)站建設哪家好,找創(chuàng)新互聯(lián)!專注于網(wǎng)頁設計、網(wǎng)站建設、微信開發(fā)、重慶小程序開發(fā)、集團企業(yè)網(wǎng)站建設等服務項目。為回饋新老客戶創(chuàng)新互聯(lián)還提供了南木林免費建站歡迎大家使用!

隨著數(shù)據(jù)量的不斷增長,對于存儲系統(tǒng)的要求也越來越高,高可用性是一個重要的指標,它意味著系統(tǒng)在出現(xiàn)故障時能夠自動恢復,保證數(shù)據(jù)的完整性和可用性,本文將介紹如何在Linux上配置高可用的集群文件系統(tǒng),包括Ceph、GlusterFS和NFS等。

1、Ceph

Ceph是一個分布式對象存儲系統(tǒng),它可以提供高性能、高可靠性和可擴展性的存儲服務,Ceph的核心組件包括Monitor、OSD、MDS和RADOS Gateway等。

1、1 安裝Ceph

在Linux上安裝Ceph需要以下步驟:

1、安裝依賴庫:

sudo aptget install y librados2 librbd1 librgw2devel libcephfs2 libcephfsdevel pythonradosclient pythonrbdtools pythonrgwlibs pythonswiftclient pythonkeystoneauth1

2、下載并解壓Ceph源碼:

wget https://download.ceph.com/rpmnautilus/el7/x86_64/cephrelease0.901.el7.noarch.rpm
sudo rpm Uvh cephrelease0.901.el7.noarch.rpm
sudo yum install y ceph cephfuse cephdeploy cephmds cephmon cephosd rbdnbd rgwclients librados2 librbd1 rgwgateway keystoneauth1 python2novaclient python2cinderclient python2glanceclient python2swiftclient python2keystoneclient python2heatclient python2neutronclient python2novaclient python2cinderclient python2glanceclient python2swiftclient python2keystoneclient python2heatclient python2neutronclient

3、配置Ceph集群:

/etc/ceph/ceph.conf文件中添加以下內(nèi)容:

[global]
fsid = {uuid}
mon_initial_members = {hostname}
mon_host = {hostname}
auth_cluster_required = cephx
auth_service_required = cephx
auth_client_required = cephx
osd_pool_default_size = 2
osd_pool_default_min_size = 1
osd_pool_default_pg_num = 64
osd_crush_chooseleaf_type = 0

4、啟動Ceph集群:

sudo systemctl start cephmon.target ceph.target rgw.target osd.target

5、驗證Ceph集群狀態(tài):

sudo ceph s

1、2 配置Ceph客戶端

在客戶端上安裝Ceph客戶端工具:

sudo yum install y cephfuse radosgwadmin rgwshell rbdadmin rbdmirror rbdwatcher librados2 librbd1 rgwgateway keystoneauth1 python2novaclient python2cinderclient python2glanceclient python2swiftclient python2keystoneclient python2heatclient python2neutronclient python2novaclient python2cinderclient python2glanceclient python2swiftclient python2keystoneclient python2heatclient python2neutronclient

創(chuàng)建Ceph配置文件:

sudo vi /etc/ceph/ceph.conf

/etc/ceph/ceph.conf文件中添加以下內(nèi)容:

[global]
fsid = {uuid}
mon_initial_members = {hostname}
mon_host = {hostname}
auth_cluster_required = cephx
auth_service_required = cephx
auth_client_required = cephx
osd_pool_default_size = 2
osd_pool_default_min_size = 1
osd_pool_default_pg_num = 64
osd_crush_chooseleaf_type = 0

掛載Ceph文件系統(tǒng):

sudo mount t ceph o name=admin,secret={secret} {mountpoint} {device}:{partition} /mnt/{mountpoint} {optional:uid}:{optional:gid} {optional:options} {optional:dumppath} {optional:lockpath} {optional:logpath} {optional:keyvalue} {optional:cachepath} {optional:userpath} {optional:fsname} {optional:mdsnamespace} {optional:faildir} {optional:badblockspath} {optional:journal} {optional:noatime} {optional:compress} {optional:fallocate} {optional:dedupe} {optional:space_cache} {optional:xattr} {optional:subvol} {optional:userquota} {optional:groupquota} {optional:inodecache} {optional:opthreads} {optional:opthreadswait} {optional:maxopenfiles} {optional:mdstimeout} {optional:logtostderr} {optional:logtosyslog} {optional:loglevel} {optional:logfilepath} {optional:logfilerotateinterval} {optional:logfilerotatecount} {optional:logfilecompactinterval} {optional:logfilecompactcount} {optional:logfilecompactthreshold} {optional:logfilecompactmaxage} {optional:logfilecompactminfreespace} {optional:logfilecompactmode} {optional:logfilecompactumask} {optional:logfilecompactrootonly} {optional:logfilecompactnoheadroom} {optional:logfilecompactnotrim} {optional:logfilecompactnorename} {optional:logfilecompactnocopytruncate} {optional:logfilecompactnoremoveemptydirs} {optional:logfilecompactnoremovefilesnotemptydirs} {optional:logfilecompactnoremovefilesnotemptydirsandunlinkemptydirs} {optional:logfilecompactnoremovefilesnotemptydirsandunlinkemptydirsandrmdiremptydirs} {optional:logfilecompactnoremovefilesnotemptydirsandunlinkemptydirsandrmdiremptydirsandrmdirparentdirsemptydirs} {optional:logfilecompactnoremovefilesnotemptydirsandunlinkemptydirsandrmdiremptydirsandrmdirparentdirsemptydirsandrmdirparentdirsemptydirsandrmdirparentdirsemptydirsandrmdirparentdirsemptydirsandrmdirparentdirsemptydirsandrmdirparentdirsemptydirsandrmdirparentdirsemptydirsandrmdirparentdirsemptydirsandrmdirparentdirsemptydirsandrmdirparentdirsemptydirsandrmdirparentdirsemptydirsandrmdirparentdirsemptydirsandrmdirparentdirsemptydirsandrmdirparentdirsemptydirsandrmdirparentdirsemptydirsandrmdirparentdirsemptydirsandrm

當前文章:linux支持的集群文件系統(tǒng)
轉載注明:http://m.5511xx.com/article/dpsdjio.html