- Community Home
- >
- Storage
- >
- Entry Storage Systems
- >
- MSA Storage
- >
- Does the MSA2050 Support the upload of a script t...
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
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
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
02-02-2023 05:00 PM - last edited on 02-05-2023 08:12 PM by support_s
02-02-2023 05:00 PM - last edited on 02-05-2023 08:12 PM by support_s
Does the MSA2050 Support the upload of a script to create multiple volumes?
I have the need to create a quite a few different sized volumes on a MSA2050. Does the array support the execution of a xml script or some sort of a script file to create the many small volumes (for a oracle rac database) from the cli? From the 2050 documentation it says to use create-volume-set command. would be nice to create a text document with all the volumes, upload, and execute.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2023 08:02 AM
02-03-2023 08:02 AM
Re: Does the MSA2050 Support the upload of a script to create multiple volumes?
@Matthew Murdock
Likely the investment into creating a script for a 1 time (or just a few times) is not your best option but if you want to go that way there are some details about scripting in the MSA CLI Guide.
I would recommend using the CLI and cut n paste the commands into the SSH CLI session.
using a text editor to create the commands (I've used excel as well to create hundreds of commands) here is an example at the bottom.
A little bit of experimenting with the command line and then copy ~20 lines at a time and paste them into a Putty session. It will save you a ton of time. Note: there are some commands that use a confirmation (see add disk-group) you can put the confirmation rght in line. Save the config file and you can always use it again in the event of disaster. Make sure to run the MSA HealthCheck afterwards to check best practices: https://www.hpe.com/storage/MsaHealthCheck
FYI - my script is doing something very stupid for a production configuration. Not a test but do you see it? LOL
## --- Array Pool Configuration FC --- ##
add disk-group type virtual pool A level r5 disks 1.1-3 dgA01
add disk-group dgA02 type virtual pool A level MSA-DP+ disks 1.4-24
y
create volume pool A size 1TiB tier_affinity archive A_Vol01
create volume pool A size 1TiB A_Vol02
create volume pool A size 1TiB A_Vol03
create volume pool A size 1TiB A_Vol04
create volume pool B size 1TiB tier_affinity archive B_Vol01
create volume pool B size 1TiB B_Vol02
create volume pool B size 1TiB B_Vol03
create volume pool B size 1TiB B_Vol04
## --- Host 125 initiator Nickname, Host, Mapping --- ##
set initiator nickname Host125-H1p1 id 51402ec015794160
set initiator nickname Host125-H1p2 id 51402ec015794164
set initiator nickname Host125-H2p1 id 51402ec010fc0790
set initiator nickname Host125-H2p2 id 51402ec010fc0794
set initiator nickname Host125-H3p1 id 51402ec015795cc0
set initiator nickname Host125-H3p2 id 51402ec015795cc4
set initiator nickname Host125-H4p1 id 51402ec015793010
set initiator nickname Host125-H4p2 id 51402ec015793014
create host initiators Host125-H1p1,Host125-H1p2,Host125-H2p1,Host125-H2p2,Host125-H3p1,Host125-H3p2,Host125-H4p1,Host125-H4p2 Host125
map volume lun 1 ports A1 initiator Host125.* A_Vol01
map volume lun 2 ports A2 initiator Host125.* A_Vol02
map volume lun 3 ports A3 initiator Host125.* A_Vol03
map volume lun 4 ports A4 initiator Host125.* A_Vol04
map volume lun 5 ports B1 initiator Host125.* A_Vol05
map volume lun 6 ports B2 initiator Host125.* A_Vol06
map volume lun 7 ports B3 initiator Host125.* A_Vol07
map volume lun 8 ports B4 initiator Host125.* A_Vol08
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
