When Microsoft Hyper-V Server is started, it automatically tries to mount all the volumes that are connected to the server. These volumes include volumes on local disks and Storage Area Network (SAN) logical unit numbers (LUNs).
The default SAN policy in Microsoft Hyper-V Server is designed for ease of use. The policy enables the user to get started with a deployment immediately, without having to mount additional volumes that are stored on a SAN. However, you may not want to use this default setting in some environments.
To resolve this problem use one of the following methods to change the default SAN policy.
Method 1:Use diskpart
- Log on to the system with administrative rights.
- Click Start, click Run, type cmd, and then press ENTER.
- In the command line window, type diskpart, and then press ENTER.
- Type SAN, and then press ENTER. This command will return the current set SAN policy.
- Type SAN POLICY = OfflineShared, and then press ENTER. The SAN policy is now set not to automatically mount SAN hosted volumes.
- Type exit, and then press ENTER.
Method 2: Set the SAN policy in the Unattended setup file for automated deployment scenariosThe following code will change the SAN policy not to automatically mount SAN hosted volumes.
Method 3: Use the Virtual Disk Service (VDS) programming interfaceFor more information, visit the following Microsoft Web site:
The SAN policy is defined within the VDS environment of the system and is represented by the following values:
- VDS_SP_UNKNOWN = 0x0
- VDS_SP_ONLINE = 0x1
- VDS_SP_OFFLINE_SHARED = 0x2
- VDS_SP_OFFLINE = 0x3
ID articolo: 973834 - Ultima revisione: 22 nov 2010 - Revisione: 1