Error running chdev

You may see this error when running the chdev command:

Method error (/usr/lib/methods/chgdisk):
          0514-047 Cannot access a device.

The device is currently in use. Shut down all processes accessing the device.