With the release of Purity 4.6 we introduce support for the Storage Management Initiative Specification (SMI-S).This specification was created by the Storage Networking Industry Association (SNIA) to provide a unified interface for multiple storage vendors within a network. With the introduction of SMI-S support, FlashArray administrators can manage the array via an SMI-S client over HTTPS. A great example of an SMI-S client is Windows Server 2012 R2, and we will be discussing this in more detail later. Functionality provided by the SMI-S provider supports in the areas of inventory, configuration, provisioning, capacity, and alerting. Keeping with our message of simplicity, the SMI-S provider is embedded within Purity vs using a Proxy which requires more complex management. An administrator has just two services to enable as shown below, these are disabled by default.
- Service Location Protocol (port 427) — This protocol is used by SMI-S clients as a directory service to identify resources.
- SMI-S Provider (HTTPS, port 5989) — FlashArray administrators use the SMI-S provider to manage the array through an SMI-S client.
The SMI-S provider is optional and must be enabled before its first use. The services can be enabled through the Web Management interface or via the Purity Command Line Interface (CLI) using the puresmis commands. Below is an example of using the puresmis command, this shows that the Service Location Protocol enabled and the SMI-S Provider enabled shown as WBEM-HTTPS.
Now that the SMI-S services have been enabled let’s take a look at how an SMI-S client can manage the Pure Storage FlashArray. The SMI-S client we will use is Windows Server 2012 R2. To enable Windows Server as an SMI-S client there is a specific feature called Windows Standards-Based Storage Management that needs to be installed using either the Server Manager or via Windows PowerShell with Add-WindowsFeature WindowsStorageManagement.
Once this feature is added to the instance of Windows Server, using the SMI-S Provider is very straightforward. The first task is to register the SMI-S Provider. The PowerShell to register the provider is below. The Get-Credential will provide a prompt and in my case I am just using the standard pureuser account and password.
$Creds = Get-Credential Register-SmisProvider -ConnectionUri https://10.21.8.17:5989 -Credential $Creds
Now that we have the SMI-S Provider registered there are a few cmdlets we can run to check that we have access to the FlashArray. Using Get-StorageProvider will show that the FlashArray registered is from the Manufacturer PureStorage and it is of Type SMI-S. The Get-StorageSubSystem will retrieve details about the FlashArray’s HealthStatus, OperationalStatus and FriendlyName
Provider is registered and now we can update the cache of the PureStorage provider and associated child objects from the FlashArray. A very important detail to point out is that if you have multiple storage vendors within your environment and use the DiscoveryLevel = Full and do not set a specific vendor this will access all storage providers which can be an expensive operation.
Update-StorageProviderCache -Name 10.21.8.17 -DiscoveryLevel Full -Manufacturer PureStorage
Now there are other tasks that can be performed such as viewing the physical disks specific to a storage vendor. In the below example the display shows all of the drive bays and the details.
Get-PhysicalDisk -Manufacturer PureStorage | Format-Table -Autosize
The last example to show is how to provision a new volume. The name of the volume is SMIS-VOL and will be 2 TB in size. Along with showing how to create a new volume the Web Management interface shows that the volume has been created and ready for use.
New-StorageSubsystemVirtualDisk -StorageSubSystemFriendlyName csg-fa420-2 -FriendlyName SMIS-VOL -Size 2TB
The final step is to unregister the SMI-S Provider.
Unregister-SmisProvider -ConnectionUri https://10.21.8.17
Below is a video demonstration showing all of the above operations.
The details discussed in this article are by no means an exhaustive list of operations that can be performed. With the multiple ways of managing our FlashArray combining the use of the SMI-S Provider and the PowerShell SDK offer a lot of different options for automation.
- Storage Networking Industry Association (SNIA) — http://www.snia.org/
- Storage Management Initiative Specification (SMI-S) Releases — http://www.snia.org/tech_activities/standards/curr_standards/smi
- SMI-S Conformance Testing Program Official Results — http://www.snia.org/ctp/conformingproviders/pure.html#SMIS1.6
- Pure Storage SMI-S Provider Guide — http://community.purestorage.com/t5/Pure-Customer-Knowledge-Base/SMI-S-Provider-Guide/ta-p/7721
- Storage Management Technical Specification, Part 3 Common Profiles Version 1.6.1, Revision 5 — http://www.snia.org/sites/default/files/SMI-Sv1.6.1r5_CommonProfiles.book_.pdf
- Storage Management Technical Specification, Part 4 Block Devices Version 1.6.1, Revision 5 — http://www.snia.org/sites/default/files/SMI-Sv1.6.1r5_Block.book_.pdf