Microsoft Hyper-V Server SAN policy is set to automatically mount volumes on startup
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.
<settings pass="offlineServicing"> <component name="Microsoft-Windows-PartitionManager" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="x86"> <SanPolicy>2</SanPolicy> </component></settings>
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
Article ID: 973834 - Last Review: 11/22/2010 01:30:00 - Revision: 1.2
Microsoft Hyper-V Server 2008, Microsoft Hyper-V Server 2008 R2
- kbhyperv kbexpertiseadvanced kbtshoot kbsurveynew KB973834