Here's the relevant details on the hardware:
Netapp FAS3020c(lustered) running 7.2.5.1
Dual Homed FC Fabric (Brocade)
Qlogic 2300 series HBA
IBM HS20 series blade
5GB LUN presented to host on 4 paths
Firmware on the server hardware has been flashed up to current rev as of 4/18/2009.
So I pop the disc in and off we go...
Proceed through the installer up to the time zone information (just prior to disk detection), opting not to install the HBA firmware from removable media. Prior to disk detection, press ALT+F2 to switch to console.
At the console, download the udeb for your HBA and reload the qlogic module.
wget http://ftp.us.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-qlogic-di_0.9_all.udebPress ALT+F1 to return to the installer and proceed to disk detection. Continue through the installer however you like up to the point where you would normally reboot into the installed OS, and drop back into the command prompt (ALT+F2).
udpkg -i firmware-qlogic-di_0.9_all.udeb
modprobe -r qla2xxx
modprobe qla2xxx
Now it's time to install the firmware for your HBA into initramfs:
wget http://ftp.us.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-qlogic_0.16_all.debALT+F1 to drop back into the installer, and reboot into your OS on a single path.
cp firmware-qlogic_0.16_all.deb target/home
chroot target
cd home
chmod 755 firmware-qlogic_0.16_all.deb
dpkg -i firmware-qlogic_0.16_all.deb
update-initramfs -uv
Update your package list and install some necessary packages (and maybe one or two unnecessary ones, vim and ssh being for my own convenience):
apt-get updateCreate an /etc/multipath.conf file (http://caskethopper.blogspot.com/2009/04/debian-lenny-san-boot-multipathconf.html ), an /etc/initramfs-tools/hooks/netapp_hook file (http://caskethopper.blogspot.com/2009/04/debian-lenny-san-boot-netapphook.html), and copy the netapp linux host utilities to /usr/local/src. CD to /usr/local/src and install the host utilities:
apt-get install multipath-tools multipath-tools-initramfs ssh vim lsb
cd /usr/local/srcThen make /etc/initramfs-tools/hooks/netapp_hook executable:
tar xvzf netapp_linux_host_utilities_4_2.tar.gz
cd netapp_linux_host_utils_4_2
./install
chmod 755 /etc/initramfs-tools/hooks/netapp_hookCopy the mpath_prio_netapp file from /sbin to /opt/netapp/santools (or edit every location that points to that location and change it to /sbin, or create a sym link, whatever floats your boat). I'm guessing that it's supposed to do this for you, but it doesn't seem to happen for me. Also, apparently the tarball extracts a number of files with unknown uids, so set root as owner of any unowned files:
find / -nouser 2>/dev/null | xargs chown root:rootNext you need to find the wwid of your scsi disk, and this is where they try to trip you up if you're coming from an etch boot from san environment. In previous versions, the scsi_id command was located in /sbin, but now it's in /lib/udev. Anyway, locate your scsi wwid with the command:
/lib/udev/scsi_id -g -p 0x83 -s /block/{whatever your disk id is}Write this down somewhere, because you're going to need it.
Edit the multipath.conf file to create a friendly alias for your disk's wwid. You can see in the multipath.conf file where I created the device "boot" as an alias for my disk.
Next, edit /etc/initramfs-tools/modules to include the following modules:
- firmware_class
- dm_mod
- dm_multipath
- dm_round_robin
ln -s /lib/libdevmapper.so.1.02.1 /lib/libdevmapper.soEdit /etc/fstab and /boot/grub/menu.lst to point to the new, multipathed disk locations. The format of the name will change from /dev/sd# to /dev/mapper/{alias}-part#, so for example, /dev/sda1 will become /dev/mapper/boot-part1.
Update your initramfs:
update-initramfs -uvReboot, ????, and profit.
Thanks to the boss man for the original Etch boot from SAN docs...
No comments:
Post a Comment