Best practices for using dynamic disks on Windows Server 2003-based computers
For a Microsoft Windows 2000 version of this article, see 329707.
This article describes the best practices for using dynamic disks on Windows Server 2003-based computers. If you use dynamic disks, you can create fault-tolerant volumes (mirrored volumes and RAID-5 sets) and very large multiple-disk (or logical unit number [LUN] ) volumes by using striped and spanned volumes. These features are available only on dynamic disks. Dynamic disks are more robust and fault-tolerant in the way they store and replicate disk and volume configuration information. Dynamic disks are primarily designed to always be online. For this reason, they are not available on removable media. Follow the recommendations in this article to keep your data online and accessible.
After you create a partition on Windows Server 2003, the partition must be formatted and assigned a drive letter before data can be stored on it. Windows Server 2003 supports two different types of disks for partitions, basic and dynamic disks. On basic disks, partitions are known as basic volumes. Basic volumes include primary partitions and logical drives. On dynamic disks, partitions are known as dynamic volumes. Dynamic volumes include simple, striped, spanned, mirrored, and RAID-5 volumes.
Volumes are an area of storage on a hard disk. A volume is formatted by using a file system, such as file allocation table (FAT) or NTFS file system, and it has a drive letter assigned to it. You can view the contents of a volume by clicking its icon in Windows Explorer or in My Computer. A single hard disk can have multiple volumes, and volumes can also span multiple disks.
Best practices and limitations of using dynamic disksDynamic disks offer advantages over basic disks. Basic disks use the original MS-DOS-style master boot record (MBR) partition tables to store primary and logical disk partitioning information. Dynamic disks use a private region of the disk to maintain a Logical Disk Manager (LDM) database. The LDM database contains volume types, offsets, memberships, and drive letters of each volume. The LDM database is also replicated, so each dynamic disk knows about every other dynamic disk configuration. This feature makes dynamic disks more reliable and recoverable than basic disks.
Before you use dynamic disks, consider the following recommended best practices and limitations of using dynamic disks.
Dynamic disks vs. basic disksBefore you convert basic disks to dynamic disks, determine whether you require features provided by dynamic disks. If you do not require spanned volumes, striped volumes, mirrored volumes, or RAID-5 sets, it may be best to use basic disks.
Note If you want to increase the size of a hardware RAID-5 disk LUN but do not have to span the NTFS file system volume across different physical disks (or LUNs), continue to use basic disks. You can use the DiskPart.exe utility to extend the NTFS volume after you add new storage capacity to the RAID volume. DiskPart.exe is a text-mode command interpreter that you can use to manage objects (disks, partitions or volumes) by using scripts or direct input from a command prompt.For more information, click the following article number to view the article in the Microsoft Knowledge Base:
325590 How to use Diskpart.exe to extend a data volume in Windows Server 2003, in Windows XP, and in Windows 2000
Storage devicesIf you decide to use dynamic disks and you have both locally attached storage (IDE-based storage or Small Computer System Interface [SCSI]-based storage) and storage that is located on a storage area network (SAN), consider the following recommendations, depending on your situation:
- Use dynamic disks on only the SAN storage drives and keep the locally attached storage as basic disks.
- Use basic disks on the SAN storage drives and configure the locally attached storage as dynamic disks.
If your environment requires you to have dynamic disks in a mixed configuration that uses both locally attached storage and SAN-attached storage, it is a good idea to protect all fiber hubs, routers, switches, SAN cabinets, and the server from power outages by using uninterruptible power supplies (UPSs) on all connecting devices.
- In a mixed dynamic disk configuration, if you must take the SAN storage offline for maintenance, Microsoft recommends that you shut down the server before you take the SAN storage unit offline and then make sure that all the SAN devices are available again when you bring the server back online.
- Windows does not support mounting a disk volume to multiple hosts at the same time. This restriction applies to volumes that are located on a BASIC disk or a dynamic disk. Volume corruption may occur if changes are made to the volume by both hosts. Windows also does not support exposing and then importing dynamic disks on multiple hosts (nodes) simultaneously. This practice can also lead to data loss or to LDM database corruption.
Server clustersDynamic disks are not supported for use with Windows Clustering. This restriction does not prevent you from extending an NTFS volume that is contained on a cluster shared disk (a disk that is shared between the computers in the cluster) that is basic.
You can use a third-party software such as Veritas Volume Manager to add the dynamic disk features to a Microsoft cluster infrastructure.
Note By default, Windows 2000 Server and Windows Server 2003 do not support dynamic disks in a Microsoft Cluster Server (MSCS) environment. You can use Veritas Volume Manager for Windows to add the dynamic disk features to a Microsoft server cluster. For customer service support about cluster issues after you install Veritas Volume Manager, please contact Veritas.For more information, click the following article number to view the article in the Microsoft Knowledge Base:
237853 Dynamic disk configuration unavailable for server cluster disk resourcesFor information about how to contact Veritas Software, visit the following Web site:
Moving dynamic disksIf you move dynamic disks between systems, you may not be able to move the dynamic disks back to the original host. If you must move the dynamic disks, move all the dynamic disks from a computer at the same time, and make sure that they are all online and running on the destination computer before you try to import them to the new host. You must do this because the disk group name and the ID of the primary disk group of the host system (if a dynamic disk is present) is always retained. What makes the difference is whether there is at least one dynamic disk on the destination computer. One problem scenario occurs when there are no dynamic disks on the destination computer (so that computer ends up with the same disk group name as the source computer when the disks are moved to it) and then you want to move the disks back to the source computer. You may experience a problem if foreign disks that are being re-imported have the same disk group name as the local computer. For more information about moving dynamic disks, click the following article numbers to view the articles in the Microsoft Knowledge Base:
222189 Description of disk groups in Windows Disk Management
260113 "Internal Error - Disk Group Exists and Is Imported" error message while importing foreign disk
Disk signaturesWhen you start the Disk Management snap-in, all disks on the system are enumerated to see if any disks have changed or if any new disks have been added to the system. If Disk Management finds any disks that are unknown, that are not initialized, or that do not have a disk signature in the MBR, Disk Management starts a wizard. The wizard prompts you to select the disks that you want to write disk signatures to. By default, no disks are selected. Click the check boxes next to the disk numbers to select the disks to be enumerated. You are then prompted to select the disks that you want to upgrade to dynamic disks. All disks that you upgrade have a disk signature added and are upgraded to dynamic disks.
When you start Disk Management, if the MBR of a dynamic disk is zeros, the wizard starts.
Note The MBR of a disk may be read as zeros if there is a hardware failure.
The wizard prompts you to convert the disk to a dynamic disk. If you permit the disk to be reconverted to dynamic, the original LDM database is overwritten by the newly initialized LDM database. Disk Management shows that disk as healthy, but it only shows the unallocated free space. If you have another healthy dynamic disk in the system at the time of conversion, its LDM database is replicated to the newly converted dynamic disk and a "missing" disk that represents the original dynamic disk is also shown in Disk Management.
Missing dynamic disksIf Disk Management shows a missing dynamic disk, this means that a dynamic disk that was attached to the system cannot be located. Because every dynamic disk in the system knows about every other dynamic disk, this "missing" disk is shown in Disk Management. Do not delete the missing disk's volumes or select the Remove Disk option in Disk Management unless you intentionally removed the physical disk from the system and you do not intend to ever reattach it. This is important because after you delete the disk and volume records from the remaining dynamic disk's LDM database, you may not be able to import the missing disk and bring it back online on the same system after you reattach it.
Text-mode setup and Recovery ConsoleNever delete or create a partition on a dynamic disk during Windows 2000, Windows XP, or Windows Server 2003 text-mode Setup or when you start the computer by using the Recovery Console. If you do so, permanent data loss may occur.For more information about this issue, click the following article number to view the article in the Microsoft Knowledge Base:
236086 System or boot disk listed as Dynamic Unreadable in Disk Management
The mirrored driveNever break a healthy system disk or boot dynamic mirrored volume and expect the mirrored drive to replace the original primary drive if it fails. The manually broken mirrored drive is assigned the next available drive letter, and this is updated to the permanent record in the LDM database. This means that regardless of what position that drive takes in the boot process, it is assigned the new (and incorrect) drive letter, so the operating system cannot function correctly.
Note Windows software mirroring is a fault-tolerant solution that makes sure you can maintain access to data if you have a hardware disk failure. Software mirroring is not intended to be used as an offline backup mechanism.
Hardware MirroringIf you use dynamic disks with hardware mirroring, make sure that both parts of the hardware-mirrored drives are not exposed to the same operating system at the same time. On hardware-mirrored disks, the LDM databases are exactly the same, whereas each dynamic disk on a system contains a unique DiskID in the LDM header so that LDM can distinguish one dynamic disk from another.
To expose both parts of a hardware-mirrored drive, break the hardware mirror by using the OEM RAID configuration utility, and then configure both disks as standalone drives that are both accessible to the operating system.
Unpredictable behavior may occur if two dynamic disks that are exactly the same are exposed to the operating system at the same time.
For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
323442 How to use the Disk Management snap-in to manage basic and dynamic disks in Windows Server 2003
331498 Dynamic disks in the Windows Preinstallation Environment are reported as foreignThe third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.
आलेख ID: 816307 - पिछली समीक्षा: 01/28/2010 10:31:28 - संशोधन: 9.0
Microsoft Windows Server 2003, Datacenter Edition (32-bit x86), Microsoft Windows Server 2003, Enterprise Edition (32-bit x86), Microsoft Windows Server 2003, Standard Edition (32-bit x86), Microsoft Windows Server 2003, Web Edition, Microsoft Windows Server 2003, Enterprise x64 Edition, Microsoft Windows Server 2003, 64-Bit Datacenter Edition, Microsoft Windows Small Business Server 2003 Premium Edition, Microsoft Windows Small Business Server 2003 Standard Edition
- kbinfo KB816307