Working with HP MSA 2000 via command line

25 10 2010

This statement is becoming almost cliche in the blogging world, but this post is more for my own benefit to help me remember some of the work I’ve been doing on MSA lately:

The MSA 2000 series has a pretty dire web interface – when you compare it with other SAN’s – and to make matters work, it mixes and swaps terminology with HP’s own EVA’s (a vdisk on an MSA refers to a RAID array made up of physical disks. A vdisk on an EVA is a virtual RAID array which sits on top of the underlying RAID 0 structure). The web interface is challenging enough as it is when it works, but recently the web page of the management interface has been timing out.

Thankfully SSH access still works and responds well. I’ve been using…

restart mc a

…to restart the management interface which helped things for a short while but ultimately I found myself falling back to SSH more and more.

The following procedure follows the steps I took to rename and prevent a volume to a host.

To give a host a friendly name (from its WWN):

set host-wwn-name host <wwn> <friendlyHostName>

To rename a volume:

set volume <volName> name <new_volName>

To view what hosts a volume is currently presented to and what volumes map to what hosts:

show host-maps [<friendlyHostName>]
show volume-maps [<volName>]

To actually present a volume to a host:

map volume <volName> [lun <lunID>] host <friendlyHostName> access rw

In theory the LUN ID can be left blank, but in practise I found that it would not map unless I specified an ID. Don’t forget to map both HBA’s for a host.

After presenting the volume to the Windows 2003 host I was dismayed when the Storage MMC could not see the new lun. Hitting F5, of course, was not enough. On the Disk Management section folder in the left hand side of the MMC window, right-click and select Rescan Disks.

I’ll update thist post if I use and feel the need to remember some other command line options for the MSA 2000 but hopefully we’ll be migrating off it to EVA soon!

About these ads

Actions

Information

3 responses

30 11 1999
Carlos

Hi,
Awsome article!.

I have a dude with a MSA2312i and a MSA2000, i have already conected all cables, the SAS Out port in the MSA2312i in the SAS In port of the MSA2000, but i dont have link, i executed a rescan in the 2312i but stills no link, have any idea on how to force the interface to go up?

Regards!

PS. Sorry my bad english.

3 11 2010
DJ

Hi David,

Do you know of any CLI commands to remove a mapping? I cannot seem to find it in the CLI reference guide.

thanks,

3 11 2010
DavidWarburton

Hi DJ – thanks for your comment.

I’ve not used it [yet] but unmap volume should work in the same way as map volume does.

Try show volume-maps and then help unmap volume from the command line…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Follow

Get every new post delivered to your Inbox.

%d bloggers like this: