Reply to comment

Create 50 SAN Volumes in 1 minute

I was asked to setup a mixed SAN infrastructure with both fiber and iSCSI SAN products. One of the requirement is to create over 50 of the volumes. It will be tedious and time consuming if going through the GUI one click at a time so I decided to give it a try using CLI and some ruby code to help.

50.times { |x|
    puts "volume create Tables#{x+1} 100G pool bigsan"
    puts "volume select Tables#{x+1} access create ipaddress 10.1.1.*"
}

After run this ruby code, I copy/paste the generated commands into CLI console and here you go. 50 volumes created in under 1 minute.

Reply

  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • You may post PHP code. You should include <?php ?> tags.

More information about formatting options