Last week Erik encountered a small issue which required him to change the access to almost all volumes on an  EqualLogic storage infrastructure.

Although EqualLogic has a great interface compared to others, it doesn’t allow changing volume access for multiple volumes at the same time. If you have have to change a lot of volumes you have a couple of options: by hand in the GUI, scripting or command line. (I hope this stays that way to be honest)

 

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.