A few words to start
The last
few years, I have a lot of duty in contact with the storages and servers
connected by technology SAN. Most of the systems
with which I have to face a variety of EMC storages from large
new VMAX and VNX, to small AX; as well as the same as those of Netapp and
Hitachi. I work almost exclusively with the HP blade servers of different
modifications connected over switches of Cisco and Brocade. I specifically
dwelt on that hardware with which I work, because most of the methods used by
me, as well as questions that I want to discuss in this blog will be oriented
to these products. But, if someone needs help in management of other systems, I
will be glad to help than I can.
A few words for what is this set of scripts: this is an attempt to build anAPI for fast and error-free operation with
one or more fabrics. It will include:
1) A script to build by a single run any number of zone under the schemethe server_port - storage_port, at the entrance list of servers and a list of ports on the output - named server_storage_port zone, the zone is automatically created on the right switch.
2) Find zones by the server name or port of storage - the script works with a parameter list and any combination thereof, is possible change any parameter toALL .
3) Removal of zones to the same principle
A little background. About four years ago, my company has decided to actively implement SAN technology in our systems. Prior to that, we had a great experience with NAS mainly from Netapp, as well as a few small SAN arrays from different vendors. Help us with the transition to SAN :) come from EMC. Their family had just appeared Symmetrix VMAX, with it all began.
And so, for control and monitoring systems were purchased from EMC ECC is at the beginning of a pretty good management software for fabric, but when the number of switches in each fabric, reached more than 20, use it became practicaly impossible - while waiting time for any change in the configuration of zones was unacceptable large (more than an hour), and the probability of success is too low. Please note, that the new system - ProSphere this functionality is completely removed.
As a result, the question arose - how to manage the fabrics (Cisco and Brocade) where the number of switches in each go beyond 40 and the number of objects close to 1000. Of course you can use the software manufacturer of switches: Cisco Fabric Manager and Brocade DCFM, but first - use the two products is not very comfortable (Brocade and Cisco, we are working in parallel to increase the stability of the system to vendors bugs), and second - after ECC configurations, not a aliases used and the only method of determining the object was WWN, to say the least that not so easy.
As a result of the above, I decided to start development of my SAN management tools. The scripts that I'm here to spread, are processed and are adapted to the not specific network. They are written in BASH, and should easily be run on any UNIX system. If the script would need an additional package (for example expect), I'll try to give explanations on how to install it later.
This version is for communication with objects using SSH, but, if in the opinion of users, a more appropriate protocol is telnet or SNMP - I'll refining it under these protocols. However, for systems control the most powerful, safe and flexible it is SSH.
And so, the first script is designed to search zones (Soft Zone) in one or more fabrics. As an input parameter specifies a list of hosts, a name of storage and a list of ports, any of the parameters can be replaced with the word ALL for a complete list of zones related to the server, port, or an array, respectively. The output of : list of zones combining the request objects to the division of networks (factories).
In the application of the key -v specifies WWN (s) included in each zone. The script uses WWN of objects stored in the configuration files and the current configuration of the zones extracted directly from the switches (one for each fabric).
A few words for what is this set of scripts: this is an attempt to build an
1) A script to build by a single run any number of zone under the schemethe server_port - storage_port, at the entrance list of servers and a list of ports on the output - named server_storage_port zone, the zone is automatically created on the right switch.
2) Find zones by the server name or port of storage - the script works with a parameter list and any combination thereof, is possible change any parameter to
3) Removal of zones to the same principle
A little background. About four years ago, my company has decided to actively implement SAN technology in our systems. Prior to that, we had a great experience with NAS mainly from Netapp, as well as a few small SAN arrays from different vendors. Help us with the transition to SAN :) come from EMC. Their family had just appeared Symmetrix VMAX, with it all began.
And so, for control and monitoring systems were purchased from EMC ECC is at the beginning of a pretty good management software for fabric, but when the number of switches in each fabric, reached more than 20, use it became practicaly impossible - while waiting time for any change in the configuration of zones was unacceptable large (more than an hour), and the probability of success is too low. Please note, that the new system - ProSphere this functionality is completely removed.
As a result, the question arose - how to manage the fabrics (Cisco and Brocade) where the number of switches in each go beyond 40 and the number of objects close to 1000. Of course you can use the software manufacturer of switches: Cisco Fabric Manager and Brocade DCFM, but first - use the two products is not very comfortable (Brocade and Cisco, we are working in parallel to increase the stability of the system to vendors bugs), and second - after ECC configurations, not a aliases used and the only method of determining the object was WWN, to say the least that not so easy.
As a result of the above, I decided to start development of my SAN management tools. The scripts that I'm here to spread, are processed and are adapted to the not specific network. They are written in BASH, and should easily be run on any UNIX system. If the script would need an additional package (for example expect), I'll try to give explanations on how to install it later.
This version is for communication with objects using SSH, but, if in the opinion of users, a more appropriate protocol is telnet or SNMP - I'll refining it under these protocols. However, for systems control the most powerful, safe and flexible it is SSH.
And so, the first script is designed to search zones (Soft Zone) in one or more fabrics. As an input parameter specifies a list of hosts, a name of storage and a list of ports, any of the parameters can be replaced with the word ALL for a complete list of zones related to the server, port, or an array, respectively. The output of : list of zones combining the request objects to the division of networks (factories).
In the application of the key -v specifies WWN (s) included in each zone. The script uses WWN of objects stored in the configuration files and the current configuration of the zones extracted directly from the switches (one for each fabric).
No comments:
Post a Comment