How to create a mirrored root ?

Posted on 2009-04-22
Last Modified: 2013-12-27
Below is the steps I documented to try, please let me know if any change is required,

System specification:
Need to boot system from d10 metadevice
The / (root) is on c0t0d0s0 and d12 volume has created

Need to create a mirrored volume called d10 consisting of current / (root) and d12. Please let me know if the commands are in right sequence. Thanks!
metainit -f d11 1 1 c0t0d0s0

metainit d10 -m d11

metainit d10 1 1 d12

metaroot d10

metaattach d10 d12

Open in new window

Question by:beer9
    LVL 4

    Expert Comment

    LVL 40

    Expert Comment

    LVL 4

    Accepted Solution

    do the following steps

    cp -p /etc/system /etc/system.orig."date"
    cp -p /etc/vfstab /etc/vfstab.orig."date"
    metadb -f -a -c3 c?t?d?s6 (available free slice)
    metadb -a -c3 c?t?d?s6 (Slice 6 on rootmirror)
    metainit -f d11 1 1 c?t?d?s?
    metainit d12 1 1 c?t?d?s?
    metainit d0 -m d11
    metaroot d0
    check vfstab
    metattach d0 d12 ( mirroring)


    Author Closing Comment

    Thanks :-)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
    FreeBSD on EC2 FreeBSD ( is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    Video by: Phil
    This video goes over how to configure and start a jail in FreeBSD.  This video is meant to supplement the article included with this course.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now