Creating virtual disks
Before you can create a virtual disk, you must create at least one storage pool on your file server. Continuing from the procedure that was started in the previous section, file server HOST7 now has a storage pool named Archive Pool that has a capacity of 696 GBs but no virtual disks yet.
Note: When the storage pool named Archive Pool was created in this lesson's example, one of the three physical disks was assigned the Hot Spare role. One might expect, then, that the total capacity of the pool would be displayed as 2 x 232 GBs = 464 GBs, and not as 696 GBs. However, because the Hot Spare disk can be re-allocated as Automatic if needed, the capacity of the pool is displayed as 696 GBs, not 464 GBs.
To create a new virtual disk from a storage pool using Server Manager, perform the following steps:
- Launch the New Virtual Disk Wizard-for example, by right-clicking on the Archive Pool item.
- Select the storage pool from which you want to create your new virtual disk. In this example, you are using Archive Pool.
- Give your new virtual disk a descriptive name, such as "Archive Disk," that identifies the purpose of the new disk.
- Select the storage layout you want to use for the new virtual disk. Because Archive Pool has more than one physical disk in it, you can choose either Simple, Mirror, or Parity as the storage layout for your new virtual disk. Because the disk in this example will be used to store valuable company information, select Mirror for its storage layout.
- Select the provisioning type you want to use for the new virtual disk. Because the disk in this example will be used for archival storage of company information that might grow over time, select Thin for the provisioning type.
- Specify the size of the new virtual disk you are creating. The possible size you can specify depends on the type of provisioning-namely:
- If you selected Fixed as the provisioning type, you can either select Maximum Size to allow Storage Spaces to create a virtual disk that has the maximum capacity of the storage pool, or you can specify the size in MBs, GBs, or TBs that you want your virtual disk to be. If you specify a size, you have the option of selecting the Create The Largest Virtual Disk Possible, Up To The Specified Size check box, which will limit the size of your new disk if you specify a value too large for the selected storage pool.
- If you selected Thin as the provisioning type, you only have the option of specifying the size in MBs, GBs, or TBs that you want your virtual disk to be.
- Complete the remaining steps of the wizard to create the new virtual disk.
Alternatively, you could use Windows PowerShell to create the same virtual disk. Begin by using the New-VirtualDisk cmdlet to create the new virtual disk:
PS C:\> New-VirtualDisk -StoragePoolFriendlyName "Archive Pool" ` -FriendlyName "Archive Disk" -ResiliencySettingName Mirror -ProvisioningType Thin ` -Size 2TB FriendlyName ResiliencySettingName OperationalStatus HealthStatus ------------ ------------------- ----------------- ------------ Archive Disk Mirror OK Healthy IsManualAttach Size -------------- ---- False 2 TB
Any new virtual disk created this way must then be initialized (brought online) before it can be used. You can use the Get-Disk cmdlet to display more information about the disks (physical and virtual) on the server:
PS C:\> Get-Disk Number Friendly Name OperationalStatus ------ ------------- ----------------- 0 ATA ST3250310NS SCSI Disk Device Online 4 Microsoft Storage Space Device Offline Total Size Partition Style ---------- --------------- 232.83 GB MBR 2 TB RAW
From the command output just shown, you can see that the number of the new virtual disk is 4. You will use this information with the Initialize-Disk cmdlet as follows:
PS C:\> Initialize-Disk -Number 4
By default, the Initialize-Disk cmdlet creates a GUID Partition Table (GPT) type of disk:
PS C:\> Get-Disk -Number 4 Number Friendly Name OperationalStatus ------ ------------- ----------------- 4 Microsoft Storage Space Device Online Total Size Partition Style ---------- --------------- 2 TB GPT
If you want to, you can use the -PartitionStyle parameter of the Initialize-Disk cmdlet to create virtual disks of the Master Boot Record (MBR) type; however, for virtual disks larger than 2 TBs in size, the GPT type must be used.
In this tutorial:
- Storage and File Services
- Deploying Storage Spaces
- Fixed vs. thin provisioning
- Planning a Storage Spaces deployment
- Implementing Storage Spaces
- Provisioning and managing shared storage
- Creating virtual disks
- Creating volumes
- Provisioning SMB shares
- Types of SMB shares
- Managing shared storage
- Configuring iSCSI storage
- Configuring iSCSI Target Server
- Creating iSCSI virtual disks
- Using iSCSI Initiator