Its time to say bye to 1-2-4 GBps and say hi to 8 GBps. So how do you know whether your SAN switch is ready to plugin 8 GBps SFP’s?
Here is the command
Above command show the info about the blades connected to the slots, no. of ports in each blade and the port speed. “FC8” means 8 GBps “FC4” means 4 GBps supported by the switch blades. Remember, if you have 1 GBps / GBICs then we cant use them with 8 GBps supported Blades.
For few months, accessing gmail using the web browsers on Debian based Linux (Ubuntu, Kubuntu etc..) has been very painful exercise to me. I need to wait for 2 or more minutes and ending up an error message saying that unable to load emails. Then it gives me an option to load basic HTML; but it will be loading all the time but never reaches the basic HTML page. So I tried switching multiple browsers like FF, GC etc.. Still no go…
I started using the email client “evolution” and configure gmail which is slower than the web browsers but it never fails to deliver what it has to. Evolution is default email client in most of the Debian based distros; if not you can always apt-get it. If you do not like the antique looks of evolution, you can do the same with thunderbird and others.
Please find the below link which helps to install and configure not only evolution but also other good email clients.
I hope you guys and gals had wonderful festive days (Both Ramazon and Ganesha Chaturthi). It was long time since I wrote here. In today’s article, I will write about Symmetrix LUN allocation from A-Z. I hope this blog would help you all to understand the complete allocation steps.
If you want to learn SAN. Go ahead and start troubling him to teach you…(Don’t say that I told to do so…)
Knowledge on Basic Symmetrix Architecture
Operating systems knowledge
and a test Symmetrix, hosts to try
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 LUN’s. Let me stop the blah blah and start the blog!
Symmetrix Allocation Steps
Step 1: Create symmetrix devices from the free space.
To create a symmetrix device, first we need to know what type of device we need to create. For example, RAID-5, RAID-1 etc… I’m going to write both the commands. To start with, we need to create a simple text file and add the below line to the file.
create dev count=xx, size=17480, emulation=FBA, config=2-way-mir, disk_group=x;
dev count=xx (replace xx with the number of devices we need to create)
emulation=FBA (FBA > Fixed Block Architecture used for Open Systems which are Solaris, HP-UC and Window$)
config=2-way-mir (Configure the devices as RAID-1, one of the oldest configuration available in all symmetrix models)
disk_group=x (disk groups are created to differentiate the tiers, performance and capacity. Based on the requirements, we can select the desired disk group number to create the new symmetrix devices)
Once you add the above line in the text file, save it and check the syntax. To make any configuration changes in the symmetrix we need to run the below mentioned commands. Ensure that the raid1.txt file in your current working directory.
symconfigure -sid xxxx -f raid1.txt preview -V
symconfigure -sid xxxx -f raid1.txt prepare -V
symconfigure -sid xxxx -f raid1.txt commit -V
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 we’ll 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, you’re right, its verbose mode)
That’s 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 ID’s are 001 through 00A (devices created with hexadecimal numbers)
Step 2: Search for free LUN ID on the FA (Fibre Adapters)
After creating the devices, we need to map the devices to the Fibre Adapters. In legacy symmetrix, it will be SCSI Adapters (SA). IF we need to do it from ECC (EMC Control Center now called as IONIX, we need to a. Right click on the device b. Go to ‘Configure’ c. Select and Click ‘SDR Device Mapping’ and follow the wizard. Here I’ll be writing the commands to do the same.
symcfg -sid xxxx list -available -address -fa xy -p n |more
symcfg (Discovers or displays Symmetrix configuration information)
list (Lists brief or detailed information about your Symmetrix configuration.)
-available -address (Requests the next available Vbus, TID, or LUN address be appended to the output list. Used with the -address option.)
-fa (Confines the action to a Fibre Adapter (FA) director number)
xy (x is the director number eg. 8 and y is the processor number eg. a or b)
-p n (p is the port and n is the number eg. 0 or 1)
Up to DMX-4 we follow the RULE-17. So repeat the command for another FA in this e.g. 9.
Step 3: Mapping a device to the FA
Now, lets assume that the LUN ID’s 52 onwards are free to use on both the FA’s 8a and 9a. Also, the file map.txt contains the below commands. After saving the file, we have run the symconfigure commands as shown above in Step 1. The below command will map the device 0001 to the FA’s 8a:0 and 9a:0 which will have the LUN ID’s 52 on the FA’s.
map dev 0001 to dir 8a:0 target=0,lun=52;
map dev 0001 to dir 9a:0 target=0,lun=52;
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.)
Step 4: LUN Masking a device to the FA
The last but one step is to do the LUN masking. It performs control and monitoring operations on a device masking environment. After running the below command, provides RW accessibility to the server having 2 port HBA’s for the device 0001.
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.
Symmask -sid xxxx refresh
refresh (updates and refreshes the VCMDB)
To confirm the symmetrix allocation done properly are not we can run the symcfg command as shown above in the Step 2. The output should show the LUN ID 52 being occupied by the Symmetrix device ID 0001.
Hurray!! This completes the symmetrix allocation steps.
Steps to perform from HP-UX server
Once we finish the task from the EMC end, we need to scan for the new LUN from the operating system. First we’ll deal with HP-UX server. The following commands needs to be executed in the same order from the server to start using the new device.
#ioscan -fnC disk
The ioscan command displays a list of system disks with identifying information, location, and size.
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.
Configure logical devices as PowerPath devices. It will search for the EMC devices and adds it as a power path devices.
#powermt display dev=all
Displays configured powerpath devices. If the previous command ran successfully then we should see the new device in the output list.
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 LUN’s 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.
I wonder how many times I tried to learn and acquire knowledge of storage area networking (SAN) from the internet…
Nowadays I find that its easy to Google it for the sites to fetch the cutting edge info on the SAN. I thought of making a list of websites from where we can get information on the SAN. Since I’m working as a SAN Admin (and I love to work on EMC products), I personally go through these websites to remember the basics and important stuffs in SAN!