This information explains how to define the number of disks on Linux.
The maximum number of devices that are supported on a Linux host system is 128. The standard Linux kernel uses a major and minor number address mechanism. A special device file represents each disk device. For each default, there is a maximum of 16 partitions per disk. The major and minor numbers are each 8-bits.
Fibre-channel attached devices are handled as SCSI devices. There are eight major numbers that are reserved for SCSI devices. The major numbers are 8, 65, 66, 67, 68, 79, 70, and 71.
There are 256 minor numbers available for each of the eight major numbers. The following formula provides the maximum number of devices for Linux host systems:
For example: Number of devices = 8 x 256 ÷ 16 = 128
You an also use the device file systems devfs command. The devfs command uses a 32-bit device identifier, which enables the SAN Volume Controller to address many more devices. It lists only the devices that are available on the system, instead of listing device files for devices that are not attached to the system. The devfs command is compatible with earlier versions of the processor, mounts over the /dev file, and uses UNIX-like device identification.
Figure 65 show an example of the device file systems command for a Linux host.
/dev/scsi/host/bus/target/lun
By default, Linux host systems expect a single LUN for each Fibre-Channel attached device. This leads to the configuration of only one SCSI disk for each attached SAN Volume Controller. To allow the configuration of additional LUNs on the same SAN Volume Controller, you must modify the Linux kernel so it will search for multiple LUNs on each attached device. Complete these steps to modify the kernel:
options scsi_mod max_scsi_luns=255
Multiple LUNs on the same SAN Volume Controller will now be configured.
| Note: Due to limitations of the Linux operating system, LUNs that are not numbered contiguously starting with 0 will not be configured automatically during startup. |