91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

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

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

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

禹城市| 鄂伦春自治旗| 登封市| 前郭尔| 锡林郭勒盟| 正定县| 兴和县| 南江县| 衢州市| 大英县| 保定市| 凤冈县| 南开区| 嘉定区| 莱州市| 济源市| 揭西县| 乌兰县| 南涧| 玛纳斯县| 客服| 靖宇县| 桐乡市| 栾川县| 桂阳县| 周宁县| 友谊县| 乌拉特后旗| 彩票| 咸阳市| 衡山县| 东平县| 行唐县| 田东县| 宁波市| 银川市| 安陆市| 元朗区| 郧西县| 岚皋县| 平山县|