17.03.2015 Views

Storage Area Networks For Dummies®

Storage Area Networks For Dummies®

Storage Area Networks For Dummies®

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

184<br />

Par t II: Designing and Building a SAN<br />

Here’s a big assumption that I now must face: To have multiple HBAs see the<br />

same LUNs and load balance and fail-over, you need a software or OS feature<br />

that allows this functionality. Using multiple paths from your server to the<br />

LUN is called (well, yeah) multipathing; I’m assuming that your servers have<br />

multipathing software installed or built into the operating system. That way,<br />

if the same LUN appears across two different HBAs, the OS will know it’s looking<br />

at the same LUN. Operating systems are dumb, and they don’t usually<br />

expect to see the same disk on two different host adapters.<br />

Just keep pretending that your OS will handle multipathing for you and not<br />

allow you to see four LUNs when you have only one with four paths.<br />

Unix servers<br />

Log in to the Unix system first. In this pretend Unix system, the OS is Solaris<br />

and it contains a few key files that you need to be aware of before you expect<br />

to see any disk devices appear.<br />

Persistence pays off<br />

First, make sure that the HBA’s configuration file has the proper entries. A<br />

few paragraphs from here is a segment of a typical configuration file called<br />

/etc/hba.conf. I removed all the mumbo-jumbo entries for timeouts and<br />

the like; they’re standard, and your SAN vendor will tell you what you<br />

specifically need to put in for them.<br />

The important line is the one starting with hba-bind-WWNN. That line<br />

controls persistent binding, which is used to make sure that when a server<br />

reboots and scans its HBAs for disk devices, it always finds the same LUNs<br />

that it used before in the same place. You see, computers are funny — when<br />

they start up and go out initializing their devices (such as HBAs), they don’t<br />

always remember where things were the last time they were used. If you<br />

don’t use persistent bindings, the LUNs that you had on HBA card #1 might<br />

suddenly show up on HBA card #2 the next time around. This is not good<br />

because your applications expect to find your files on a specific device, and if<br />

they aren’t there, the applications will fail to run.<br />

When multiple HBAs are in a server, the same driver for each HBA loads multiple<br />

times: each one called an instance. An instance name typically starts with<br />

a shortened name or abbreviation for the HBA card manufacturer (here it’s the<br />

generic hba) and then a number, usually starting with zero and incrementing<br />

with each physical HBA card found in the server. With this section of the configuration<br />

file, you can associate each instance of the HBA driver to a specific<br />

port on the storage array. Use the World Wide Port Name (WWPN — same as<br />

the WWN of the storage port) to bind each instance to a specific card and SCSI<br />

target # ID. This will make all the devices appear in the same place every time<br />

upon a server reboot.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!