Escolar Documentos
Profissional Documentos
Cultura Documentos
THIS BLOG IS DEDICATED TO MY TEACHER, MENTOR AND BEST PAL MOHAN SIR(KMB.MOHAN@GMAIL.COM)
If you want to learn SAN. Go ahead and start troubling him to teach you(Dont say that I told to do so)
MINIMUM REQUIREMENTS:
1. 2. Knowledge on Basic Symmetrix Architecture Operating systems knowledge
3.
So, my style of writing (of-course I learnt it from Mohan Sir) will be in terms of steps. Because I believe that writing in steps will help us to remember and understand quickly. I will be using Symmetrix Command Line (SymCLI) to allocate LUNs. Let me stop the blah blah and start the blog!
SYMCONFIGURE -SID XXXX -F RAID1.TXT PREVIEW -V SYMCONFIGURE -SID XXXX -F RAID1.TXT PREPARE -V SYMCONFIGURE -SID XXXX -F RAID1.TXT COMMIT -V
Command Explanation: symconfigure (This command used to manage major configuration changes, display capacity of symmetrix and manage dynamic (hot) spares and device reservations) -sid (Symmetrix ID, always prefix with hyphen (-) ) -f (filename, mention the file name to which well use. In this example it is raid1.txt) preview (The preview argument verifies the syntax and correctness of each individual change defined, and then terminates the session without change execution.) prepare (The prepare argument performs the preview checks and also verifies the appropriateness of the resulting configuration definition against the current state of the Symmetrix array) commit (The commit argument completes all stages and executes the changes in the specified Symmetrix array.) -V (Yes, youre right, its verbose mode)
Thats it! After running the above the commands the new devices are created. It was to create symmetrix devices from the symcli right. Let us assume that the devices IDs are 001 through 00A (devices created with hexadecimal numbers)
MAP DEV 0001 TO DIR 8A:0 TARGET=0,LUN=52; MAP DEV 0001 TO DIR 9A:0 TARGET=0,LUN=52;
Command Explanation: map (map a device to fa) dev (symmetrix device ID) dir 8a (FA:port no#) target (The SCSI target ID (hex value) lun (Specifies the LUN addresses to be used for each device that is to be added for the host HBA.)
SYMMASK -SID XXXX -WWN 10000000C130880A -DIR 8A -P 0 ADD DEV 0001 SYMMASK -SID XXXX -WWN 10000000C131084A -DIR 9A -P 0 ADD DEV 0001
Command Explanation: symmask (Sets up or modifies Symmetrix device masking functionality.) -wwn (World Wide Name of the Host Bus Adapter (HBA) zoned with the FA) add (Adds devices to the device masking record in the database with the matching WWN)
STEP 5: UPDATE AND REFRESH THE SYMMETRIX DATABASE VCMDB (VOLUME CONTROL MANAGER DATABASE) STEPS TO PERFORM FROM THE HP-UX SERVER
The below command looks pretty simple but very important command to append all changes to the VCMDB. This will ensure and update the DB which protects the changes made the symmetrix.
#INSF -E
The insf command installs special files in the devices directory, normally /dev. If required, insf creates any subdirectories that are defined for the resulting special file. After running this command the new devices will be added to the /dev directory as special device file.
#POWERMT CONFIG
Configure logical devices as PowerPath devices. It will search for the EMC devices and adds it as a power path devices.
#POWERMT SAVE
Save a custom PowerPath configuration. Once we see the new device in the previous command output, then we can save the power path configuation database. After the successful completion of the above steps we can use the devices. Further by using the volume managers we can add them to the existing volume group or the new volume group.
TO ALLOCATE LUNS IN V-MAX ARRAY, FOLLOWING STEPS HAS TO BE PERFORMED. (COURTESY: SANJEEV TANWAR)
1. Create a storage groups (Containing symm devices) 2. Create a port group (one or more director /port combinations) 3. Create an intitors group (one or more host wwns) 4. Creating a masking view containg the storage groups,port groups, and inititors group. When a masking view is created,the devices are automatically masked and mapped.
CREATING STORAGE GROUP #SYMACCESS CREATE -SID XXX -NAME SG1 -TYPE STORAGE DEVS 01C,03C CREATING PORT GROUP
#SYMACCESS CREATE -SID XXX -NAME PG1 -TYPE PORT -DIRPORT 6D:0,7E:1
#SYMACCESS CREATE -SID XXX -NAME IG1 -TYPE INITITORS -FILE TXT1