Mounting filesystems, Driver unloads, Using the udev script – HP PCIe IO Accelerators for ProLiant Servers User Manual
Page 26
Linux environments 26
On systems that use scripts to load drivers, you can enable or disable an init script with the standard init
script utility, chkconfig. By default, the IO Accelerator init script loads the driver at boot time.
You can disable loading of the IO Accelerator driver with the following command:
$ chkconfig --del iomemory-vsl
To re-enable the driver loading in the init script, use the following command:
$ chkconfig --add iomemory-vsl
Mounting filesystems
Because the IO Accelerator driver is not loaded in the initrd, or built kernel, using the standard method
for mounting filesystems (/etc/fstab) does not work. To set up auto-mounting of a filesystem hosted on an
IO Accelerator:
1.
Add the filesystem mounting command to /etc/fstab.
2.
Add the noauto option to /etc/fstab. For example:
o
/dev/fcta /mnt/fioa ext3 defaults,noauto 0 0
o
/dev/fctb1 /mnt/iodrive ext3 defaults,noauto 0 0
To have the init script mount these drives after the driver is loaded, and unmount them before the driver is
unloaded, add a list of mount points to the options file using the procedure documented there.
For the filesystem mounts shown in the previous example, the line in the options file appears similar to the
following:
MOUNTS="/mnt/fioa /mnt/iodrive"
Driver unloads
Take special care when unloading drivers. By default, the init script searches for any processes holding
open a mounted filesystem and kills them, thus enabling the filesystem to be unmounted. This behavior is
controlled by the option KILL_PROCS_ON_UMOUNT in the options file. If these processes are not killed,
the filesystem is not unmounted. Failure to unmount the filesystem might keep the driver from unloading
cleanly, causing a significant delay on the subsequent boot.
To unload the IO Accelerator driver using Linux, enter the following commands:
$ modprobe –r iomemory-vsl
$ modprobe -r fio-port
Uninstalling the IO Accelerator utilities using Linux
Enter the following command:
$ rpm –e fio-util fio-snmp-agentx
Using the udev script
On systems that rely on udev to load drivers, modify an IO Accelerator file to prevent udev from auto-
loading the IO Accelerator driver at boot time. To modify the file:
1.
Locate and edit the /etc/modprobe.d/iodrive file, which already contains the following line:
# blacklist iomemory-vsl
2.
To disable loading, remove the # symbol from the line, and then save the file.