Advertisements

EqualLogic commandline magic

A couple of interesting EqualLogic commandline posts

http://www.vmguru.nl/wordpress/2010/05/changing-volume-access-from-command-line-for-equallogic/

Changing volume after volume in the GUI is painstaking and prone to errors. So in my opinion is scripting or command line the way to go. Since I needed him for a review for a document I quickly typed some commands for him. After connecting with SSH to the storage group this is all what you need to change a lot of volumes with some easy commands.

volume select <volumename>
create access username <chap account> ipaddress xx.xx.xx.xx apply-to volume authmethod chap

if you leave out the apply-to part, the rule will be applied to both the volume and the snapshot. If you have to change or add more

Since we use multiple VMKernel ports for iSCSI our commands looked like this:

volume select PROD01
create access username chappy ipaddress 10.10.10.10 apply-to both authmethod chap
create access username chappy ipaddress 10.10.10.11 apply-to both authmethod chap

volume select PROD02
create access username chappy ipaddress 10.10.10.10 apply-to both authmethod chap
create access username chappy ipaddress 10.10.10.11 apply-to both authmethod chap.

Now it only took about 5 minutes instead of an hour clicking and I got my document reviewed.

And

http://patrickvanbeek.wordpress.com/2010/04/19/equallogic-mpio-in-vsphere/

Do this before attaching lun’s to the host:

esxcli nmp satp setdefaultpsp –psp VMW_PSP_RR –satp VMW_SATP_EQL

It will put round robin as the default path policy to round robin, saves you lot of time

Advertisements

2 Responses

  1. Hi Michael, the formatting on the wordpresspage screwed up the correct command.

    it should be:
    esxcli nmp satp setdefaultpsp –psp VMW_PSP_RR –satp VMW_SATP_EQL

    that’s a double dash befor psp and before satp

    regards,
    Patrick

    btw, good post for changing the volumes, will come in handy

  2. Great find Michael! Thanks for sharing.

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

%d bloggers like this: