Powershell automation for creation FSxN ISCSI volume and mount it on ec2 instance.
- Connection between FSxN and ec2 windows.
- TCP ports should be open between the ec2 windows and the FSxN:
22
,443
,3260
There are two PowerShell scripts:
1. Preinstall.ps1 - It installs ONTAP PowerShell and Multiple-IO if they haven't been installed. (no user input needed)
2. CreateDisk.ps1 - It creates volume, lun, igroup and mapped to the server.
Parameter | Description |
---|---|
IP | FSxN filesystem management IP |
User | Fsxadmin user or user with lun and volume creation privileges |
Password | User Password |
Vol_size | Disk size (GB) |
Drive_letter | Drive letter to map the disk |
Format_disk | (Boolean – Yes or no) – The user can choose whether to create a partition and format the disk. |
There are two ways to run the scripts and set the params:
1. in PowerShell ISE
2. CMD command: .\createDisk.ps1 <ip> <user> <password> <vol_size> <drive_letter> <formatdisk>
- Reboot is required for the Multiple-IO module - The instance will be restarted automatically once the Preinstall script is complete
- On each run, the script creates only one disk
- Every step in the script has an error handling component, so if a step fails, the script will stop and print the error message.
This repository is maintained by the contributors listed on GitHub.
Licensed under the Apache License, Version 2.0 (the "License").
You may obtain a copy of the License at apache.org/licenses/LICENSE-2.0.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" basis, without WARRANTIES or conditions of any kind, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
© 2024 NetApp, Inc. All Rights Reserved.