Removing an LCS group device

Red Hat Enterprise Linux 9.2 LPAR mode z/VM guest

Use the ungroup attribute to remove an LCS group device.

Before you begin

The device must be set offline before you can remove it.

Procedure

To remove an LCS group device, write 1 to the ungroup attribute.
Issue a command of the form:
echo 1 > /sys/bus/ccwgroup/drivers/lcs/<device_bus_id>/ungroup 

Example

This command removes device 0.0.d000:
echo 1 > /sys/bus/ccwgroup/drivers/lcs/0.0.d000/ungroup