Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Microsoft Hyper-V Server SAN policy is set to automatically mount volumes on startup


View products that this article applies to.

Symptoms

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).

↑ Back to the top


Cause

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.

↑ Back to the top


Resolution

To resolve this problem use one of the following methods to change the default SAN policy.

Method 1:Use diskpart

  1. Log on to the system with administrative rights.
  2. Click Start, click Run, type cmd, and then press ENTER.
  3. In the command line window, type diskpart, and then press ENTER.
  4. Type SAN, and then press ENTER. This command will return the current set SAN policy.
  5. Type SAN POLICY = OfflineShared, and then press ENTER. The SAN policy is now set not to automatically mount SAN hosted volumes.
  6. Type exit, and then press ENTER.

Method 2: Set the SAN policy in the Unattended setup file for automated deployment scenarios

The 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 interface

For more information, visit the following Microsoft Web site:

↑ Back to the top


More Information

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
For more information, visit the following Microsoft Web site: On Windows Server 2008 Enterprise and Windows Server 2008 Datacenter, the default SAN policy is VDS_SP_OFFLINE_SHARED. On all other Windows Server 2008 editions, the default SAN policy is VDS_SP_ONLINE.

↑ Back to the top


Keywords: kbhyperv, kbexpertiseadvanced, kbtshoot, kbsurveynew, kb

↑ Back to the top

Article Info
Article ID : 973834
Revision : 3
Created on : 3/30/2017
Published on : 3/30/2017
Exists online : False
Views : 495