Device in use checking and Solaris Volume Manager
By Juergens-Oracle on Oct 23, 2006
On Solaris 10 with the kernel update patch 118833-17 the "Device in use checking feature" was introduced. The patch 118833-17 is also included with Solaris 10 06/06 aka Update2.
Actually the feature was introduced in 118833-04. But the patches 118833-04 until 118833-16 went never to SunSolve.
If you use format command to repartition a disk drive which is part of a metaset you can get a messages like:
Error occurred with device in use checking: No such device
Error occurred with device in use checking: Permission denied
/dev/dsk/cXXXXXXX is part of SVM volume diskset:XXX. Please see metaclear(1M).
/dev/dsk/cXXXXXXX contains an SVM mdb. Please see metadb(1M).
and maybe you are not able to label the disk.
To prevent these messages and to label the disk successfully you should set the shell variable NOINUSE_CHECK=1 .