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:
- EqualLogic firmware with vStorage API
- Life made easy – Dell EqualLogic storage swap
- Don’t enable root access for SSH
- ESXi bug when changing IP address
- VMware vCenter Mobile Access
Tags: Dell
Pingback: Tweets die vermelden Changing volume access from command line for EqualLogic | VMGuru.nl - I choose (a virtual) life! -- Topsy.com
Pingback: EqualLogic commandline magic « Michael Ellerbeck