Technical Report Windows Command-line Automation Techniques for Dell EqualLogic PS Series Arrays Abstract This Technical report will describe different methods of command line automation available for Windows and Dell EqualLogic PS Series arrays. Examples are shown with step by step building guides in order to help administrators create their own customizable scripts. TR1089 V1.
Copyright © 2013 Dell Inc. All Rights Reserved. EqualLogic is a registered trademark of Dell Inc. Dell is a trademark of Dell Inc. All trademarks and registered trademarks mentioned herein are the property of their respective owners. Information in this document is subject to change without notice. Dell Inc. will not be held liable for technical or editorial errors or omissions contained herein. The information in this document is subject to change.
Preface PS Series arrays optimize resources by automating performance and network load balancing. Additionally, PS Series arrays offer all-inclusive array management software, host software, and free firmware updates. Audience The information in this guide is intended for storage administrators. Related Documentation For detailed information about PS Series arrays, groups, volumes, array software, and host software, log in to the Documentation page at the customer support site.
Table of Contents Table of Contents ............................................................................................................................................. iv Revision Information ........................................................................................................................................ v Introduction .........................................................................................................................................................
Revision Information The following table describes the release history of this Technical Report. Report Date Document Revision 1.0 June Initial Release The following table shows the software and firmware used for the preparation of this Technical Report. Vendor Model Software Revision Dell Host Integration Tools for Microsoft, includes Auto-Snapshot Manager/ME, PowerShell tools for De V4.5, V4.6 Dell SAN Headquarters V2.5, V2.
Windows Command-Line Automation Techniques for Dell EqualLogic PS Series Arrays Introduction Dell PS Series Arrays provide powerful command line integration for Windows, Linux and VMware hosts. Windows PowerShell is the robust scripting interface that will allow the administrator to customize, automate and optimize their Dell storage operations. Dell EqualLogic PS series arrays are designed to provide simplicity, advanced integration and automatic optimization to fully leverage the storage investment.
Windows Command-Line Automation Techniques for Dell EqualLogic PS Series Arrays PS Series Storage automation: the Goal of this document This document will use several examples to demonstrate building blocks for advanced automation with Dell EqualLogic PS Series Windows PowerShell cmdlets, native Windows PowerShell cmdlets, Windows Management Instrumentation (WMI), DISKPART and the iSCSI command line interface (CLI) utility.
Windows Command-Line Automation Techniques for Dell EqualLogic PS Series Arrays Other methods of automation available with Dell PS Series Storage (these methods will not be covered in detail in this document) PS Series Arrays Group Manager CLI The PS Series array may be configured or viewed through a standard Telnet/SSH session to perform diagnostics, initial group configuration or management.
Windows Command-Line Automation Techniques for Dell EqualLogic PS Series Arrays Windows® and Dell™ PS Series Automation Techniques Windows PowerShell ISE Setup The PowerShell Integrated Scripting Environment (ISE) will be used to enable development, testing and debugging of PowerShell scripts or modules to configure Dell EqualLogic Storage to Windows.
Windows PowerShell ISE Environment setup To setup up our PowerShell Environment the following will need to be performed 1. As indicated above download and Install Dell EqualLogic Host Integration Tools for Microsoft (HIT/Microsoft v4.5 or higher) 2. Add the Windows PowerShell ISE feature on Windows 2008 hosts Please see Appendix D for more information. 3. Enable Microsoft® Windows PowerShell script execution 4. Customize the profile for Windows PowerShell ISE 5.
Windows PowerShell ISE Environment setup Step – By – Step Setup for Windows 2008 and Windows 2012/Windows 8 Start Install HIT for Microsoft * Add Windows ISE* Enable PowerShell Execution Note: HIT/Microsoft and Windows PowerShell ISE should be setup prior to this step in the instructions 1. Enable Windows PowerShell execution. By default the execution policy is set to “Restricted” which means you will not be able to execute any PowerShell Scripts. a.
Windows PowerShell ISE Environment setup Start Install HIT for Microsoft * Add Windows ISE* Enable PowerShell Execution Import EqualLogic modules b. Import the PS tools (PowerShell cmdlets) module per session: PS C:\> import-module –name \EqlPSTools.dll Example: import-module –name “C:\Program Files\EqualLogic\bin\EqlPSTools.dll” Test the access and list PS Series cmdlets: PS C:\> Get-Command –Module EqlPSTools Example partial output: PS C:\ > Get-Command -module EqlPSTo
Windows PowerShell ISE Environment setup Start ISE Setup Enable Execution Customize ISE Startup profile e. Create Profile: Copy the code below to a new PowerShell document and save as CreateMyProfile.ps1 ######################### if (!(test-path $profile.AllUsersAllHosts)) {new-item -type file -path $profile.AllUsersAllHosts -force} f. Execute the PowerShell script from the command prompt: PS C:> .\CreateMyProfile.ps1 Note: The “.\” (dot slash) prefix is a Microsoft security measure to ensure the au
Windows PowerShell ISE Environment setup Start ISE Setup Customize ISE Startup i. Save the profile, Exit the ISE and restart. j. Once the Windows ISE is re-started test with: Save and Test $profile End PS C:\> Get-Command –Module EqlPSTools CommandType ----------Cmdlet Cmdlet Name ---Connect-EqlGroup ConvertFrom-EqlTemplateVolume ModuleName ---------EqlPSTools EqlPSTools Note: These guidelines will import the EqualLogic PS Tools (PowerShell cmdlets) permanently and provide persistence between Wi
Windows PowerShell Dell EqualLogic PS Series Group Access Windows PowerShell Dell EqualLogic PS Series Group Access Before being able to execute PowerShell cmdlets that will manage PS Series storage the PS Series Group(s) will need to be registered and connected. This may be achieved through Auto-Snapshot Manager/Microsoft Edition or through the provided PowerShell cmdlets. We will use the PowerShell cmdlets option for this example. See the “Dell EqualLogic PowerShell Tools v4.
Windows PowerShell Dell EqualLogic PS Series Group Access Step – By – Step PS Series Group Access Start Set New Access Connect to the PS Group Test Connection End 1. Start the Windows PowerShell ISE Windows Server 2012/Windows 8 Server Manager->Tools->Windows PowerShell ISE Windows 2008/ Windows 7 All Programs->Accessories->Windows PowerShell->Windows PowerShell ISE 2. Check for previous PS Series Group access : Windows Server 2012 PS C:\> Get-StorageSubSystem This command uses the SMP integrati
Windows PowerShell Dell EqualLogic PS Series Group Access Below screen captures will indicate how to locate the input parameters from the EqualLogic PS Series Group Manager User Interface -GroupName -GroupWKAddress Note: -MgmtWKAddress may be used if a management network is used on this Group -VSSUserName -VSSPassword 12
Windows PowerShell Dell EqualLogic PS Series Group Access Start Set New Access Connect to the PS Group Test Connection End 4. Check for all PS Series access and Connection information PS C:\Get-EqlGroupAccess|Format-Table –property GroupName, SessionID If the SessionID does not show as please continue to Step 6. PS C:\> Get-EqlGroupAccess |format-Table -property groupname,sessionid -AutoSize GroupName SessionId --------- --------TR2ProdGrp 64ED2A45484434AA50FB440000009035 Note: a Sess
Windows PowerShell Dell EqualLogic PS Series Group Access Start Set New Access Connect to the PS Group Test Connection 6. To test connection and access to the Group: PS C:\> Get-EqlGroup SessionId groupId GroupName GroupAddress GroupAddressIPv4 GroupAddressIPv6 ClientAccessSSH ClientAccessTelnet WebAccess WebAccessNoEncrypt ConnectionBalancing PerformanceBalancing GroupDate GroupTime GroupTimeZone GroupDescription UseCHAPForDiscovery EmailHomeContact SMTPServers EmailSender EmailSenderDomain EmailSende
Windows PowerShell Dell EqualLogic PS Series Group Access Note: Auto-Snapshot Manager/Microsoft® Edition PS Group Access example. Tip: Any command may be explained with Get-Help cmdlet where options may be –detailed, -examples etc.
Windows PowerShell Dell EqualLogic PS Series Volume Creation and Access Automation Windows PowerShell Dell EqualLogic PS Series Volume Creation and Access Automation In this section we will demonstrate how to create a new volume, enable access and connect an iSCSI volume as well as format, partition and bring the volume online to Windows. This is the method required for Windows operating systems prior to Windows Server 2012 or Windows 8.
Windows PowerShell Dell EqualLogic PS Series Volume Creation and Access Automation Step – By – Step Pre-Windows Server 2012 We will test each of these steps individually then provide a complete PowerShell script for latter modification and automation. See Appendix A for the full script. Start Launch ISE Test Connection End To complete this exercise please perform the following: 1.
Windows PowerShell Dell EqualLogic PS Series Volume Creation and Access Automation 3. Check to see if enough free space is available on the Pool for the volume. The following will list all Pools with 15GB or more free. PS Series Array Cmdlet and pipe to Where-Object to filter the results PS C:\> Get-EqlPool|where-object {$_.FreeSpaceMB -gt 1500} In this example the “default” pool is listed. PS C:\> Get-EqlPool|Where-Object GroupId GroupName GroupAddress StoragePoolName PoolGuid Description IsDefaultPool
Windows PowerShell Dell EqualLogic PS Series Volume Creation and Access Automation Start Create new EQL volume Enable Access to the Volume Connect to the Volume … 4. Initialize variables for your environment within the ISE command prompt (for ease of testing) Hint: Change the values below appropriately and copy then paste into the command input line in Windows PowerShell ISE.
Windows PowerShell Dell EqualLogic PS Series Volume Creation and Access Automation 6. Determine the Host iSCSI Qualified Name (IQN) for Assess Control List (ACL) association #Set the hostn variable to this host -using the environmental variable PS C:\> $hostn = ($env:computername) #This Server or Host #Set the object variable to the iscsi class for this host- using WMI PS C:\> $object = Get-WMiObject -namespace root\WMI -class MSiSCSIInitiator_MethodClass -Computer $hostn #Set the IQN (iSCSI Qualified Name)
Windows PowerShell Dell EqualLogic PS Series Volume Creation and Access Automation 7. Verify the status of the volume just created in Group Manager GUI (Optional) Volume is online Access is by the host iSCSI initiator name Note: Windows Server 2012 offers native iSCSI PowerShell cmdlets. See the Windows Server 2012 section for more details.
Windows PowerShell Dell EqualLogic PS Series Volume Creation and Access Automation 8. Now obtain the iSCSI target to the new volume using PS Series cmdlets. A cmdlet execution status indicator may pop up during processing. #Get all the properties for this volume PS C:\> $MyVol = Get-EqlVolume -VolumeName $ThisVol #We only need the iSCSI Target name PS C:\> $iTARGET=$MyVol.ISCSITargetName Note: the iSCSI Target Name will be used to login to our targets later in this exercise 9.
Windows PowerShell Dell EqualLogic PS Series Volume Creation and Access Automation Start Create EqualLogic Volume Bring iSCSI volume online Get Physical Disk Number Partition, assign and Format a new Volume End 10. You may also see the properties of the iSCSI session for just the volume created with this cmdlet: Windows WMI utility PS C:\ > Get-WMiObject -Namespace root\wmi -Class MSiSCSIInitiator_TargetClass|where-object {$_.
Windows PowerShell Dell EqualLogic PS Series Volume Creation and Access Automation Paste the above into the command prompt. Hit enter. Example output below: PS C:\> $objTarget = get-wmiobject -computername $hostn -namespace root\wmi -class MSiSCSIInitiator_TargetClass | where { $_.TargetName -eq $iTARGET } $objLoginOpts = $null # Login to the target - first is the normal login, second adds it as a persistent target so that volume will persist between server reboots ## $retn1 = $objTarget.
Windows PowerShell Dell EqualLogic PS Series Volume Creation and Access Automation Start Create EqualLogic Volume Bring iSCSI volume online Get Physical Disk Number Partition, assign and Format a new Volume End 13. Next, bring the volume online: Execute the WMI command to grab the iSCSI Sessions which will obtain the device information. The intent is to map the iSCSI session to the physical disk (WMI) PS C:\> $colSessions = Get-WMiObject -namespace root\wmi -class MSiSCSIInitiator_SessionClass|where-
Windows PowerShell Dell EqualLogic PS Series Volume Creation and Access Automation 2-00a0c91efb8b}} InitiatorName : iqn.1991-05.com.microsoft:cfw2k12cc2.spartan.local ISID : {64, 0, 1, 55...} SessionId : fffffa8004496020-4000013700000005 TargetName : iqn.2001-05.com.equallogic:4-52aed6-04e080a735321c034d4750f5b-td1089v1 TargetNodeName : TSID : {4, 31} PSComputerName : CFW2K12CC2 Note: multiple sessions are due to the MPIO connections over NIC ports.
Windows PowerShell Dell EqualLogic PS Series Volume Creation and Access Automation Note: If only one device exists in the collection remove the element index i.e. [0]. $objDevice=$colDevices Quick Copy/Paste with logic (Steps 14-15): Tip: Use “Shift+Enter” to edit each row in the command prompt.
Windows PowerShell Dell EqualLogic PS Series Volume Creation and Access Automation Start Create EqualLogic Volume Bring iSCSI volume online Get Physical Disk Number Partition, assign and Format a new Volume End 17. Now reference the “Device Number” and build the DISKPART script Copy/Paste block: $diskID = $objDevice.
Windows PowerShell Dell EqualLogic PS Series Volume Creation and Access Automation DISKPART> DiskPart succeeded in creating the specified partition. DISKPART> Partition 1 is now the selected partition. DISKPART> The format has been initiated successfully and is currently in progress. Please wait until format has completed before trying to access the volume. DISKPART> DISKPART> DiskPart successfully assigned the drive letter or mount point. DISKPART> Note: Occasionally a Format request may prompt.
Windows PowerShell Dell EqualLogic PS Series Volume Deletion and iSCSI Connection removal Automation Windows PowerShell Dell EqualLogic PS Series Volume Deletion and iSCSI Connection removal In this section we will show how to take the volume offline, disconnect the iSCSI sessions and remove the volume from the PS Series Array. By providing both the volume create and volume delete process automation testing will be a simpler task.
Windows PowerShell Dell EqualLogic PS Series Volume Deletion and iSCSI Connection removal Automation Step – By – Step Pre-Windows Server 2012 Start Take OS volume offline Disconnect iSCSI sessions to volume … 1. For this exercise check the current status of the volume in the PS Series Group Administrator GUI. Launch Group Manager and locate the volume you wish to remove. Note: This step is intended to familiarize the reader with the scripts and may be skipped during actual automation executions. 2.
Windows PowerShell Dell EqualLogic PS Series Volume Deletion and iSCSI Connection removal Automation Associate the iSCSI target to pass to the WMI command. PS C:\> $iTARGET=$MyVol.ISCSITargetName Retrieve all MPIO sessions to this volume with WMI. PS C:\> $colSessions = get-wmiobject -namespace root\wmi -class MSiSCSIInitiator_SessionClass|where-object {$_.TargetName -eq $iTARGET} The MPIO sessions may be listed with the Get-WMiObject command as demonstrated below. PS C:\ > Get-WMiObject -namespace root\w
Windows PowerShell Dell EqualLogic PS Series Volume Deletion and iSCSI Connection removal Automation 4. Only need one session to take the Windows volume offline with DISKPART. #Need only the single instance from the iSCSI connections PS C:\ > $objSession=$colSessions[0] #For only one nic or session PS C:\ > $objSession=$colSessions PS C:\ > $colDevices = $objSession.Devices #Need to interrogate only the first Devices collection PS C:\ > $objDevice=$colDevices[0] #For only one nic or session PS C:\ > $objDe
Windows PowerShell Dell EqualLogic PS Series Volume Deletion and iSCSI Connection removal Automation Select the above and paste into your PowerShell command line and : PS C:\ > $dpscript = @" select disk $diskID clean offline disk noerr "@ Start Take OS volume offline Disconnect iSCSI sessions to volume And now to execute DISKPART: PS C:\> $dpscript | diskpart Output will look similar to below: PS C:\ > $dpscript | diskpart Microsoft DiskPart version 6.2.
Windows PowerShell Dell EqualLogic PS Series Volume Deletion and iSCSI Connection removal Automation Start Take OS volume offline Disconnect iSCSI sessions to volume … 6. Next logout of each iSCSI Session connected to the volume. The iSCSI targets are still associated to the $colSessions variable assigned earlier with the WMI command (see step 3): PS C:\> foreach ($objSession in $colSessions) { write-host "Host $hostn - logging out ISCSI target $iTARGET" $retn = $objSession.
Windows PowerShell Dell EqualLogic PS Series Volume Deletion and iSCSI Connection removal Automation Start Take OS volume offline Disconnect iSCSI sessions to volume … 7. Remove the persistent connections – this time the persistent login class will be used “MSiSCSIInitiator_PersistentLoginClass” for the WMI command: PS C:\> $colPersistent = get-wmiobject -computername $hostn -namespace root\WMI -class MSiSCSIInitiator_PersistentLoginClass | where { $_.
Windows PowerShell Dell EqualLogic PS Series Volume Deletion and iSCSI Connection removal Automation Output will look similar to below: PS C:\ > foreach ($objPersistent in $colPersistent) { write-host "Host $hostn - removing persistent target:" $objPersistent.TargetName $objPersistent.psbase.Delete() } Host CFW2K12CC2 - removing persistent target: iqn.2001-05.com.equallogic:0-8a0906097bba009-7528bae58ce50f9a-td1089v1 PS C:\ > Start Remove Windows Volume Take EQL volume offline Delete EQL Volume End 9.
Windows PowerShell Dell EqualLogic PS Series Volume Deletion and iSCSI Connection removal Automation Start Remove Windows Volume Take EQL volume offline Delete EQL Volume End 10. Now remove the volume PS C:\> Remove-EqlVolume -VolumeName $ThisVol -Force Note: “-Force” will bypass the confirmation message Output will look similar to below: PS C:\> Remove-EqlVolume -VolumeName $ThisVol -Force PSAPI.Cmdlets.RemoveVolume TD1089VOL1 completed successfully.
Windows Server 2012 Native Windows Storage Management Automation Techniques Windows Server 2012 Native Windows Storage Management Automation Techniques Windows Server 2012 and Windows 8 introduced a new Storage Management Architecture to help reduce management complexity as well as optimize storage through native Windows Storage Management Applications. Host Integration Tools for Microsoft v4.
Add volumes example with native Windows Server 2012 cmdlets The details we needed in Windows 2008 to just retrieve the Physical disk number to initialize, partition and format are much easier to obtain with the new Storage Architecture of Windows Server 2012 Also the new iSCSI Session cmdlets connect and bring the volume online consolidating some of the steps.
Add volumes example with native Windows Server 2012 cmdlets Copy/Paste the code below with the appropriate changes into the new page: #---------------------------------------------------------------------------# Copyright (c) 2011-2013 by Dell Inc. # # All rights reserved. This software may not be copied, disclosed, # transferred, or used except in accordance with a license granted # by Dell Inc. This software embodies proprietary information # and trade secrets of Dell Inc.
Add volumes example with native Windows Server 2012 cmdlets #CHECK ARRAY AND POOL FOR OPERATIONS AND/OR ACCESS VIA HIT/ME if ($GroupIsOK.OperationalStatus -eq "OK") { write-host $GroupIsOK.FriendlyName $GroupIsOK.FirmwareVersion $GroupIsOK.
Add volumes example with native Windows Server 2012 cmdlets # "Discovery" tab Get-iSCSITargetPortal | Update-iSCSITargetPortal Write-Host "Now we will connect each new volume to this host:" $initaddress.NodeAddress " to " $mygroup $myVol="" for ($i=0;$i -le $totVols;$i++){ $myVol = $myTVol + $i Write-Host "Connecting" $initaddress.NodeAddress " to " $myVol #Kinda fancy way to get the target node address $IQN = (Get-VirtualDisk -FriendlyName $myVol | Get-TargetPort).
Add volumes example with native Windows Server 2012 cmdlets The second part of the script will simply loop through each volume created and connect the iSCSI sessions with the new iSCSI Session cmdlet Connect-iSCSITarget. Then the volumes will be initialized with Initialize-Disk, partitioned with New-Partition Format-Volume then assign the next drive letter with Add-PartitionAccessPath.
Removing volumes with native Windows Server 2012 cmdlets Removing volumes with native Windows Server 2012 cmdlets This routine will allow you to quickly remove the volumes in bulk using the same iteration process as the Add volume with native Windows Server 2012 SM API cmdlets. The following example requires Windows Server 2012 or Windows 8 and the Dell EqualLogic Host Integration Tools for Microsoft v4.5 or higher. The steps to remove a volume are: 1.
Removing volumes with native Windows Server 2012 cmdlets $myVol="" $myTVol="SMPvol" $myGroup ="tekmktlab-10Gb" $totVols = 2 $myGroup ="tekmktlab-10Gb" $initaddress=(get-initiatorport) $tarport=(get-targetportal) #Refresh the target Get-iSCSITargetPortal | Update-iSCSITargetPortal #Iterate through the volumes using the same pattern used to Create for ($i=0;$i -le $totVols;$i++){ $myVol = $myTVol + $i $iSCSITargetNodeAddr=(Get-VirtualDisk -FriendlyName $myVol | GetTargetPort).
Removing volumes with native Windows Server 2012 cmdlets Example Output below: PS C:\ > .\EQL_W2K12_BULK_DELETE.ps1 Disconnecting iqn.1991-05.com.microsoft:cfscvmm2k12sp1.spartan.local Deleting iqn.1991-05.com.microsoft:cfscvmm2k12sp1.spartan.local to tekmktlab-10Gb Disconnecting iqn.1991-05.com.microsoft:cfscvmm2k12sp1.spartan.local Deleting iqn.1991-05.com.microsoft:cfscvmm2k12sp1.spartan.local to tekmktlab-10Gb Disconnecting iqn.1991-05.com.microsoft:cfscvmm2k12sp1.spartan.local Deleting iqn.1991-05.com.
Conclusion Dell® EqualLogic Host Integration Tools for Microsoft® along with Auto-Snapshot Manager Microsoft® Edition (ASM/ME) provide robust integration and management capabilities for Dell PS Series storage. The exercises in this document should provide some guidelines on how Dell PS series storage environments may be best automated to improve management simplicity and optimization.
Appendix A: Full Script to add a volume (Windows 2008) This is the full script built from the step by step guide we introduced in the previous sections. This script may be run on Windows 2008 or Windows Server 2012/Windows 8. Note: This script will need access to the PS Series Array Group and the volume must not exist. Launch the Windows ISE and create a new PowerShell script (File -> New) and copy and paste the following.
#List only pools with enough free space #TECH NOTE:the following commands are PS Series cmdlets #if the volume already exists a warning will be presented $MyPools = Get-EqlPool|where-object {$_.FreeSpaceMB -gt $MinFree} foreach ($pool in $MyPools) { [int]$FreeSpace = $pool.FreeSpaceMB/1024/1024 [int]$FreeSapceMB =$pool.FreeSpaceMB write-host $pool.StoragePoolName Free: $FreeSpace.ToString() TB #Lets just check for for enough free space if ($pool.
############################################################################### #Refresh the iscsi sessions #TECH NOTE:the following commands use the WMI interface ############################################################################### Write-Host "Now Connecting iscsi session to " $ThisVol " at this address " $iTarget $wmimthds = [wmiclass]"\\$hostn\root\wmi:MSiSCSIInitiator_MethodClass" $wmimthds.
$label = $MyVol.VolumeName + $PoolName + $GroupLabel ############################################################################### #Interrogate the devices property for the physical disk information ############################################################################### $colDevices = $objSession.
Example Output from the script Execute either from the Windows ISE GUI or: PS C:\> .\MyPath\MyAddVoltoPSA.ps1 Output: PS C:\> .\EQLWin2008AddVolume.ps1 default Free: 23 TB SSD-SAS Free: 10 TB We will now create a new volume in default on PS Series Group: tekmktlab-10Gb New access enabled for TD1089V1 to iqn.1991-05.com.microsoft:cfw2k12rcc2.spartan.local Host Name: CFW2K12RCC2 PSAPI.Cmdlets.NewVolumeAcl TD1089V1 completed successfully. Microsoft iSCSI Initiator Version 6.
Appendix B: Full Script to delete a volume (Windows 2008) In the Windows ISE click the “New” script icon. Copy and paste the code below, and save with a meaningful name such as PSDeleteVolume.ps1. In Windows PowerShell ISE create a new page Copy/Paste below with appropriate variable changes into the new script page: #---------------------------------------------------------------------------# Copyright (c) 2011-2013 by Dell Inc. # # All rights reserved.
$disknum = $objDevice.DeviceNumber $diskID = $disknum $diskModel = $disk.model #creating the commands for the diskpart utility (no powershell equivalent) Write-Host "Will vary " $ThisVol " Disk#:" $disknum " Offline" $dpscript = @" select disk $diskID clean offline disk noerr "@ $dpscript | diskpart } } # Get any sessions associated with the target and log them out # $hostn = ($env:computername) $colSessions = get-wmiobject -computername $hostn -namespace root\WMI -class MSiSCSIInitiator_SessionClass | wher
Example Output: PS C:\> .\PSDeleteVolume.ps1 Will vary TD1089V1 Disk#: 12 Offline Microsoft DiskPart version 6.2.8400 Copyright (C) 1999-2012 Microsoft Corporation. On computer: CFW2K12RCC2 DISKPART> Disk 12 is now the selected disk. DISKPART> DiskPart succeeded in cleaning the disk. DISKPART> DiskPart successfully offlined the selected disk. DISKPART> Host CFW2K12RCC2 - logging out ISCSI target iqn.2001-05.com.
Appendix C: Troubleshooting Techniques Occasionally problems with scripting occurs which may be the result of different environments, sequence of events or other errors. Below is a table to help identify and resolve issues with PowerShell scripting Problem Cause Resolution Issue with my Group access Name or Group IP may be incorrect. If this group had been previously connected you may need to re-register. “Remove-EqlGroupAccess –GroupName $GroupName” and then “New-EqlGroupAccess”.
values. The options allow you to start from a new location in the code or simply review variable assignments. Volume already exists error Deletion script for Windows Server 2012 or the one for Windows 2008 may not have been run or ran incorrectly. Check the script for errors or look at the PS Series Group Manager GUI for existence of these volumes…if you intended have them deleted you will need to delete manually or through the appropriate scripts.
Appendix D: Windows 2008 Integrated Scripting Environment (ISE) setup 1. Click Start ->All Programs->Server Manager 2. Click on the “Features” 3. On the right click “Add Features” 4.
Technical Support and Customer Service Dell support service is available to answer your questions about PS Series SAN arrays. Contacting Dell 1. If you have an Express Service Code, have it ready. The code helps the Dell automated support telephone system direct your call more efficiently. 2. If you are a customer in the United States or Canada in need of technical support, call 1-800-945-3355. If not, go to Step 3. 3. Visit support.dell.com/equallogic. 4.