Loading...

Recreating initrd Image

RHEL 6.x systems by default contain ql2xxx driver. This driver can initialize a QLogic HBA only in initiator mode. During RHEL 6.x system install this driver would become part of initial ramdisk image (initrd) and would be loaded automatically during boot.

To share mount path on a Data Server to MediaAgents through FC, QLogic HBA needs to be present on the Data Server and needs to be initialized in target mode.

SCST framework contains a QLogic target mode driver called qla2x00tgt. This driver works in conjunction with a QLogic initiator mode driver called qla2xxx_scst which is also provided by SCST framework.

Before You Begin

Install the MediaAgent and SAN Storage Server on the data server. Ensure that you select the MediaAgent and SAN Storage Server when selecting the packages during install.

For more information, see MediaAgent Installation.

Procedure

  1. Navigate to the /etc/modprobe.d and edit the blacklist.conf file and add the qla2xxx driver as a black listed driver.

    Create the blacklist.conf file if it does not exist.

  2. Recreate the initrd image using the following command.

    mkinitrd /boot/initramfs-3.10.0-514.10.2.el7.x86_64.img 3.10.0-514.10.2.el7.x86_64 --force

    Where:

    3.10.0-514.10.2.el7.x86_64 is the current kernel version. You can get the current kernel version using the following command:

    uname –r

  3. Edit the /etc/grub.conf file to point to the new initrd image:

    kernel /vmlinuz-3.10.0-514.10.2.el7.x86_64 ro root=/dev/mapper/vg_santest1-lv_root rd_LVM_LV=vg_santest1/lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M rd_LVM_LV=vg_santest1/lv_swap KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet console=tty0 console=ttyS1,115200n8
    initrd /initramfs-noqla2xxx-3.10.0-514.10.2.el7.x86_64.img

  4. Restart the data server for the change to take effect.

Last modified: 10/2/2018 8:31:57 PM