LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 09-15-2005, 03:04 PM   #1
cdhjrt
Member
 
Registered: Mar 2002
Location: Marysville, WA
Distribution: Redhat, Win2K, Solaris
Posts: 45

Rep: Reputation: 15
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.
 
Old 09-16-2005, 01:03 PM   #2
cdhjrt
Member
 
Registered: Mar 2002
Location: Marysville, WA
Distribution: Redhat, Win2K, Solaris
Posts: 45

Original Poster
Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Offline CD... rajsun Programming 1 09-23-2005 04:17 PM
LQ offline ? floppywhopper LQ Suggestions & Feedback 2 08-31-2005 10:03 AM
Was LQ offline??? power_pole LQ Suggestions & Feedback 4 05-18-2005 08:42 AM
how can i force unmount a busy CD drive mailavj Linux - Software 1 04-04-2005 06:21 PM
How can I force Linux to redetect a CD-ROM Drive mpyusko Linux - Hardware 11 11-09-2003 01:53 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 08:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration