Please enable JavaScript.
Coggle requires JavaScript to display documents.
DASD - Coggle Diagram
DASD
Preparing an ECKD type DASD for use
Issue lsdasd to find out if the device is online
If necessary, set the device online using chccwdev
chccwdev -e 0.0.b100
Format the device with the dasdfmt command
dasdfmt -b 4096 -p /dev/dasdzzz
Proceed according to your chosen disk layout
fdasd /dev/dasdzzz
create a file system on the partition or define it as a swap space
Either, create a file system
mkfs.ext4 -b 4096 /dev/dasdzzz1
Mount each file system to the mount point of your choice in Linux and enable your swap partitions
mount /dev/dasdzzz1 /mnt
swapon /dev/dasdzzz2
Device attributes
online
cutype
cmb_enable
devtype
availability
good
boxed
no device
no path
modalias
Preparing an FBA-type DASD for use
Either create a file system
mke2fs -b 4096 /dev/dasdzzy1
Mount the file system to the mount point of your choice in Linux or enable your swap partition
To mount a file system in a partition /dev/dasdzzy1, issue
mount /dev/dasdzzy1 /mnt
To mount a VDISK-backed file system in a partition /dev/dasdzzx1
mount -o discard /dev/dasdzzx1 /mnt
Accessing DASD by force
To read the availability attribute of a DASD
cat /sys/bus/ccw/devices/<device_bus_id>/availability
To force a boxed DASD online, write force to the online device attribute
echo force > /sys/bus/ccw/devices/<device_bus_id>/online
Setting a DASD online or offline
chzdev
chzdev -e dasd 0.0.b100 --active
chccwdev
chccwdev -e 0.0.b100
Enabling the DASD device driver to use the DIAG access method
echo <flag> > /sys/bus/ccw/devices/<device_bus_id>/use_diag
Ensure that the driver is loaded
modprobe dasd_diag_mod
Identify the sysfs CCW-device directory for the device in question and change to that directory
cd /sys/bus/ccw/devices/0.0.b100/
Ensure that the device is offline
echo 0 > online
Enable the DIAG access method for this device by writing '1' to the use_diag sysfs attribute
echo 1 > use_diag
Use the online attribute to set the device online
echo 1 > online
Partitions
fdasd
Supported control unit attached DASD
Supports various disk layouts with different partitioning capabilities
modprobe
/sys/bus/ccw/drivers/dasd-eckd
/sys/bus/ccw/drivers/dasd-fba