For PowerShell lovers

Now everything the same but with no GUI )))

  1. Creating a new space:
    1. Select physical disks and add to the pool:

      $phydisk = Get-PhysicalDisk –CanPool $true | Where BusType -eq "SAS" 

    2. Getting a disk subsystem for a pool:

      $stsubsys = Get-StorageSubsystem

    3. Create a new pool:

      $pool = New-StoragePool -FriendlyName TestPool -StorageSubsystemFriendlyName $stsubsys.FriendlyName -PhysicalDisks $phydisk -ProvisioningTypeDefault Fixed

    4. Adding a hot spare drive:

      $hotSpareDisk = Get-PhysicalDisk –CanPool $true |Out-GridView -PassThru

      Add-PhysicalDisk -StoragePoolFriendlyName TestPool -PhysicalDisks $hotSpareDisk -Usage HotSpare

  2. Creating a data space on top of a previously created pool:

    $newSpace = New-VirtualDisk –StoragePoolFriendlyName TestPool –FriendlyName space1 -Size (1GB) -ResiliencySettingName Mirror

  3. Initialization, markup and formatting of a previously created data space:
    1. $spaceDisk = $newSpace | Get-Disk

    2. Initialize-Disk -Number $spaceDisk.Number -PartitionStyle GPT

    3. $partition = New-Partition -DiskNumber $spaceDisk.Number -DriveLetter $driveletter -size $spaceDisk.LargestFreeExtent

    4. Format-Volume -Partition $partition -FileSystem NTFS

  4. Adding data space to the cluster:
    1. $space = Get-VirtualDisk -FriendlyName space1

    2. Add-ClusterDisk $space

< Previous | Content | Next >