在 CLI 中,复制数据包组织在 shares replication packages 下的一个平面视图中,该视图显示了系统中的所有复制数据包。
hostname:> shares replication packages hostname:shares replication packages> list ID STATE DATA TIMESTAMP SOURCE DATASET package-002 idle 2015-10-02 19:26:37 hostsource berries package-001 idle 2015-10-02 19:26:10 hostsource berries package-004 idle 2015-10-02 20:53:51 hostsource berries/blackberry package-003 recv 2015-10-02 20:59:52 hostsource cherries/maraschino
数据包按 SOURCE、DATASET 和 DATA_TIMESTAMP 以降序排序。
hostname:shares replication packages> select package-001 hostname:shares replication packages package-001> show Properties: id = d6137c89-7056-4788-a4d1-b5892fe315e0 source_name = hostsource source_asn = a751dc0f-abcd-1234-6789-f5e8315eaffa source_ip = 00.000.00.00:000 source_pool = poolS target_pool = poolT replica_of = berries enabled = true state = idle state_description = Idle (no update in progress) offline = false import_path = data_timestamp = Fri Oct 02 2015 19:26:10 GMT+0000 (UTC) last_sync = Fri Oct 02 2015 19:26:10 GMT+0000 (UTC) last_try = Fri Oct 02 2015 19:26:10 GMT+0000 (UTC) last_result = success Projects: berries
可以通过指定复制数据包的 ID 来直接选择复制数据包,如以下示例中所示:
hostname:shares replication packages> select d6137c89-7056-4788-a4d1-b5892fe315e0 hostname:shares replication packages package-001>
hostname:shares replication packages package-001> select berries hostname:shares replication packages package-001 berries> get mountpoint mountpoint = /export hostname:shares replication packages package-001 berries> get sharenfs sharenfs = on
有关可以修改的数据包属性的列表,请参见复制数据包属性。