| 1 |
= FCP device management for the Debian Installer = |
| 2 |
|
| 3 |
*********************************************************************** |
| 4 |
Debian Installer module to configure FCP devices to install Debian |
| 5 |
Linux instances on FC-attached SCSI devices on Linux on z Systems. |
| 6 |
*********************************************************************** |
| 7 |
|
| 8 |
Using the FCP device configuration module |
| 9 |
----------------------------------------- |
| 10 |
You can use the FCP device configuration module in two different ways: |
| 11 |
|
| 12 |
1. Configuring FCP devices interactively |
| 13 |
2. Configuring FCP devices through preseeding |
| 14 |
|
| 15 |
Configuring FCP devices interactively |
| 16 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 17 |
When the FCP device configuration module starts, it scans the |
| 18 |
CCW bus for FCP devices. If it detects FCP devices, a panel |
| 19 |
appears to let the user select a particular FCP device for |
| 20 |
configuration. |
| 21 |
|
| 22 |
After the user selected a particular FCP device for configuration, |
| 23 |
the module enables the FCP device first. |
| 24 |
|
| 25 |
After the FCP device is active, the module checks if the FCP devices |
| 26 |
uses N_Port ID virtualization. If the FCP device uses N_Port ID |
| 27 |
virtualization and automatic LUN scanning is switched on (the default |
| 28 |
setting), no further user configuration steps are required. |
| 29 |
The FCP device becomes configured. |
| 30 |
|
| 31 |
If the FCP does not use N_Port ID virtualization or automatic LUN |
| 32 |
scanning is switched off, the user is requested to specify LUNs. |
| 33 |
To add LUNs, the user must specify the target port (WWPN) and the |
| 34 |
logical unit number (LUN) as pair, WWPN:LUN. The user can add |
| 35 |
numerous LUNs and, if necessary, can also remove them. The specified |
| 36 |
LUNs will be attached to the system and the FCP device configuration |
| 37 |
module writes the respective configuration file. |
| 38 |
|
| 39 |
Configuring FCP devices through preseeding |
| 40 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 41 |
Use the *s390-zfcp/zfcp* variable to specify one or more FCP devices |
| 42 |
to be configured. With this variable, you specify a comma-separated |
| 43 |
list of entries. An entry can be either the bus-ID of an FCP device |
| 44 |
or a combination of the bus-ID of an FCP device followed by the WWPN |
| 45 |
and LUN, each delimited by a colon. |
| 46 |
|
| 47 |
For example: |
| 48 |
|
| 49 |
0.0.1234,0.0.5678:0x2005000e11159c32:0x12345678000000 |
| 50 |
|
| 51 |
The bus-ID for an FCP device is sufficient if |
| 52 |
|
| 53 |
1. the FCP device uses N_Port ID virtualization and |
| 54 |
2. automatic LUN scanning is switched on (default) |
| 55 |
|
| 56 |
You have to specify triplets consisting of the bus-ID of the FCP device, |
| 57 |
WWPN, and LUN in any other case. Note that the FCP device configuration |
| 58 |
module fails if an entry specified with the *s390-zfcp/zfcp* variable is |
| 59 |
not valid. An error message which describes the error is written to the |
| 60 |
syslog. |
| 61 |
|
| 62 |
|
| 63 |
Additional installation considerations |
| 64 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 65 |
After you completed and configured your FC-attached SCSI devices, |
| 66 |
consider to set up multipath. To prevent single path failures, |
| 67 |
install your Linux instance on those multipath devices. |
| 68 |
|
| 69 |
Note that it is sufficient to install on multipath devices even |
| 70 |
if there is only a single path available. Later, you can extend |
| 71 |
your multipath setup and configure additional paths. Note that |
| 72 |
configuring multipath later, on already installed Linux instances, |
| 73 |
is typically complex. |
| 74 |
|
| 75 |
|
| 76 |
Controlling the FCP device configuration behavior |
| 77 |
------------------------------------------------- |
| 78 |
You can control different aspects of the FCP device configuration |
| 79 |
through kernel and module parameters. The FCP device configuration |
| 80 |
module does not change any of the kernel and module parameters |
| 81 |
described below. |
| 82 |
|
| 83 |
scsi_mod.scan |
| 84 |
~~~~~~~~~~~~~ |
| 85 |
The *scsi_mod.scan* module parameter controls the behavior of the SCSI |
| 86 |
module when processing new target ports and LUN attachments. Typical |
| 87 |
values are *sync* for synchronous and *async* for asynchronous processing. |
| 88 |
For FCP devices, *sync* is the preferred setting. Note that Debian kernel |
| 89 |
might have a different value assigned. For asynchronous processing, the |
| 90 |
FCP device configuration module must wait until a LUN becomes visible. |
| 91 |
This might cause timeouts, in particular, when preseeding is used. If you |
| 92 |
experience timeouts, specify *sync* for *scsi_mod.scan*. |
| 93 |
|
| 94 |
cio_ignore |
| 95 |
~~~~~~~~~~ |
| 96 |
Use the *cio_ignore* kernel parameter to limit the number of FCP devices |
| 97 |
that are visible to the FCP device configuration module. The FCP device |
| 98 |
configuration module does not check nor remove FCP from the cio_ignore |
| 99 |
blacklist. Note that Debian does not include support for managing |
| 100 |
cio_ignore blacklists. So you can use this kernel parameter in general |
| 101 |
to limit the number of CCW devices visible to the Debian Installer and |
| 102 |
the Linux instance to be installed. |
| 103 |
|
| 104 |
zfcp.allow_lun_scan |
| 105 |
~~~~~~~~~~~~~~~~~~~ |
| 106 |
Use the *zfcp.allow_lun_scan* module parameter to control the automatic |
| 107 |
LUN scanning for FCP devices with N_Port ID virtualization. The FCP |
| 108 |
device configuration module checks this kernel parameter at startup. |
| 109 |
Automatic LUN scanning is enabled by default and there is no particular |
| 110 |
reason to turn it off. |
| 111 |
|
| 112 |
|
| 113 |
References |
| 114 |
---------- |
| 115 |
- Device Drivers, Features, and Commands (SC33-8411-28) |
| 116 |
http://public.dhe.ibm.com/software/dw/linux390/docu/l4n2dd28.pdf |
| 117 |
- How to use FC-attached SCSI devices with Linux on z Systems (SC33-8413-08) |
| 118 |
http://public.dhe.ibm.com/software/dw/linux390/docu/l4n0sg08.pdf |