Removing a DCSS device

6.10 z/VM guest

Use the remove sysfs attribute to remove a DCSS from Linux®.

Before you begin

A DCSS device can be removed only when it is not in use.

Procedure

You can remove the DCSS or set of DCSSs that are represented by a DCSS device from your Linux system by issuing a command of this form:
# echo <dcss-name> > /sys/devices/dcssblk/remove 
where <dcss-name> is the DCSS name that represents the DCSS device.

Example

To remove a DCSS device that is represented by the DCSS name MYDCSS issue:
# echo MYDCSS > /sys/devices/dcssblk/remove 

What to do next

If you have created your own device nodes, you can keep the nodes for reuse. Be aware that the major number of the device might change when you unload and reload the DCSS device driver. When the major number of your device has changed, existing nodes become unusable.