chiark / gitweb /
[PATCH] The following patch fixes a warning when compiling chassis_id
[elogind.git] / extras / chassis_id / install.txt
1
2 Udev does not come pre-installed on a Linux system. Hence, we need to do the following before
3 a Linux system is ready ::
4
5 Steps:
6 ~~~~~
7 1.  Install libsysfs shared libraries by installing sysfsutils-0.4.0.
8
9 2.  Download latest version of udev from www.kernel.org site. It is
10     under repository->utils->kernel path chain.
11
12     Do make and make install so as to install udev. To install scsi_id,
13     go into extras/scsi_id folder to compile scsi_id. Typically, this
14     would be in /sbin folder.  Now, change scsi_id.cfg and set the
15     global option to work with all devices ( -g) and comment out the
16     black list option ( -b ).
17
18 3.  Download chassis_id callout code and compile. Install chassis_id and
19     provision.tbl file in /usr/local/bin.
20
21 4.  In /etc/rc.sysinit, add mount command to mount the sys memory file
22     system. ( mount -t sysfs sys /sys ). The /sys is necessary as
23     lot of the software components expect it to be in /sys.
24
25 5.  Now, in /etc/udev/udev.rules, install the udev rules file. This
26     is the GDN config file which is used by udev to create folders
27     in the form chasis<N>/slot<M>/port<O>/disk<P>.
28
29 6.  Now, you are almost there. Refer to PROVISIONING file.
30
31
32 PROVISIONING:
33 1.  For GDN, the provisioning file is in the format :
34    <id>  <host>   <number_of_disks>     <chassis#>    <slot#>  <serial#>  <name>
35
36    <host>            SCSI host on which the device is connected
37    <Number of disks> how many disks on this blade ?
38    <chassis#>        chassis Number
39    <slot#>           Physical slot number
40    <serial#>         Serial Number for the disk
41    <name>            Name of the disk device.
42
43 2.  To fill the provisioning table, the user needs to collect this information and
44     fill provision.tbl.
45
46     The serial number is found from the command scsi_id -p 0x80 -s <device name>.
47
48     The host number is availble from the sys file system. The chassis & slot
49     are visual data and should be enetered into provision.tbl.