Accessing DASD by udev-created device nodes
![]()
Use udev-created device nodes to access a particular physical disk space, regardless of the device name that is assigned to it.
Example
The
following example is based on these assumptions:
- A DASD with bus ID 0.0.b100 has two partitions.
- The standard device node of the DASD is
dasdzzz. - udev creates the following device nodes for a DASD and its partitions:
/dev/disk/by-path/ccw-0.0.b100 /dev/disk/by-path/ccw-0.0.b100-part1 /dev/disk/by-path/ccw-0.0.b100-part2
Instead of issuing:
# fdasd /dev/dasdzzz
issue:
# fdasd /dev/disk/by-path/ccw-0.0.b100
In
the file system information in /etc/fstab replace
the following specifications:
/dev/dasdzzz1 /temp1 ext3 defaults 0 0
/dev/dasdzzz2 /temp2 ext3 defaults 0 0with these
specifications:
/dev/disk/by-path/ccw-0.0.b100-part1 /temp1 ext3 defaults 0 0
/dev/disk/by-path/ccw-0.0.b100-part2 /temp2 ext3 defaults 0 0You can make similar substitutions with other device nodes that udev provides for you.