> What I want to do is to add a second disk to my host
> for redundancy - it needs to be able to boot the
> system as well or any other host I install it into.
> Currently it is hanging off my system in a USB
>  caddy.

I just did this, after installing osol-0906-x86, following
the instructions here:

http://darkstar-solaris.blogspot.com/2008/09/zfs-root-mirror.html

In my case, the system had two identical internal disks attached
to a SATA controller.  Here's how it went:

o Label second mirror side
    mills at amd:~$ prtvtoc /dev/rdsk/c8d0s2 | fmthard -s - /dev/rdsk/c9d0s2
    fmthard:  New volume table of contents now in place.

o Attach second side
    mills at amd:~$ zpool attach rpool c8d0s0 c9d0s0
    invalid vdev specification
    use '-f' to override the following errors:
    /dev/dsk/c9d0s0 overlaps with /dev/dsk/c9d0s2
    mills at amd:~$ zpool attach -f rpool c8d0s0 c9d0s0
    Please be sure to invoke installgrub(1M) to make 'c9d0s0' bootable.
    mills at amd:~$ zpool status
      pool: rpool
     state: ONLINE
    status: One or more devices is currently being resilvered.  The pool will
            continue to function, possibly in a degraded state.
    action: Wait for the resilver to complete.
     scrub: resilver in progress for 0h0m, 13.09% done, 0h2m to go
    config:

            NAME        STATE     READ WRITE CKSUM
            rpool       ONLINE       0     0     0
              mirror    ONLINE       0     0     0
                c8d0s0  ONLINE       0     0     0
                c9d0s0  ONLINE       0     0     0  730M resilvered

    errors: No known data errors
    mills at amd:~$ installgrub -m /boot/grub/stage1 /boot/grub/stage2 
/dev/rdsk/c9d0s0
    Updating master boot sector destroys existing boot managers (if any).
    continue (y/n)?y
    stage1 written to partition 0 sector 0 (abs 16065)
    stage2 written to partition 0, 271 sectors starting at 50 (abs 16115)
    stage1 written to master boot sector
    mills at amd:~$ zpool status
      pool: rpool
     state: ONLINE
     scrub: resilver completed after 0h4m with 0 errors on Thu Oct 22 16:31:18 
2009
    config:

            NAME        STATE     READ WRITE CKSUM
            rpool       ONLINE       0     0     0
              mirror    ONLINE       0     0     0
                c8d0s0  ONLINE       0     0     0
                c9d0s0  ONLINE       0     0     0  5.47G resilvered

    errors: No known data errors
  o Boots correctly with GRUB now
-- 
This message posted from opensolaris.org

Reply via email to