Skip to content

Latest commit

 

History

History

iscsi-vol-create-and-mount

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Mount FSxN ISCSI volume on EC2 windows

Powershell automation for creation FSxN ISCSI volume and mount it on ec2 instance.

Prerequisites

  • Connection between FSxN and ec2 windows.
  • TCP ports should be open between the ec2 windows and the FSxN: 22, 443, 3260

Deployment

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. 

User Input

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.

Installation

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>

Notes

  1. Reboot is required for the Multiple-IO module - The instance will be restarted automatically once the Preinstall script is complete
  2. On each run, the script creates only one disk
  3. Every step in the script has an error handling component, so if a step fails, the script will stop and print the error message.

Screenshots

Screenshots 1 Screenshots 2 Screenshots 3 Screenshots 4

Author Information

This repository is maintained by the contributors listed on GitHub.

License

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.