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 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.
- App Volumes 2.10 released by Sander Martijn
- PowerShell Friday: Retrieving IP addresses for VMs by Anne Jan Elsinga
- vCenter Server appliance 6.0 URL-based patching by Sander Martijn
- Review: Synology Diskstation DS1513+ with VMware – Part 3 by Edwin Weijdema
- How to easily License Microsoft Windows with VMware Horizon… by Edwin Weijdema