Networking, Programming and Graphics - Tutorials
ONLINEHOWTO.net Tutorials Category

Configuration HP MSA2012i - iscsi storage via CLI

Type: Code Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Level: Intermediate Networking, Programming and Graphics - Tutorials Networking, Programming and Graphics - Tutorials 
Networking, Programming and Graphics - Tutorials
Date: 2009-Apr-30
Networking, Programming and Graphics - Tutorials
Visited: 3903 times
Networking, Programming and Graphics - Tutorials
Rating: Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Published: Stephen Think

HP MSA2012i storage can be configured via web GUI(SMU) or cli (Serial port connection or telnet).
In HP MSA2012i - iscsi storage General Config Initial Setup Guide and HP MSA2012i - iscsi storage Virtual Disk Config Initial Setup Guide I have shown you how to configure it using the web interface. In this tutorial I will show you how you can configure your HP MSA2012i storage via command line interface(CLI).

First you need to connect the MSA2012i serial cable to one of the controllers serial port.After that connect the cable to computer/server serial port.To access the CLI configure the flowing parameters in Serial console program (minicom for linux, Hyper terminal for Windows.)

Serail port parameters:

   Baud rate(bits/sec): 115,200
   Data bits:          8
   Parity:  None
   Stop bits:          1
   Flow control       None

Once we can access the storage we highly recommend that you first Change the default user and password
# show users
    Username             Access Level   User Type    WBI   CLI   FTP
    -------------------------------------------------------------------
    monitor              Monitor        Standard     x     x
    manage               Manage         Standard     x     x     x
    ftp                  Manage         Standard                 x
    -------------------------------------------------------------------

# set password manage

    Enter new password:********
    Verify new password:********
    Info: Changing password for user: manage

    Success: Password set.

Folwoing the steps I showed in the first article our second priority is to Set the time and NTP configuration
# show controller-date
    Controller Date: FRI JAN 30 14:43:45 2009

# set controller-date jan 30 16:49:00 2009 +2
 Success: Command completed successfully

# show ntp-status
    NTP Status
    ----------
    Status             : activated
    Client Task Status : present
    NTP Server Address :
    Last Server Contact: none

# set controller-date jan 30 16:50:00 2009 +2 ntp enabled ntpaddress 192.168.0.2
 Success: Command completed successfully

Next step is to Configure network parameters. To change Management ports ip addresses execute the commands below. This will give you detailed information about the IP address and general network configuration for your HP MSA2012i storage.

# show network-parameters
    Network Parameters Controller A
    -------------------------------
    IP Address     : 10.1.0.212
    Gateway        : 10.1.0.1
    Subnet Mask    : 255.255.255.0
    MAC Address    : 00:C0:FF:D7:63:06
    Addressing Mode: Manual

    Network Parameters Controller B
    -------------------------------
    IP Address     : 10.1.0.213
    Gateway        : 10.1.0.1
    Subnet Mask    : 255.255.255.0
    MAC Address    : 00:C0:FF:D7:62:F9
    Addressing Mode: Manual


# set network-parameters ip 10.1.0.215 netmask 255.255.255.0 gateway 10.1.0.1 controller a

 Success: Network parameters have been changed

Change Host(Data) ports parameters. First we will check what current settings are:

# show host-parameters
Host Parameters
---------------
Ctlr: A
Ch: 0
Type: Host
Media: iSCSI
Status: Up
IP-Ver: IPv4
PIP: 10.1.0.43
PIP-Netmask: 255.255.255.0
PIP-Gateway: 0.0.0.0
PIP-Service-Port: 3260
Port-Name: iqn.1986-03.com.hp:storage.msa2012i.0845d751e8.a
Target Alias: Uninitialized Name.a



Bellow command will set the ip address of controller A port 1:
# set host-parameters channel 1 ip 10.1.0.47 netmask 255.255.255.0 gateway 10.1.0.1 controller a

  Success: iSCSI host parameters changed successfully.

Finally we will Create Virtual Disk(Raid) and will Create one volume

# create vdisk level raid10 disks 0-3:4-7 assigned-to auto mode online Vdisk1

    Success: Vdisk created.



# show vdisks
  Name                 Size     Free     Own RAID   Dsk Spr Chk Stat Jobs
  Serial#
  -----------------------------------------------------------------------------
   Vdisk1               587.1GB  587.1GB  A   RAID10 8   0   64  CRIT INIT 0%
     00c0ffd763060000ba35834900000000
  -----------------------------------------------------------------------------

# create volume vdisk Vdisk1 size 587GB Vdisk1_V1 mapping 0-1.1
 Success: volume created and mapped successfully

Rate this tutorial:                    
Post Comment

Need a specific tutorial? Do not hesitate and submit a request!
Your e-mail: