- Community Home
- >
- Storage
- >
- HPE Nimble Storage
- >
- Array Setup and Networking
- >
- Command Line Creating Volumes
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2015 03:32 PM
тАО01-17-2015 03:32 PM
what are the command lines to create a volume for 10, 10GB nimble volumes?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2015 07:07 PM
тАО01-19-2015 07:07 PM
SolutionHi Tony,
A basic one line script to create 10 volumes of 10GB each named vol1 тАУ vol10 use the following:
for i in {1..10};do vol --create vol-$i --size 10240;done
If you wanted to add more volumes (e.g vol00 тАУ vol29) use the following:
for i in {0..2}:do for h in {0..9};do vol --create vol-$i$h --size 10240;done;done
You could also add additional options such as --perfpolicy name,--initiatorgrp name and --multi_initiator yes aswell if you wanted to add performance policies, initiator groups etc to the volumes.
Thanks,
Rod.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2015 01:37 PM
тАО07-01-2015 01:37 PM
Re: Command Line Creating Volumes
Hi Rod -
Nice script and thank you. How can I add different sizes for each volume? ie: Volume1 = 10GB , Volume2 = 20GB I can't seem to get the below script to work:
for x in {F..G};do for y in {5..6};do vol --create T-AlexSQL-$x --size $y0 --perfpolicy default --initiatorgrp vmfs --multi_initiator yes;done;done
Thanks,
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2015 03:42 PM
тАО07-01-2015 03:42 PM
Re: Command Line Creating Volumes
Enclose $y in braces, e.g. ${y}0. Bash is interpreting the 0 as part of the variable name. But you're also going to have a problem that the volume names will conflict based on how your loop is constructed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2015 12:03 PM
тАО08-04-2015 12:03 PM
Re: Command Line Creating Volumes
Great script.
do you know of any way to add more than one initiator group from cli when creating the vol?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2015 12:26 PM
тАО08-04-2015 12:26 PM
Re: Command Line Creating Volumes
I found I can add the second initiation with this script
do vol --addacl volname --initiatorgrp igname
but was unable to find any way to bake the second IG into the vol create command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2015 12:51 PM
тАО08-04-2015 12:51 PM
Re: Command Line Creating Volumes
That would be the way to do it. You can't add multiple IGs in the volume creation command.