Before you begin
- The modules for the base component and the ECKD component of the DASD device driver must
have been loaded.
- The DASD device driver must have recognized the device as an ECKD type device.
- You must know the device bus-ID for your DASD.
About this task
If you format the DASD with the compatible disk layout,
you must create one, two, or three partitions. You can then use your
partitions as swap areas or to create a Linux file system.
Procedure
Perform these steps to prepare the DASD:
- Issue lsdasd to
find out if the device is online.
If necessary, set the
device online using
chccwdev.
Example: # chccwdev -e 0.0.b100
- Format the device with the dasdfmt command.
The formatting process can take hours for large DASDs.
If you want to use the CMS disk layout, and your DASD
is already formatted with the CMS disk layout, skip this step.Tips:
- Use the largest possible block size, ideally 4096; the net capacity
of an ECKD DASD decreases for
smaller block sizes. For example, a DASD formatted with a
block size of 512 byte has only half of the net capacity of the same
DASD formatted with a block size of 4096 byte.
- For DASDs that have previously been formatted with the
cdl or ldl disk layout, use the dasdfmt quick
format mode.
- Use the -p option to display
a progress bar.
Example: Assuming that /dev/dasdzzz is
a valid device node for 0.0.b100:# dasdfmt -b 4096 -p /dev/dasdzzz
- Proceed according to your chosen disk layout:
- Depending on the
intended use of each partition, create a file system on the partition
or define it as a swap space.
- Mount each file system to the mount point
of your choice in Linux and
enable your swap partitions.
Example: To mount a file system in a partition
/dev/dasdzzz1 to
a mount point
/mnt and to enable a swap partition
/dev/dasdzzz2 issue:
# mount /dev/dasdzzz1 /mnt
# swapon /dev/dasdzzz2