中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

swift擴容

發布時間:2020-06-09 12:49:23 來源:網絡 閱讀:4782 作者:fire7758 欄目:移動開發

swift擴容有增加node節點的硬盤和增加node節點2種方式。

本文基于上篇 http://fire7758.blog.51cto.com/993821/1374190

一、Node中增加硬盤

node2中增加硬盤擴容,這里以增加/dev/sdc為例。

1)Node2操作

#parted /dev/sdc mklabel gpt

#parted /dev/sdc mkpart primary 0% 100%

#mkfs.xfs -i size=1024 /dev/sdc1

#mkdir -p /srv/node/sdc1

#echo "/dev/sdc1 /srv/node/sdc1 xfsnoatime,nodiratime,nobarrier,logbufs=8 0 0" >> /etc/fstab

#mount /srv/node/sdc1

#chown -R swift:swift /srv/node/sdc1

2)ProxyNode操作

Node2添加ring

swift-ring-builder account.builder add z2-192.168.1.228:6002/sdc1100

swift-ring-builder container.builder add z2-192.168.1.228:6001/sdc1100

swift-ring-builder object.builder add z2-192.168.1.228:6000/sdc1100

確認ring內容

swift-ring-builder /etc/swift/account.builder

swift-ring-builder /etc/swift/container.builder

swift-ring-builder /etc/swift/object.builder

       Rebalancethe rings

swift-ring-builder account.builder rebalance

swift-ring-builder container.builder rebalance

swift-ring-builder object.builder rebalance

復制account.ring.gz, container.ring.gz, andobject.ring.gz到其他proxy NodeStorage Node

# scp *.ring.gz swift1:/etc/swift

# scp *.ring.gz swift2:/etc/swift

# scp *.ring.gz swift3:/etc/swift

所有node檢查/etc/swift權限,owner修改為swift

#chown -R swift:swift /etc/swift/


二、添加新機器

如增加節點node4

在node4上做如下設置:(上篇的章節)

General Installation Steps for All Nodes

General Installation Steps for All Swift Nodesincludeproxy

時間同步

修改hosts文件

Swift Storage Node安裝步驟

proxy Node上做如下設置

node4添加ring

swift-ring-builder account.builder add z3-192.168.1.229:6002/loop100

swift-ring-builder container.builder add z3-192.168.1.229:6001/loop100

swift-ring-builder object.builder add z3-192.168.1.229:6000/loop100

確認ring內容

swift-ring-builder /etc/swift/account.builder

swift-ring-builder /etc/swift/container.builder

swift-ring-builder /etc/swift/object.builder

Rebalancethe rings

swift-ring-builder account.builder rebalance

swift-ring-builder container.builder rebalance

swift-ring-builder object.builder rebalance

復制account.ring.gz, container.ring.gz, andobject.ring.gz到其他proxy NodeStorage Node

# scp *.ring.gz swift1:/etc/swift

# scp *.ring.gz swift2:/etc/swift

# scp *.ring.gz swift3:/etc/swift

# scp *.ring.gz swift4:/etc/swift

所有node檢查/etc/swift權限,owner修改為swift

#chown -R swift:swift /etc/swift/

重啟動proxy Node

#swift-init proxy restart

啟動Node4

#swift-init all start

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

祥云县| 城口县| 正定县| 枣阳市| 巩留县| 六枝特区| 马龙县| 昌乐县| 杂多县| 德昌县| 砀山县| 承德市| 商城县| 射阳县| 剑阁县| 扎兰屯市| 扎囊县| 和林格尔县| 南城县| 高碑店市| 永顺县| 会宁县| 商都县| 宝山区| 新兴县| 阳江市| 凤凰县| 成武县| 郧西县| 金湖县| 福鼎市| 江山市| 武威市| 聊城市| 昆山市| 牟定县| 塔河县| 英吉沙县| 天柱县| 建德市| 浪卡子县|