Created
August 22, 2013 23:12
-
-
Save rlaager/6313891 to your computer and use it in GitHub Desktop.
OpenIndiana rpool mirror setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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