Skip to main content
SnapCenter Software 4.6
이 제품의 최신 릴리즈를 사용할 수 있습니다.
본 한국어 번역은 사용자 편의를 위해 제공되는 기계 번역입니다. 영어 버전과 한국어 버전이 서로 어긋나는 경우에는 언제나 영어 버전이 우선합니다.

PowerShell cmdlet을 사용하여 백업 클론 생성

기여자

클론 워크플로우에는 계획, 클론 작업 수행 및 작업 모니터링이 포함됩니다.

  • 필요한 것 *

PowerShell cmdlet을 실행하려면 PowerShell 환경을 준비해야 합니다.

PowerShell cmdlet에 대한 자세한 내용은 SnapCenter cmdlet 도움말을 사용하거나 을 참조하십시오 "SnapCenter 소프트웨어 cmdlet 참조 가이드".

  • 단계 *

    1. Open-SmConnection cmdlet을 사용하여 지정된 사용자에 대한 SnapCenter Server 연결 세션을 시작합니다.

      Open-SmConnection  -SMSbaseurl  https:\\snapctr.demo.netapp.com:8146/
    2. Get-SmBackup 또는 Get-SmResourceGroup cmdlet을 사용하여 클론을 생성할 수 있는 백업을 나열합니다.

      이 예에서는 사용 가능한 모든 백업에 대한 정보를 표시합니다.

       C:\PS>PS C:\> Get-SmBackup
      
      BackupId                      BackupName                    BackupTime                    BackupType
      --------                      ----------                    ----------                    ----------
         1              Payroll Dataset_vise-f6_08... 8/4/2015    11:02:32 AM                   Full Backup
         2              Payroll Dataset_vise-f6_08... 8/4/2015    11:23:17 AM

      다음 예제에서는 지정된 리소스 그룹에 대한 정보를 표시합니다.

      PS C:\> Get-SmResourceGroup
      
          Description                 :
          CreationTime                : 10/10/2016 4:45:53 PM
          ModificationTime            : 10/10/2016 4:45:53 PM
          EnableEmail                 : False
          EmailSMTPServer             :
          EmailFrom                   :
          EmailTo                     :
          EmailSubject                :
          EnableSysLog                : False
          ProtectionGroupType         : Backup
          EnableAsupOnFailure         : False
          Policies                    : {}
          HostResourceMaping          : {}
          Configuration               : SMCoreContracts.SmCloneConfiguration
          LastBackupStatus            : Completed
          VerificationServer          :
          EmailBody                   :
          EmailNotificationPreference : Never
          VerificationServerInfo      :
          SchedulerSQLInstance        :
          CustomText                  :
          CustomSnapshotFormat        :
          SearchResources             : False
          ByPassCredential            : False
          IsCustomSnapshot            :
          MaintenanceStatus           : Production
          PluginProtectionGroupTypes  : {SMSQL}
          Tag                         :
          IsInternal                  : False
          EnableEmailAttachment       : False
          VerificationSettings        : {}
          Name                        : NFS_DB
          Type                        : Group
          Id                          : 2
          Host                        :
          UserName                    :
          Passphrase                  :
          Deleted                     : False
          Auth                        : SMCoreContracts.SmAuth
          IsClone                     : False
          CloneLevel                  : 0
          Hosts                       :
          StorageName                 :
          ResourceGroupNames          :
          PolicyNames                 :
      
          Description                 :
          CreationTime                : 10/10/2016 4:51:36 PM
          ModificationTime            : 10/10/2016 5:27:57 PM
          EnableEmail                 : False
          EmailSMTPServer             :
          EmailFrom                   :
          EmailTo                     :
          EmailSubject                :
          EnableSysLog                : False
          ProtectionGroupType         : Backup
          EnableAsupOnFailure         : False
          Policies                    : {}
          HostResourceMaping          : {}
          Configuration               : SMCoreContracts.SmCloneConfiguration
          LastBackupStatus            : Failed
          VerificationServer          :
          EmailBody                   :
          EmailNotificationPreference : Never
          VerificationServerInfo      :
          SchedulerSQLInstance        :
          CustomText                  :
          CustomSnapshotFormat        :
          SearchResources             : False
          ByPassRunAs                 : False
          IsCustomSnapshot            :
          MaintenanceStatus           : Production
          PluginProtectionGroupTypes  : {SMSQL}
          Tag                         :
          IsInternal                  : False
          EnableEmailAttachment       : False
          VerificationSettings        : {}
          Name                        : Test
          Type                        : Group
          Id                          : 3
          Host                        :
          UserName                    :
          Passphrase                  :
          Deleted                     : False
          Auth                        : SMCoreContracts.SmAuth
          IsClone                     : False
          CloneLevel                  : 0
          Hosts                       :
          StorageName                 :
          ResourceGroupNames          :
          PolicyNames                 :
    3. New-SmClone cmdlet을 사용하여 클론 리소스 그룹 또는 기존 백업에서 클론 작업을 시작합니다.

      이 예에서는 모든 로그를 사용하여 지정된 백업에서 클론을 생성합니다.

      New-SmClone -BackupName Verify_delete_clone_on_qtree_windows_scc54_10-04-2016_19.05.48.0886 -Resources @{"Host"="scc54.sccore.test.com";"Uid"="QTREE1"}  -
      CloneToInstance scc54.sccore.test.com -Suffix '_QtreeCloneWin9'  -AutoAssignMountPoint -AppPluginCode 'DummyPlugin' -initiatorname 'iqn.1991-
      05.com.microsoft:scc54.sccore.test.com' -igroupprotocol 'mixed'
    4. Get-SmCloneReport cmdlet을 사용하여 클론 작업의 상태를 봅니다.

      이 예에서는 지정된 작업 ID에 대한 클론 보고서를 표시합니다.

    PS C:\> Get-SmCloneReport -JobId 186
    
        SmCloneId           : 1
        SmJobId             : 186
        StartDateTime       : 8/3/2015 2:43:02 PM
        EndDateTime         : 8/3/2015 2:44:08 PM
        Duration            : 00:01:06.6760000
        Status              : Completed
        ProtectionGroupName : Draper
        SmProtectionGroupId : 4
        PolicyName          : OnDemand_Clone
        SmPolicyId          : 4
        BackupPolicyName    : OnDemand_Full_Log
        SmBackupPolicyId    : 1
        CloneHostName       : SCSPR0054212005.mycompany.com
        CloneHostId         : 4
        CloneName           : Draper__clone__08-03-2015_14.43.53
        SourceResources     : {Don, Betty, Bobby, Sally}
        ClonedResources     : {Don_DRAPER, Betty_DRAPER, Bobby_DRAPER, Sally_DRAPER}
        SmJobError          :