Skip to content

Instantly share code, notes, and snippets.

@rlaager rlaager/gist:6313891
Created Aug 22, 2013

Embed
What would you like to do?
OpenIndiana rpool mirror setup
# In this example, c7t0d0 is the existing rpool disk and c7t1d0 is the second disk.
# Add a default partition map on the new drive.
fdisk -B c7t1d0p0
# Copy the disk label from the first disk to the second:
prtvtoc /dev/rdsk/c7t0d0s0 | fmthard -s - /dev/rdsk/c7t1d0s0
# Attach the second disk to the root pool:
zpool attach rpool c7t0d0s0 c7t1d0s0
# You will get an error about overlapping. If you get another error, stop. Otherwise:
zpool attach -f rpool c7t0d0s0 c7t1d0s0
# Check that the disk is resilvering, and wait until it's done.
zpool status rpool
# Install grub on the second disk so it's bootable.
installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c7t1d0s0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.