1. Rescan/update the Windows Server host, SERVER01 to see the new volumes.
PS C:\> Update-HostStorageCache
2. View the currently connected volumes to the Windows Server host.
PS C:\> Get-Disk
Number Friendly Name Serial Number HealthStatus OperationalStatus Total Size Partition Style
------ ------------- ------------- ------------ ----------------- ---------- ----------
1 PURE FlashArray 45084F3508BF461400011ACB Healthy Online 1 TB RAW
2 PURE FlashArray 45084F3508BF461400011ACC Healthy Online 1 TB RAW
0 PURE FlashArray 73E940225A2A52BB0003AE86 Healthy Online 150 GB MBR
Note:
If the SAN Policy of the Windows Server host is kept at the default of OfflineShared when the volumes are connected to the host they will not come online automatically. Performing a Get-Disk will indicate that they have an OperationalStatus of Offline.
PS C:\> Get-Disk
Number Friendly Name Serial Number HealthStatus OperationalStatus Total Size Partition Style
------ ------------- ------------- ------------ ----------------- ---------- ----------
1 PURE FlashArray 45084F3508BF461400011ACB Healthy Offline 1 TB GPT
2 PURE FlashArray 45084F3508BF461400011ACC Healthy Offline 1 TB GPT
0 PURE FlashArray 73E940225A2A52BB0003AE86 Healthy Online 150 GB MBR
PS C:\> Get-Disk | Where-Object { $_.OperationalStatus -eq 'Offline' } | Set-Disk -IsOffline $False
PS C:\> Get-Disk
Number Friendly Name Serial Number HealthStatus OperationalStatus Total Size Partition Style
------ ------------- ------------- ------------ ----------------- ---------- ----------
1 PURE FlashArray 45084F3508BF461400011ACB Healthy Online 1 TB GPT
2 PURE FlashArray 45084F3508BF461400011ACC Healthy Online 1 TB GPT
0 PURE FlashArray 73E940225A2A52BB0003AE86 Healthy Online 150 GB MBR
3. Initialize the new volumes.
Set the -Number parameter from the output of Get-Disk. The Partition Style has been updated from RAW to GPT.
PS C:\> Initialize-Disk -Number 1 -PartitionStyle GPT
PS C:\> Initialize-Disk -Number 2 -PartitionStyle GPT
PS C:\> Get-Disk
Number Friendly Name Serial Number HealthStatus OperationalStatus Total Size Partition Style
------ ------------- ------------- ------------ ----------------- ---------- ----------
1 PURE FlashArray 45084F3508BF461400011ACB Healthy Online 1 TB GPT
2 PURE FlashArray 45084F3508BF461400011ACC Healthy Online 1 TB GPT
0 PURE FlashArray 73E940225A2A52BB0003AE86 Healthy Online 150 GB MBR
4. Create a new partition.
PS C:\> New-Partition -DiskNumber 1 -UseMaximumSize -AssignDriveLetter
DiskPath: \\?\mpio#disk&ven_pure&prod_flasharray&rev_8888#1&7f6ac24&0&3632344139333730343530383446333530384246343631343030303131414342#{53f
56307-b6bf-11d0-94f2-00a0c91efb8b}
PartitionNumber DriveLetter Offset Size Type
--------------- ----------- ------ ---- ----
2 D 135266304 1023.87 GB Basic
PS C:\> New-Partition -DiskNumber 2 -UseMaximumSize -AssignDriveLetter
DiskPath: \\?\mpio#disk&ven_pure&prod_flasharray&rev_8888#1&7f6ac24&0&3632344139333730343530383446333530384246343631343030303131414343#{53f
56307-b6bf-11d0-94f2-00a0c91efb8b}
PartitionNumber DriveLetter Offset Size Type
--------------- ----------- ------ ---- ----
2 E 135266304 1023.87 GB Basic
PS C:\> Get-Volume
DriveLetter FileSystemLabel FileSystem DriveType HealthStatus OperationalStatus SizeRemaining Size
----------- --------------- ---------- --------- ------------ ----------------- ------------- ----
D Fixed Healthy Unknown 0 B 0 B
System Reserved NTFS Fixed Healthy OK 169 MB 500 MB
C NTFS Fixed Healthy OK 117.59 GB 149.51 GB
E Fixed Healthy Unknown 0 B 0 B
5. Format volumes as NTFS and ReFS.
The below examples set the AllocationUnitSize (cluster size) to 64KB.
PS C:\> Format-Volume -DriveLetter D -FileSystem NTFS -NewFileSystemLabel 'NTFS' -AllocationUnitSize 64KB
DriveLetter FileSystemLabel FileSystem DriveType HealthStatus OperationalStatus SizeRemaining Size
----------- --------------- ---------- --------- ------------ ----------------- ------------- ----
D NTFS NTFS Fixed Healthy OK 1023.7 GB 1023.87 GB
PS C:\> Format-Volume -DriveLetter E -FileSystem ReFS -NewFileSystemLabel 'ReFS' -AllocationUnitSize 64KB
DriveLetter FileSystemLabel FileSystem DriveType HealthStatus OperationalStatus SizeRemaining Size
----------- --------------- ---------- --------- ------------ ----------------- ------------- ----
E ReFS ReFS Fixed Healthy OK 1018.03 GB 1023.81 GB
PS C:\> Get-Volume
DriveLetter FileSystemLabel FileSystem DriveType HealthStatus OperationalStatus SizeRemaining Size
----------- --------------- ---------- --------- ------------ ----------------- ------------- ----
D NTFS NTFS Fixed Healthy OK 1023.7 GB 1023.87 GB
System Reserved NTFS Fixed Healthy OK 169 MB 500 MB
C NTFS Fixed Healthy OK 117.59 GB 149.51 GB
E ReFS ReFS Fixed Healthy OK 1018.03 GB 1023.81 GB