Creating a pool from scratch

REM value in GB
set TARGET_SIZE=128

set DriveID=0

spaceutil New-Pool -DriveNumber %DriveID% -Name OSPool -CompatibleVersion "Windows 19H1" -MetadataLength 64M -Threshold 70 -ZeroOnDeallocate False -IsPowerProtected False -RapidRegeneration False -RetireMissingDrives Auto -MinimumAllocationSize 1M -DefaultProvisioningType Thin -DefaultMinFdType Drive -DefaultMaxFdType Drive -DefaultResiliencyType Simple -DefaultReadCacheSize 0

spaceutil New-Space -PoolName OSPool -Name "IU_RESERVE_DISK" -ProvisionedCapacity 2G -MinFdType Drive -MaxFdType Drive -ResiliencyType Simple -FaultTolerance 0 -NumberOfCopies 1 -NumberOfGroups 1 -NumberOfColumns 1 -WriteCacheSize 0 -ReadCacheSize 0 -Flags System Active
spaceutil Set-Space -PoolName OSPool -Name "IU_RESERVE_DISK" -IsSystem true -IsActive true
spaceutil Attach-Space -PoolName OSPool -Name "IU_RESERVE_DISK"

spaceutil New-Space -PoolName OSPool -Name "SERVICING_STAGING_ROOTDISK" -ProvisionedCapacity 10G -MinFdType Drive -MaxFdType Drive -ResiliencyType Simple -FaultTolerance 0 -NumberOfCopies 1 -NumberOfGroups 1 -NumberOfColumns 1 -WriteCacheSize 0 -ReadCacheSize 0
spaceutil Attach-Space -PoolName OSPool -Name "SERVICING_STAGING_ROOTDISK"

spaceutil New-Space -PoolName OSPool -Name "PreInstalledDisk" -ProvisionedCapacity %TARGET_SIZE%G -MinFdType Drive -MaxFdType Drive -ResiliencyType Simple -FaultTolerance 0 -NumberOfCopies 1 -NumberOfGroups 1 -NumberOfColumns 1 -WriteCacheSize 0 -ReadCacheSize 0 -Flags System Active
spaceutil Set-Space -PoolName OSPool -Name "PreInstalledDisk" -IsSystem true -IsActive true
spaceutil Attach-Space -PoolName OSPool -Name "PreInstalledDisk"

spaceutil New-Space -PoolName OSPool -Name "EFIESPDisk" -ProvisionedCapacity %TARGET_SIZE%G -MinFdType Drive -MaxFdType Drive -ResiliencyType Simple -FaultTolerance 0 -NumberOfCopies 1 -NumberOfGroups 1 -NumberOfColumns 1 -WriteCacheSize 0 -ReadCacheSize 0 -Flags System Active
spaceutil Set-Space -PoolName OSPool -Name "EFIESPDisk" -IsSystem true -IsActive true
spaceutil Attach-Space -PoolName OSPool -Name "EFIESPDisk"

spaceutil New-Space -PoolName OSPool -Name "VIRT_EFIESPDisk" -ProvisionedCapacity 1G -MinFdType Drive -MaxFdType Drive -ResiliencyType Simple -FaultTolerance 0 -NumberOfCopies 1 -NumberOfGroups 1 -NumberOfColumns 1 -WriteCacheSize 0 -ReadCacheSize 0 -Flags System Active
spaceutil Set-Space -PoolName OSPool -Name "VIRT_EFIESPDisk" -IsSystem true -IsActive true
spaceutil Attach-Space -PoolName OSPool -Name "VIRT_EFIESPDisk"

spaceutil New-Space -PoolName OSPool -Name "SERVICING_FILESDISK" -ProvisionedCapacity 10G -MinFdType Drive -MaxFdType Drive -ResiliencyType Simple -FaultTolerance 0 -NumberOfCopies 1 -NumberOfGroups 1 -NumberOfColumns 1 -WriteCacheSize 0 -ReadCacheSize 0 -Flags System Active
spaceutil Set-Space -PoolName OSPool -Name "SERVICING_FILESDISK" -IsSystem true -IsActive true
spaceutil Attach-Space -PoolName OSPool -Name "SERVICING_FILESDISK"

spaceutil New-Space -PoolName OSPool -Name "BSPDisk" -ProvisionedCapacity %TARGET_SIZE%G -MinFdType Drive -MaxFdType Drive -ResiliencyType Simple -FaultTolerance 0 -NumberOfCopies 1 -NumberOfGroups 1 -NumberOfColumns 1 -WriteCacheSize 0 -ReadCacheSize 0 -Flags System Active
spaceutil Set-Space -PoolName OSPool -Name "BSPDisk" -IsSystem true -IsActive true
spaceutil Attach-Space -PoolName OSPool -Name "BSPDisk"

spaceutil New-Space -PoolName OSPool -Name "SERVICING_METADATADisk" -ProvisionedCapacity 256MB -MinFdType Drive -MaxFdType Drive -ResiliencyType Simple -FaultTolerance 0 -NumberOfCopies 1 -NumberOfGroups 1 -NumberOfColumns 1 -WriteCacheSize 0 -ReadCacheSize 0 -Flags System Active
spaceutil Set-Space -PoolName OSPool -Name "SERVICING_METADATADisk" -IsSystem true -IsActive true
spaceutil Attach-Space -PoolName OSPool -Name "SERVICING_METADATADisk"

spaceutil New-Space -PoolName OSPool -Name "VailContainer" -ProvisionedCapacity %TARGET_SIZE%G -MinFdType Drive -MaxFdType Drive -ResiliencyType Simple -FaultTolerance 0 -NumberOfCopies 1 -NumberOfGroups 1 -NumberOfColumns 1 -WriteCacheSize 0 -ReadCacheSize 0 -Flags System
spaceutil Set-Space -PoolName OSPool -Name "VailContainer" -IsSystem true

spaceutil New-Space -PoolName OSPool -Name "OSDataDisk" -ProvisionedCapacity %TARGET_SIZE%G -MinFdType Drive -MaxFdType Drive -ResiliencyType Simple -FaultTolerance 0 -NumberOfCopies 1 -NumberOfGroups 1 -NumberOfColumns 1 -WriteCacheSize 0 -ReadCacheSize 0 -Flags System Active
spaceutil Set-Space -PoolName OSPool -Name "OSDataDisk" -IsSystem true -IsActive true
spaceutil Attach-Space -PoolName OSPool -Name "OSDataDisk"

spaceutil New-Space -PoolName OSPool -Name "DataDisk" -ProvisionedCapacity %TARGET_SIZE%G -MinFdType Drive -MaxFdType Drive -ResiliencyType Simple -FaultTolerance 0 -NumberOfCopies 1 -NumberOfGroups 1 -NumberOfColumns 1 -WriteCacheSize 0 -ReadCacheSize 0 -Flags System Active
spaceutil Set-Space -PoolName OSPool -Name "DataDisk" -IsSystem true -IsActive true
spaceutil Attach-Space -PoolName OSPool -Name "DataDisk"

spaceutil New-Space -PoolName OSPool -Name "MainOSDisk" -ProvisionedCapacity %TARGET_SIZE%G -MinFdType Drive -MaxFdType Drive -ResiliencyType Simple -FaultTolerance 0 -NumberOfCopies 1 -NumberOfGroups 1 -NumberOfColumns 1 -WriteCacheSize 0 -ReadCacheSize 0 -Flags System Active
spaceutil Set-Space -PoolName OSPool -Name "MainOSDisk" -IsSystem true -IsActive true
spaceutil Attach-Space -PoolName OSPool -Name "MainOSDisk"

spaceutil New-Space -PoolName OSPool -Name "Container Manager Persisted Storage" -ProvisionedCapacity %TARGET_SIZE%G -MinFdType Drive -MaxFdType Drive -ResiliencyType Simple -FaultTolerance 0 -NumberOfCopies 1 -NumberOfGroups 1 -NumberOfColumns 1 -WriteCacheSize 0 -ReadCacheSize 0 -Flags System
spaceutil Set-Space -PoolName OSPool -Name "Container Manager Persisted Storage" -IsSystem true

Revision #4
Created Sun, Feb 16, 2020 12:45 PM by Gustave Monce
Updated Sun, Feb 16, 2020 2:22 PM by Gustave Monce