compared with
Current by Jakob Borg
on Mar 15, 2013 07:33.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (6)

View Page History
{noformat}

Let's apply a Solaris fdisk partition to the 2nd disk first:
With that gone, we can turn the zones pool into a mirror.

{noformat}
[root@00-1b-21-98-51-c1 ~]# fdisk -B c1t1d0p0
{noformat}

Now print the vtoc of the lone zones pool disk:
{noformat}
[root@00-1b-21-98-51-c1 ~]# prtvtoc /dev/rdsk/c1t0d0p0
* /dev/rdsk/c1t0d0p0 partition map
*
* Dimensions:
* 512 bytes/sector
* 488397168 sectors
* 488397101 accessible sectors
*
* Flags:
* 1: unmountable
* 10: read-only
*
* Unallocated space:
* First Sector Last
* Sector Count Sector
* 34 222 255
*
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
0 4 00 256 488380495 488380750
8 11 00 488380751 16384 488397134
{noformat}

Okay, now apply that vtoc to the 2nd zones pool disk:
{noformat}
[root@00-1b-21-98-51-c1 ~]# prtvtoc /dev/rdsk/c1t0d0p0 | fmthard -s - /dev/rdsk/c1t1d0p0
{noformat}

Verify if the vtoc of disk 2 matches disk 1 *very important* :
{noformat}
[root@00-1b-21-98-51-c1 ~]# prtvtoc /dev/rdsk/c1t1d0p0
* /dev/rdsk/c1t1d0p0 partition map
*
* Dimensions:
* 512 bytes/sector
* 488397168 sectors
* 488397101 accessible sectors
*
* Flags:
* 1: unmountable
* 10: read-only
*
* Unallocated space:
* First Sector Last
* Sector Count Sector
* 34 222 255
*
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
0 4 00 256 488380495 488380750
8 11 00 488380751 16384 488397134
{noformat}

Perfect, the vtoc matched so on to turn the zones pool into a mirror.
This IMHO is imperative for a type 1 hypervisor such as SmartOS since it's running entirely off of a ramdisk\!

{noformat}

The elapsed time it took to resilver seems like a bug which I'll report on irc (#smartos on freenode)
Resilvering the newly attached disk completes quite quickly at this point, since there is very little data on it.

I went for a reboot to verify if the system would come up properly.

h3. The verdict

I feel the migration was a success\!
Since the migration I've setup a couple of zones for mail and irc and will be installing several more.