Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


How to create a mirrored root ?

Posted on 2009-04-22
Medium Priority
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
  • 2

Expert Comment

ID: 24203265

Accepted Solution

joules17 earned 1000 total points
ID: 24221789
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

ID: 31573181
Thanks :-)

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) 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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

564 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