レプリケーションパッケージのクローンは、最後に受信されたレプリケーションスナップショットに基づきます。
クローンが作成されたプロジェクトの作成時には、次のガイドラインに従って名前の競合を避けてください。
クローンが作成されたプロジェクトは、同じプール内の既存のプロジェクトと競合しない一意の名前を持つ必要があります。
クローンが作成されたプロジェクトのすべてのシェアについてのマウントポイントおよび SMB リソース名は、既存のすべてのマウントポイントまたは SMB リソース名と競合してはいけません。
プロジェクトプロパティーを継承するシェアの場合、プロジェクトレベルのマウントポイントまたは SMB リソース名、あるいはその両方をオーバーライドすることによって競合を解決します。
プロジェクトからプロパティーを継承しないシェアの場合、マウントポイントまたは SMB リソース名、あるいはその両方に追加される接尾辞を設定して、競合を解決するか、各シェアのマウントポイントまたは SMB リソース名、あるいはその両方を個別にオーバーライドします。
レプリケーションパッケージのクローンを作成するには次の手順を使用します。
target:> shares replication packages target: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 でソートされます。最新のレプリカスナップショットは、data timestamp によって示されます。
target:shares replication packages> select package-001
target:shares replication package-001> clone target:shares replication package-001 clone>
プロジェクト名は一意でなければならず、そうでなければクローン操作は失敗します。
プロジェクト名は 1 - 64 文字で構成される必要がありますが、空白を含めたり先頭にピリオドを使用したりしてはいけません。許容可能な文字は、英数字と特殊文字 _ - . : です
target:shares replication package-001 clone> set target_project=clone target_project = clone
競合が存在する場合、次のようなメッセージが表示されます。
target:shares replication package-001 clone> conflicts Cloning cannot proceed because the following shares have mountpoints or SMB resource names that are invalid or conflict with those of other shares (either on the system or also being failed over). Please specify valid mountpoints or SMB resource names for these shares: SHARE MOUNTPOINT SHARESMB share1 /export/share1 share1 clothes /export/clothes (inherited) clothes (inherited) electronics /export/electronics electronics furniture /export/furniture (inherited) furniture (inherited) groceries /export/groceries (inherited) groceries (inherited) health /export/health (inherited) health (inherited) toys /export/toys toys target:shares replication packages package-001 clone>
get コマンドを使用してクローンのプロパティーを表示します。
target:shares replication package-001 clone> get target_project = clone2 rename_suffix = original_mountpoint = /export mountpoint = /export/clone original_smb_resource_name = off smb_resource_name = off
プロパティー mountpoint は現在のマウントポイントを示します。プロパティー smb_resource_name は現在のリソース名を示します。
この設定は、プロジェクトからマウントポイントを継承するシェアに適用されます。set mountpoint を使用して、クローンの一意のマウントポイントを指定します。
target:shares replication package-001 clone> set mountpoint=/export/clone mountpoint = /export/clone
この設定は、プロジェクトから SMB リソース名を継承するシェアに適用されます。smb_resource_name を一意の SMB リソース名に設定します。
target:shares replication package-001 clone> set smb_resource_name=clone smb_resource_name = clone
このプロパティーは、競合が発生した場合にマウントポイントまたは SMB リソース名、あるいはその両方に追加される接尾辞を作成します。
target:shares replication package-001 clone> set rename_suffix=-clone rename_suffix = -clone
target:shares replication package-001 clone> select share1
次の例では、シェアのマウントポイントをオーバーライドします。
target:shares replication package-001 clone share1> set mountpoint=/export/appliances-clone target:shares replication package-001 clone share1> set sharesmb=appliances-clone
target:shares replication package-001 clone> confirm commit
名前の競合が検出された場合、次のようなメッセージが表示されます。
Cloning cannot proceed because the following shares have mountpoints or SMB resource names that are invalid or conflict with those of other shares (either on the system or also being failed over). Please specify valid mountpoints or SMB resource names for these shares: SHARE MOUNTPOINT SHARESMB share1 /export/share1 share1 clothes /export/clothes (inherited) clothes (inherited) electronics /export/electronics electronics furniture /export/furniture (inherited) furniture (inherited) target:shares replication package-001 clone>
必要に応じて、競合がなくなるまでステップ 6 および 7 を繰り返してから、「commit」と入力します。