Changing volume access from command line for EqualLogic
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 chapvolume 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.
Related Posts
7 Comments
Leave a Reply Cancel reply
You must be logged in to post a comment.
WTF? Chappy? ;)
If you didn't guess by now.. It's a fake CHAP secret ;)
Erik,
You might for the EQL Host Scripting Tools mentioned in the blog to be of use.
http://thelowedown.wordpress.com/2008/06/12/equ…
That also would have been an option. Since I didn't have access to the systems Erik had to change I gave him this.
Ops, I should have said Anne and not Erik, my bad.