-
在 CLI 中可以显示相同的进度信息,对于正在进行的复制,将显示状态sending:
otoro:shares otoro-proj-01 action-000> show
Properties:
id = 80a96f4f-93fe-4abd-eb54-fb82e7f8c69f
target = chutoro
continuous = false
include_snaps = true
max_bandwidth = unlimited
bytes_sent = 505M
estimated_size = 3.0G
estimated_time_left = 00:00:41
average_throughput = 63MB/s
use_ssl = false
state = sending
state_description = Sending update
next_update = Sync now
last_sync = Sun Jul 14 2013 06:04:38 GMT+0000 (UTC)
last_try = Sun Jul 14 2013 06:04:38 GMT+0000 (UTC)
last_result = success
-
注意:根据复制的数据大小,复制可能需要很长时间才能完成。使用进度信息可以确定更新状态。对于初始复制,一定不要将其中断,包括但不限于重新启动 ZFSSA 或取消更新;否则,必须重新启动整个初始复制。
-
复制目标信息可显示在 CLI 中,状态为actions:
otoro:configuration services replication targets> show
Targets:
TARGET LABEL ACTIONS
target-000 oakmeal 1
otoro:configuration services replication targets> select target-000
otoro:configuration services replication target-000> show
Properties:
address = 10.153.34.167:216
label = oakmeal
hostname = oakmeal-7320-167
asn = 4913649f-7549-6d2a-866b-987ddbc4e163
actions = 1
oakmeal-7320-167:configuration services replication target-000> actions
POOL PROJECT SHARE
pool1 project1 (multiple)
-
使用 CLI 时,知道新创建的复制操作的 ID 很有帮助。后来,可使用 ID 选择正确的复制操作节点。要查看新创建的操作的 ID,请使用 last 命令导航到新复制操作的节点。然后使用 get id 命令检索操作 ID:
otoro:> shares
otoro:shares> select p1
otoro:shares p1> replication
otoro:shares p1 replication> create
otoro:shares p1 action (uncommitted)> set target=oakmeal
target = oakmeal (uncommitted)
otoro:shares p1 action (uncommitted)> set pool=p
pool = p (uncommitted)
otoro:shares p1 action (uncommitted)> set use_ssl=false
use_ssl = false (uncommitted)
otoro:shares p1 action (uncommitted)> commit
otoro:shares p1 replication> last
otoro:shares p1 action-001> get id
id = fb1bb3fd-3361-42e1-e4a1-b06c426172fb
otoro:shares p1 action-001> done
otoro:shares p1 replication>