Professional Documents
Culture Documents
In this example you will associate four physical disks in auto mode and one in hot spare
mode. To accomplish that you have to create a variable containing the four disks you want
to allocate, in auto mode, in a new storage pool.
In this example you want to include the physical disks 1-4 and not 5.
Inject that variable into the new-StoragePool cmdlet by using the physicaldisks switch:
Add physical disk 5 as a hot spare: create a variable containing the physical disk 5 and then
feed that variable into the add-physicaldisk cmdlet
Finally, to create the virtual disk, use the new-VirtualDisk cmdlet as shown below
You can check out the storage pool and the virtualdisk settings by using the get-
StoragePool|FL and the get-virtualDisk|FL cmdlets respectively.
As a final step you may use either diskpart or powershell commands to create the
appropriate volumes on these virtual drives.