本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
取代叢集中的節點
若要取代節點,您必須先訂購替換。您可以從 主控台、 AWS CLI或其中一個 AWS SDKs 訂購替換節點。如果您是從主控台訂購替換節點,則可以針對任何尚未取消或完成的任務訂購替換節點。然後,您將運作狀態不佳的節點與叢集取消關聯、將替換節點連接至您的網路,並解鎖叢集,包括替換節點、將替換節點與叢集建立關聯,以及在 Snowball Edge 服務上重新啟動 Amazon S3 相容儲存。
從主控台訂購替換節點
-
登入 AWS Snow 系列管理主控台
。 -
針對屬於您已從任務儀表板建立之叢集的節點,尋找並選擇一個任務。
-
針對 Actions (動作),選擇 Replace node (取代節點)。
這樣做會開啟任務建立精靈的最後一個步驟,而所有設定與原先建立叢集的方式相同。
-
選擇建立作業。
您的替代 Snowball Edge 現在已準備就緒。使用下列程序從叢集中移除運作狀態不佳的節點。
從叢集移除節點
-
關閉要移除的節點。如需詳細資訊,請參閱關閉 Snowball Edge。
-
使用
describe-cluster命令來確保無法連線運作狀態不佳的節點。這由NetworkReachability物件UNREACHABLEState名稱的 值表示。snowballEdge describe-cluster --manifest-filepath/to/manifest/file.bin--unlock-codeunlock-code--endpoint https://ip-address-of-device-in-cluster範例
describe-cluster輸出的{ "ClusterId": "CID12345678-1234-1234-1234-123456789012", "Devices": [ { "DeviceId": "JID12345678-1234-1234-1234-123456789012", "UnlockStatus": { "State": "UNLOCKED" }, "ActiveNetworkInterface": { "IpAddress": "10.0.0.0" }, "ClusterAssociation": { "ClusterId": "CID12345678-1234-1234-1234-123456789012", "State": "ASSOCIATED" }, "NetworkReachability": { "State": "REACHABLE" }, "Tags": [] }, { "DeviceId": "JID12345678-1234-1234-1234-123456789013", "UnlockStatus": { "State": "UNLOCKED" }, "ActiveNetworkInterface": { "IpAddress": "10.0.0.1" }, "ClusterAssociation": { "ClusterId": "CID12345678-1234-1234-1234-123456789012", "State": "ASSOCIATED" }, "NetworkReachability": { "State": "REACHABLE" }, "Tags": [] }, { "DeviceId": "JID12345678-1234-1234-1234-123456789014", "ClusterAssociation": { "ClusterId": "CID12345678-1234-1234-1234-123456789012", "State": "ASSOCIATED" }, "NetworkReachability": { "State": "UNREACHABLE" } } ] } -
使用
describe-service命令來確保s3-snow服務的狀態為DEGRADED。snowballEdge describe-service --service-id s3-snow --device-ip-addressessnow-device-1-address snow-device-2-address--manifest-filepath/to/manifest/file.bin--unlock-codeunlock-code--endpoint https://snow-device-ip-address範例
describe-service命令的輸出{ "ServiceId": "s3-snow", "Autostart": true, "Status": { "State": "DEGRADED" }, "ServiceCapacities": [ { "Name": "S3 Storage", "Unit": "Byte", "Used": 38768180432, "Available": 82961231819568 } ], "Endpoints": [ { "Protocol": "https", "Port": 443, "Host": "10.0.0.10", "CertificateAssociation": { "CertificateArn": "arn:aws:snowball-device:::certificate/7Rg2lP9tQaHnW4sC6xUzF1vGyD3jB5kN8MwEiYpT" }, "Description" : "s3-snow bucket API endpoint (for s3control SDK)", "DeviceId": "JID-beta-207012320001-24-02-05-17-17-26", "Status": { "State": "ACTIVE" } }, { "Protocol": "https", "Port": 443, "Host": "10.0.0.11", "CertificateAssociation": { "CertificateArn": "arn:aws:snowball-device:::certificate/7Rg2lP9tQaHnW4sC6xUzF1vGyD3jB5kN8MwEiYpT" }, "Description": "Description" : "s3-snow object & bucket API endpoint (for s3api SDK)", "DeviceId": "JID-beta-207012320001-24-02-05-17-17-26", "Status": { "State": "ACTIVE" } }, { "Protocol": "https", "Port": 443, "Host": "10.0.0.12", "CertificateAssociation": { "CertificateArn": "arn:aws:snowball-device:::certificate/7Rg2lP9tQaHnW4sC6xUzF1vGyD3jB5kN8MwEiYpT" }, "Description": "Description" : "s3-snow bucket API endpoint (for s3control SDK)", "DeviceId": "JID-beta-207012240003-24-02-05-17-17-27", "Status": { "State": "ACTIVE" } }, { "Protocol": "https", "Port": 443, "Host": "10.0.0.13", "CertificateAssociation": { "CertificateArn": "arn:aws:snowball-device:::certificate/7Rg2lP9tQaHnW4sC6xUzF1vGyD3jB5kN8MwEiYpT" }, "Description": "Description" : "s3-snow object & bucket API endpoint (for s3api SDK)", "DeviceId": "JID-beta-207012320001-24-02-05-17-17-27", "Status": { "State": "ACTIVE" } } ] } -
使用
disassociate-device命令從叢集取消關聯和移除運作狀態不佳的節點。snowballEdge disassociate-device --device-iddevice-id--manifest-filepath/to/manifest/file.bin--unlock-codeunlock-code--endpoint https://ip-address-of-unhealthy-device範例
disassociate-device命令的輸出Disassociating your Snowball Edge device from the cluster. Your Snowball Edge device will be disassociated from the cluster when it is in the "DISASSOCIATED" state. You can use the describe-cluster command to determine the state of your cluster. -
再次使用
describe-cluster命令,以確保運作狀態不佳的節點與叢集取消關聯。snowballEdge describe-cluster --manifest-filepath/to/manifest/file.bin--unlock-codeunlock-code--endpoint https:ip-address-of-healthy-device範例
describe-cluster命令的 命令顯示節點已取消關聯{ "ClusterId": "CID12345678-1234-1234-1234-123456789012", "Devices": [ { "DeviceId": "JID12345678-1234-1234-1234-123456789012", "UnlockStatus": { "State": "UNLOCKED" }, "ActiveNetworkInterface": { "IpAddress": "10.0.0.0" }, "ClusterAssociation": { "ClusterId": "CID12345678-1234-1234-1234-123456789012", "State": "ASSOCIATED" }, "NetworkReachability": { "State": "REACHABLE" }, "Tags": [] }, { "DeviceId": "JID12345678-1234-1234-1234-123456789013", "UnlockStatus": { "State": "UNLOCKED" }, "ActiveNetworkInterface": { "IpAddress": "10.0.0.1" }, "ClusterAssociation": { "ClusterId": "CID12345678-1234-1234-1234-123456789012", "State": "ASSOCIATED" }, "NetworkReachability": { "State": "REACHABLE" }, "Tags": [] }, { "DeviceId": "JID12345678-1234-1234-1234-123456789014", "ClusterAssociation": { "ClusterId": "CID12345678-1234-1234-1234-123456789012", "State": "DISASSOCIATED" } } ] } 關閉並傳回運作狀態不佳的裝置 AWS。如需詳細資訊,請參閱關閉 Snowball Edge 和傳回 Snowball Edge 裝置。
當替代裝置送達時,請使用下列程序將其新增至叢集。
新增替代裝置
-
放置叢集的替換裝置,以便您可以存取所有裝置的正面、背面和頂部。
-
開啟節點電源,並確保節點連接到與叢集其他部分相同的內部網路。如需詳細資訊,請參閱連線至本機網路。
-
使用
unlock-cluster命令並包含新節點的 IP 地址。snowballEdge unlock-cluster --manifest-filepath/to/manifest/file.bin--unlock-codeunlock-code--endpoint https://ip-address-of-cluster-device--device-ip-addressesnode-1-ip-address node-2-ip-address new-node-ip-address新節點的狀態會是 ,
DEGRADED直到您在下一個步驟中將其與叢集建立關聯為止。 -
使用
associate-device命令將取代節點與叢集建立關聯。snowballEdge associate-device --device-ip-addressnew-node-ip-address範例
associate-device命令輸出的Associating your Snowball Edge device with the cluster. Your Snowball Edge device will be associated with the cluster when it is in the ASSOCIATED state. You can use the describe-device command to determine the state of your devices. -
使用
describe-cluster命令來確保新節點與叢集相關聯。snowballEdge describe-cluster --manifest-filepath/to/manifest/file.bin--unlock-codeunlock-code--endpoint https://node-ip-address範例
describe-cluster命令輸出的{ "ClusterId": "CID12345678-1234-1234-1234-123456789012", "Devices": [ { "DeviceId": "JID12345678-1234-1234-1234-123456789012", "UnlockStatus": { "State": "UNLOCKED" }, "ActiveNetworkInterface": { "IpAddress": "10.0.0.0" }, "ClusterAssociation": { "ClusterId": "CID12345678-1234-1234-1234-123456789012", "State": "ASSOCIATED" }, "NetworkReachability": { "State": "REACHABLE" }, "Tags": [] }, { "DeviceId": "JID-CID12345678-1234-1234-1234-123456789013", "UnlockStatus": { "State": "UNLOCKED" }, "ActiveNetworkInterface": { "IpAddress": "10.0.0.1" }, "ClusterAssociation": { "ClusterId": "CID12345678-1234-1234-1234-123456789012", "State": "ASSOCIATED" }, "NetworkReachability": { "State": "REACHABLE" }, "Tags": [] }, { "DeviceId": "JID-CID12345678-1234-1234-1234-123456789015", "UnlockStatus": { "State": "UNLOCKED" }, "ActiveNetworkInterface": { "IpAddress": "10.0.0.2" }, "ClusterAssociation": { "ClusterId": "CID12345678-1234-1234-1234-123456789012", "State": "ASSOCIATED" }, "NetworkReachability": { "State": "REACHABLE" }, "Tags": [] } } ] } -
在新節點上,建立兩個虛擬網路介面 VNIs)。如需詳細資訊,請參閱在 Snowball Edge 服務上啟動 Amazon S3 相容儲存
-
使用
stop-service命令來停止 s3-snow 服務。snowballEdge stop-service --service-id s3-snow --device-ip-addressescluster-device-1-ip-address cluster-device-2-ip-address cluster-device-3-ip-address--manifest-filepath/to/manifest/file.bin--unlock-codeunlock-code--endpoint https://snow-device-ip-address範例
stop-service命令輸出的Stopping the AWS service on your Snowball Edge. You can determine the status of the AWS service using the describe-service command. -
將新節點新增至叢集後,請使用
start-service命令啟動 s3-snow 服務。snowballEdge start-service --service-id s3-snow --device-ip-addressescluster-device-1-ip-address cluster-device-2-ip-address cluster-device-3-ip-address--virtual-network-interface-arns "device-1-vni-ip-address-a" "device-1-vni-ip-address-b" "device-2-vni-ip-address-a" "device-2-vni-ip-address-b" "device-3-vni-ip-address-a" "device-3-vni-ip-address-b" --manifest-filepath/to/manifest/file.bin--unlock-codeunlock-code--endpoint https://snow-device-ip-address範例
start-service命令輸出的Starting the AWS service on your Snowball Edge. You can determine the status of the AWS service using the describe-service command. -
使用
describe-service命令來確保 s3-snow 服務已啟動。snowballEdge describe-service --service-id s3-snow --device-ip-addressessnow-device-1-address snow-device-2-address snow-device-3-address--manifest-filepath/to/manifest/file.bin--unlock-codeunlock-code--endpoint https://snow-device-ip-address範例
descibe-service命令輸出的{ "ServiceId": "s3-snow", "Autostart": true, "Status": { "State": "ACTIVE" }, "ServiceCapacities": [{ "Name": "S3 Storage", "Unit": "Byte", "Used": 38768180432, "Available": 82961231819568 }], "Endpoints": [{ "Protocol": "https", "Port": 443, "Host": "10.0.0.10", "CertificateAssociation": { "CertificateArn": "arn:aws:snowball-device:::certificate/7Rg2lP9tQaHnW4sC6xUzF1vGyD3jB5kN8MwEiYpT" }, "Description": "s3-snow bucket API endpoint (for s3control SDK)", "DeviceId": "JID12345678-1234-1234-1234-123456789012", "Status": { "State": "ACTIVE" } }, { "Protocol": "https", "Port": 443, "Host": "10.0.0.11", "CertificateAssociation": { "CertificateArn": "arn:aws:snowball-device:::certificate/7Rg2lP9tQaHnW4sC6xUzF1vGyD3jB5kN8MwEiYpT" }, "Description": "s3-snow object & bucket API endpoint (for s3api SDK)", "DeviceId": "JID12345678-1234-1234-1234-123456789013", "Status": { "State": "ACTIVE" } }, { "Protocol": "https", "Port": 443, "Host": "10.0.0.12", "CertificateAssociation": { "CertificateArn": "arn:aws:snowball-device:::certificate/7Rg2lP9tQaHnW4sC6xUzF1vGyD3jB5kN8MwEiYpT" }, "Description": "s3-snow bucket API endpoint (for s3control SDK)", "DeviceId": "JID12345678-1234-1234-1234-123456789015", "Status": { "State": "ACTIVE" } }, { "Protocol": "https", "Port": 443, "Host": "10.0.0.13", "CertificateAssociation": { "CertificateArn": "arn:aws:snowball-device:::certificate/7Rg2lP9tQaHnW4sC6xUzF1vGyD3jB5kN8MwEiYpT" }, "Description": "s3-snow object & bucket API endpoint (for s3api SDK)", "DeviceId": "JID-beta-207012320001-24-02-05-17-17-27", "Status": { "State": "ACTIVE" } }, { "Protocol": "https", "Port": 443, "Host": "10.0.0.14", "CertificateAssociation": { "CertificateArn": "arn:aws:snowball-device:::certificate/7Rg2lP9tQaHnW4sC6xUzF1vGyD3jB5kN8MwEiYpT" }, "Description": "s3-snow bucket API endpoint (for s3control SDK)", "DeviceId": "JID-beta-207012240003-24-02-05-17-17-28", "Status": { "State": "ACTIVE" } }, { "Protocol": "https", "Port": 443, "Host": "10.0.0.15", "CertificateAssociation": { "CertificateArn": "arn:aws:snowball-device:::certificate/7Rg2lP9tQaHnW4sC6xUzF1vGyD3jB5kN8MwEiYpT" }, "Description": "s3-snow object & bucket API endpoint (for s3api SDK), "DeviceId": "JID-beta-207012320001-24-02-05-17-17-28", "Status": { "State": "ACTIVE" } } }] }