6.5 HP StoreAll OS User Guide

1. Identify the source container to determine if the container has a pre-existing container sync
configuration:
curl -i <ENDPOINT>/<CONTAINER_NAME> -H
"X-AUTH-Token:<AUTHENTICATION_TOKEN>"
Sample command
curl -i
http://10.10.104.116:8888/v1/AUTH_7b9a902423a582c9eda266dcf3ad6974a2b98e4b21ea7c9e1e8d38f76afdf1b4/containerQ
-H "X-AUTH-Token:0258c46f66e84161aa4f258ffa6fb188"
If the sync values are not set, it is not displayed in the output:
HTTP/1.1 200 OK
Content-Length: 25
X-Container-Object-Count: 3
Accept-Ranges: bytes
X-Timestamp: 1382117713.35947
X-Container-Bytes-Used: 1178701824
Content-Type: text/plain; charset=utf-8
Date: Fri, 18 Oct 2013 17:45:14 GMT
file100K
file100M
file1G
If the Sync-To and Sync-Key values are set, it is displayed in the output. If it is a target container,
only the Sync-Key value is displayed.
HTTP/1.1 200 OK
X-Container-Sync-Key: secretkey123
Content-Length: 25
X-Container-Object-Count: 3
Accept-Ranges: bytes
X-Container-Sync-To:
http://10.2.11.10:8888/vi/AUTH_7b9a902423a582c9eda266dcf3ad6974a2b98e4b21ea7c9e1e8d38f76afdf1b4/ContainerSyncTarget
X-Timestamp: 1382117713.35947
X-Container-Bytes-Used: 1178701824
Content-Type: text/plain; charset=utf-8
Date: Fri, 18 Oct 2013 19:34:25 GMT
file100K
file100M
file1G
2. If no Sync-To value or Sync-Key value are set on the source container, or you want to change
the pre-existing sync values, enter the following command:
IMPORTANT: Keep in mind the following:
The Sync-Key values for both containers must match.
The Sync-To value is the endpoint of the target container.
Each container can have only one Sync-To value and one Sync-Key value.
curl -i -X POST <ENDPOINT_FOR_SOURCE_CONTAINER> -H
"X-Container-Sync_to: <ENDPOINT_FOR_TARGET_CONTAINER> -H
"X-Container-Sync-Key: <SYNC_KEY> -H
"X-Auth-Token:<AUTHENTICATION_TOKEN>
Sample command
# curl -i -X POST
http://10.2.48.204:8888/v1/AUTH_7b9a902423a582c9eda266dcf3ad697473909b181af608c0497bda5fa37ce321/ContainerSyncSource
-H "X-Container-Sync-To:
http://10.2.11.10:8888/v1/AUTH_7b9a902423a582c9eda266dcf3ad69744037ce77e61f526b0739578e87695f32/ContainerSyncTarget"
-H "X-Container-Sync-Key: secretkey123" -H "X-Auth-Token:8cd4745f3c7042ac83785410de00ffac"
154 Using Object Store