Import-IscsiTargetServerConfiguration

Import-IscsiTargetServerConfiguration

Imports an iSCSI Target Server configuration.

구문

Parameter Set: Default
Import-IscsiTargetServerConfiguration [-Filename] <String> [[-ComputerName] <String> ] [[-Credential] <String> ] [-Force] [ <CommonParameters>]

자세한 설명

The Import-IscsiTargetServerConfiguration cmdlet imports a Microsoft iSCSI Target Server configuration.

The configuration information includes the following:

-- If you exported the configuration from a clustered iSCSI Target Server instance, the resource group name.
-- If the cmdlet imports the configuration into an iSCSI Target Server clustered instance, the name of the resource group into which to import the configuration. This resource group name is the same as the iSCSI virtual disk attribute named MigrationResourceGroup.
-- The following attributes for each iSCSI target that iSCSI Target Server hosts: Enabled (target state), HostName, TargetIQN, Description, ResourceGroup, MigrationResourceGroup, EnforceIdleTimeoutDetection, FirstBurstLength, MaxBurstLength, MaxRecvDataSegmentLength, NumRecvBuffers, EnableCHAP, CHAPUserName, EnableReverseCHAP, ReverseCHAPUserName, InitiatorIDs, and LunMappings.
-- The following attributes for each iSCSI virtual disk that iSCSI Target Server recognizes: DiskId, Type, Enabled, DevicePath, ParentPath, Description, SnapshotStorageSize, MigrationDevicePath, MigrationParentPath, and MigrationResourceGroup.

MigrationParentPath and ParentPath always have a value of null.

Before you import a configuration, perform the following tasks:

-- Move the files for all the virtual disks that are eligible for migration from the source server to the destination server. If there are any file path changes, note the source to destination changes.
-- In a cluster configuration, ensure that the destination path of the file copy is on a cluster disk and that the cluster disk has been assigned to the desired iSCSI Target Server resource group, which you created on the destination cluster. Note the resource group that owns the path.
-- If the file paths have changed between the source and the destination servers, open the exported configuration .xml file in a text editor, and identify the MigrationDevicePath tags to change to reflect the changes.
-- In a cluster configuration, if the file path or the resource group name have changed between the source server and the destination server, open the exported configuration xml file in a text editor, and identify the MigrationResourceGroup tags to change to reflect the new resource group.

After you import a configuration, perform the following tasks:

-- You must manually reconfigure the forward and reverse Challenge Handshake Authentication Protocol (CHAP) secret keys.
-- Because importing does not include logical unit (LU) snapshot information, you must take necessary snapshots.
-- Manually apply any iSNS settings that are relevant to the new configuration.
-- Manually apply any iSCSI target portal settings that are relevant to the new configuration.

매개 변수

-ComputerName<String>

Specifies the computer name, or IP address, of the remote computer, if this cmdlet is run on a remote computer.

Specifies the cluster resource group network name, or cluster node name, if this cmdlet is run on a cluster configuration.

The cmdlet imports the iSCSI Target Server configuration to the computer or cluster that you specify. If you do not specify this parameter, the cmdlet imports the configuration into the iSCSI Target Server that runs on the same computer.

별칭

없음

필수 여부

false

위치

2

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Credential<String>

Specifies the credentials when connecting to a remote computer.

별칭

없음

필수 여부

false

위치

3

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Filename<String>

Specifies a file name. The cmdlet imports the configuration from the file that you specify.

별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Force

Indicates that the cmdlet deletes an existing iSCSITarget or iSCSIVirtualDisk with the same name or device path on the target node, and then imports the ones in the configuration file.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

  • None

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • None

예제

Example 1: Import configuration into the current computer or cluster

This command imports the iSCSI Target Server configuration of a standalone iSCSI Target Server or clustered iSCSI Target Servers from a specified file. The cmdlet imports into the current standalone computer or the current clustered node.

PS C:\> Import-IscsiTargetServerConfiguration -Filename "D:\ServerConfig78.xml"

Example 2: Import configuration into a specified computer or cluster

This command imports the iSCSI Target Server configuration of a standalone iSCSI Target Server or clustered iSCSI Target Servers from a specified file. The command imports the servers into the specified remote standalone computer or remote clustered node.

PS C:\> Import-IscsiTargetServerConfiguration -Filename "D:\ServerConfig78.xml" –ComputerName "TargetServer09.Contoso.com"

관련 항목

Export-IscsiTargetServerConfiguration

Set-IscsiServerTarget