亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

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

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

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

望谟县| 张家界市| 利津县| 临邑县| 香格里拉县| 双辽市| 友谊县| 贡嘎县| 颍上县| 阿拉善右旗| 奇台县| 安仁县| 改则县| 杨浦区| 大悟县| 威信县| 南皮县| 图们市| 白银市| 锡林浩特市| 水城县| 泸西县| 松潘县| 都兰县| 固阳县| 顺平县| 望都县| 和静县| 洛南县| 临邑县| 房山区| 称多县| 新泰市| 乐亭县| 重庆市| 固始县| 定州市| 义马市| 苏尼特左旗| 丹寨县| 壶关县|