How to use cfgadm configure in solaris


The Solaris cfgadm command can be used to configure system devices. This comes is very useful for displaying the status of the devices. To get a complete list of devices and their status use the cfgadm command as follows:

cfgadm -alv

This will produce a complete list. Including disks and usb devices. Then using Solaris ZFS having control over configuring and unconfiguring disks is very useful since ZFS can sometimes have trouble working with disks. On occasion an unconfigured disk can give your zpool trouble. To configure a disk for example, in solaris using the cfgadm output above select your device then perform:

cfgadm -c configure c1::dsk/c1t1d0

This sets a disk into configured status. Alternatively, one may want to set a disk to unconfigured mode to eliminate variables when debugging.

cfgadm -c unconfigure c1::dsk/c1t1d0

The cfgadm command is a great tool in solais that can allow you to manipulate system devices. And is very useful for debugging.