LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Force drive offline (https://www.linuxquestions.org/questions/solaris-opensolaris-20/force-drive-offline-363691/)

cdhjrt 09-15-2005 03:04 PM

Force drive offline
 
Good day.

I am trying to simulate a drive going bad by forcing it off line. I need to do this to test our disk mirror replacement/disaster recovery procedures.

Hardware: V210
OS is mirrored Metadevices on both disks.

When I try the command :

# cfgadm -f -c unconfigure c1::dsk/c1t1d0

I get

cfgadm: Component system is busy, try again: failed to offline:
Resource Information
------------------ -------------------------------------
/dev/dsk/c1t1d0s0 component of concat "/dev/md/dsk/d12"
/dev/md/dsk/d12 submirror of "/dev/md/dsk/d10"
/dev/md/dsk/d10 mounted filesystem "/"
/dev/dsk/c1t1d0s3 contains metadb(s)
/dev/dsk/c1t1d0s4 contains metadb(s)

If anybody knows how to force the disk to go offline without pulling it please let me know.

Thanks in advance.

cdhjrt 09-16-2005 01:03 PM

I answered my own question. The drive does not go down but the metadevice fails which is what I wanted.

use format, pick the drive to fail and change the layout so everything is on slice 7.
When you newfs slice 7 the metadevice fails.

Thanks for all who read this.


All times are GMT -5. The time now is 01:07 PM.