Switching root drives around

From: Tom Grassia (tgrassia@sfnewmexican.com)
Date: Fri Feb 04 2005 - 14:14:15 EST


Hello,

Now that I have a D1000 up and running, I'm looking to do a ton of disk
cleanup. The most major part of this is as follows:

One one of our systems, SDS is showing a single disk as a submirror of a
mirror. That single disk is in "Last Erred" mode, and format is showing it
to be well and nigh screwed. It also happens to be our root drive.

I have no idea why; the OS is running. We've even rebooted the server many
times, and yet it runs. I always thought if you had no valid submirrors
for a mirror; that's all she wrote. Anyhow, the first thing I've done is
set two drives from the D1000 in to be attached to that mirror in SDS. The
drives have resynced, and seem to hold the data. Now here comes the question:

I'd like to take those drives out of the D1000 and get them into the two
internal bays on the U2. Will anything special need to be done to those
drives to let the server boot from them? Should I only put one drive in
the c0t0d0 bay and then boot the machine? Should I put a blank drive in
c0t0d0 and then try to do a metareplace with the other two drives still in
the D1000?

On a related note...the mirror in question is 2G. I've bought 9G drives
since the disk usage is at 86%, but I realize I can't do growfs on a root
partition. Is there any way I can get this to jack up to nine gigs? I'm
getting rid of the smallest disk on the submirror. Do I need to create a
new root mirror, or something? Any suggestions would be appreciated. I'd
like to do this without having to go to tape (because who ever says
'hey! I really want to go to tape") but I can if necessary.

Here's what metastat shows for the mirror in question:

d0: Mirror
     Submirror 0: d1
       State: Needs maintenance
     Submirror 1: d41
       State: Okay
     Submirror 2: d42
       State: Okay
     Pass: 1
     Read option: roundrobin (default)
     Write option: parallel (default)
     Size: 6330960 blocks

d1: Submirror of d0
     State: Needs maintenance
     Invoke: after replacing "Maintenance" components:
                 metareplace d0 c0t0d0s0 <new device>
     Size: 6330960 blocks
     Stripe 0:
         Device Start Block Dbase State Hot Spare
         c0t0d0s0 0 No Last Erred
     Stripe 1:
         Device Start Block Dbase State Hot Spare
         c0t0d0s7 0 No Okay

d41: Submirror of d0
     State: Okay
     Size: 15487983 blocks
     Stripe 0:
         Device Start Block Dbase State Hot Spare
         c3t0d0s0 0 No Okay

And PS, which drive is c0t0d0 in a U2? Is it the first or second from the
front of the system?

Thank you,

--Tom
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:30:07 EDT