[OpenIndiana-discuss] getting over my head on rpool mirror

Harry Putnam reader at newsguy.com
Sun Aug 3 19:42:49 UTC 2014


I've created rpool mirrors before as a practice on vbox oi guests but
now, on different hardware where its the real deal this time, I'm
running into things I didn't have to deal with before.

Setup: oi 151_9 running on HP xw8600 2x cpu (5470)

First I'll show what fdisk sees on each disk.  Perhaps I made a
mistake during install when I selected to use the whole disk for
install?

Here is the linup:
format:

AVAILABLE DISK SELECTIONS:

,----
| These are the two for rpool:
|        0. c0d0 <Unknown-Unknown-0001 cyl 30398 alt 2 hd 255 sec 63>
|           /pci at 0,0/pci-ide at 1f,2/ide at 0/cmdk at 0,0
|        1. c0d1 <Unknown-Unknown-0001 cyl 30398 alt 2 hd 255 sec 63>
|           /pci at 0,0/pci-ide at 1f,2/ide at 0/cmdk at 1,0
`----
       2. c1d0 <Unknown-Unknown-0001 cyl 60797 alt 2 hd 255 sec 126>
          /pci at 0,0/pci-ide at 1f,2/ide at 1/cmdk at 0,0
       3. c1d1 <Unknown-Unknown-0001 cyl 60797 alt 2 hd 255 sec 126>
          /pci at 0,0/pci-ide at 1f,2/ide at 1/cmdk at 1,0

select 0:

fdisk

             Total disk size is 30401 cylinders
             Cylinder size is 16065 (512 byte) blocks

                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ===
          1       Active    Solaris2          1  30400    30400    100

-------       -------       ---=---       -------       -------
-------       -------       ---=---       -------       ------- 

select 1:

fdisk

             Total disk size is 30401 cylinders
             Cylinder size is 16065 (512 byte) blocks

                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ===
          1       Active    Solaris2          1  30400    30400    100


-------       -------       ---=---       -------       ------- 
-------       -------       ---=---       -------       -------

So, I'm thinking they are setup the same.  But maybe that is not what
the above ouput shows because:

Trying 

zpool attach rpool c0d0 c1d0
cannot label 'c1d0': EFI labeled devices are not supported on root
pools.

OK, doing a little research with google I hit on this:
https://community.oracle.com/thread/2321898?tstart=0

Which gives these steps to fix it:

  1. Get VTOC c0d0
  prtvtoc /dev/rdsk/c0d0s0

  2. Create same slice on c0d2. Use format or
  prtvtoc /dev/rdsk/c0d0s0| fmthard -s - /dev/rdsk/c0d2s0

  3. Attach slice.
  zpool attach -f rpool c0d0s0 c0d2s0

First, let me ask where the mysterious appended `s0' came from?  I
guess it means slice number 0?

But anyway, going thru the steps I hit more troubles:


Went smooth until arriving at step 3.  And note that after running  step 2: 
   prtvtoc /dev/rdsk/c0d0s0| fmthard -s - /dev/rdsk/c0d1s0

I checked both disks vtoc with `prtvtoc $disk' on each disk.  The output
looks identical.  And I inspected pretty closely.

  # zpool attach rpool c0d0s0 c0d1s0
  invalid vdev specification
  use '-f' to override the following errors:
  /dev/dsk/c0d1s0 overlaps with /dev/dsk/c0d1s2

So, is it wise to use the -f flag and override the mismatch?




More information about the openindiana-discuss mailing list