Search
Social Profiles
Twitter Feed
Powered by Squarespace
« New Section Called Random Stuff | Main | Encryption Will Save Us All! »
Sunday
Mar082009

FreeBSD: System Disk Mirroring (Raid1)

I wanted to set up a Raid 1 Mirror of the boot disk on my newly installed FreeBSD system. For some reason I thought this would be hard but in reality it was only a few commands and an edit of the fstab file at the end of the system installation.

All these commands are used as ROOT and could destroy EVERYTHING.

The Following command gives the OS access to the disk.

# sysctl kern.geom.debugflags=17

Then we create the mirror array with the following command.

# gmirror label -vb round-robin gm0 /dev/ad0

We then add a line to the loader so that the mirror kernel module is loaded at boot time.

# echo 'geom_mirror_load="YES"' >> /boot/loader.conf

We have to find each /dev/ad0 entry in the fstab and change it to the mirror device. The original entries would look something like this /dev/ad0s1b. We need to take out each 'ad0' entry and replace it with '/mirror/gm0' as shown below.

/dev/mirror/gm0s1b

We then have to reboot the system to make sure the system will boot from the array.

# reboot

Then finally we add the second disk to the raid array, this will copy the contents of the first disk to the second and keep them synched.

# gmirror insert gm0 /dev/ad2

For more information the FreeBSD Handbook page on RAID1 Mirroring.

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments (15)

ecommerce reliablereplica handbags provide you the finest
ultimategucci handbags of designer handbags appeared at
bag forlouis vuitton ecommerce
replica Chanel this domainlvhave four provide you

September 29, 2010 | Unregistered Commenterwulijun

It sounds wonderful,let me tell you some another amazing news.
Last week,i find my favoraite shop,in this shop,
you can find huge selection of Mont blanc Sunglasses

November 19, 2010 | Unregistered Commenteroppo

Now that you have opened the wow gold cheap World of Warcraft folder, you should see a folder named Interface.cheapest wow gold Open up this folder and you will buying wow gold find the Addons folder. world of warcraft buy gold This is the new home of your addons. buy cheap wow goldThis step is where some addons buy world of warcraft gold require some extra attention.

December 14, 2010 | Unregistered Commenterwowgold

As we have noted before,cheap world of warcraft gold the standard chat interface is not very user-friendly.buying gold world of warcraft One of the ways in which it doesn't work,cataclysm pre-order is that all sorts of different text cataclysm level channels are crammed together into one window. cataclysm levelingThis is particularly unhelpful when you're trying to maintain several different whisper conversations,cataclysm gold as well as talk in your party or guild channel all at the same time.

December 14, 2010 | Unregistered CommenterWER

OnlineShop.LV Online Shop.bags and shoes sales
Shop for the latest Louis Vuitton Online store at our Louis Vuitton online shop

The history of luxury watches is a rich and noble one
///////////
-------------------------

Find Ceramic CHI Flat Irons chi straightener Models Here.


-- lv bags --
<hr />
Buy replica louis vuitton from us louis vuitton replica and get free shipping

February 25, 2011 | Unregistered Commenterlv bags

Beautiful spring clothes should be bright Christian Louboutin and attractive, Manolo Blahnik , temperament off your Herve Leger,has elegance with a comfortable Tory Burch Fitness Zumba DVD,is full of spring vigor on their own
Christian Louboutin Nappa Bootie,Christian Louboutin Ankle Boots,Christian Louboutin Leopard Boots,Christian Louboutin Leopard Print Shoes,Christian Louboutin Python Pumps,Christian Louboutin Yellow Pumps,christian louboutin platform pump,Christian Louboutin Peep Toe Slingback,Christian Louboutin Declic 120 Crescent-toe Pump,christian louboutin very prive pumps,Christian Louboutin Slingback Bow Pump,Christian Louboutin Cathay,Christian Louboutin High Heels,Christian Louboutin Pigalle 120 Patent Pumps,Christian Louboutin Mary Jane Platform,Christian Louboutin Bridal,Christian Louboutin Declic Black,Christian Louboutin Platform Lace Up Bootie,Christian Louboutin Robot,Christian Louboutin Peep Toe Platform,Christian Louboutin thigh high boots,Christian Louboutin over the knee boots,Christian Louboutin Boots,Christian Louboutin Tina Boots,Christian Louboutin Tuba Tall Boots,christian louboutin babel boots,Christian Louboutin Bandage Boots,Christian Louboutin Bourge Boots,Christian Louboutin Bouquet Platform Pumps,Christian Louboutin Dillian Pumps,Christian Louboutin Macarena,Red Bottom Shoes,Christian Louboutin Candy Studded Flats,Christian Louboutin Double Platform Sandal,Christian Louboutin Mary Jane Platform,Christian Louboutin Evening,Christian Louboutin Calypso Pumps,Christian Louboutin D'orsay,Christian Louboutin Alta Nodo,Christian Louboutin Petal Shoes,Christian Louboutin Petal Crepe Satin Sandal,Replica Christian Louboutin Shoes,Christian Louboutin Platform Pumps,Christian Louboutin Platform Espadrille,Christian Louboutin Jeweled Slingback,Christian Louboutin Cut Out Peep-Toe Pump,Christian Louboutin Cutout Bootie,Christian Louboutin Glitter Slingbacks,Christian Louboutin Circus Boots,Christian Louboutin Sample Sale

April 12, 2011 | Unregistered Commenterchristian louboutin

ed hardy womens clothes is a very good coat. For Ed Hardy sale you need not worry, Will give you the lowest price. Choose a ed hardy clearance sale, Ed Hardy Women Shoes is very popular,becauseed hardy women dress shirts is a popular elements with recreational coat. cheap ed hardy accessories online the brand has very famous.I believe you are a supermen,you can also choose some ed hardy mens shirts discount.

July 2, 2011 | Unregistered CommenterEd Hardy Store

our air max sale online store sale cheap air max,you can buy nike air max 2011,nike air max 90,nike air max 2010,nike air max 24-7 on nike air max shop.All the womens air max of first-class quality for sale for you to choose.Our discount air max 2009 sale are popular all over the world with competitive price and best service.Don’t miss buy cheap nike air max online.

July 18, 2011 | Unregistered Commenterling

<p>There are many theories about the beginning of soccer cleats in ancient Greece. The on most widely accepted today is based on the assumption that drama evolved from ritual. The argument for this view goes as follows. In the beginning, human beings viewed the natural soccer cleats indoor forces of the world-even the seasonal changes-as unpredictable, and they sought through various means to control these unknown and feared powers. Those measures which appeared to bring usa nike soccer shoes desired results were then retained and repeated until they hardened into fixed rituals. Eventually stories arose which explained or veiled the mysteries of soccer shoes. as time passed some rituals were abandoned, but the stories, later called myths, persisted and provided material for art and drama. Those who believe that drama evolved out of cheap nike soccer shoes ritual also argue that those rites contained the seed of theater because music, dance, masks, and costumes were almost always used, Furthermore, a suitable site had to be provided cheapest soccer cleats for performances and when the entire community did not participate, a clear division was usually made between the acting area and the auditorium. In addition, there were performers, soccer cleats stores, since considerable importance was attached to avoiding mistakes in the enactment of rites, religious leaders usually assumed that task. Wearing masks and man soccer shoes, they often impersonated other people, animals, or supernatural beings, and mimed the desired effect-success in hunt or battle, the coming rain, the revival of the Sun-as coolest soccer cleats might. Eventually such dramatic representations were separated from religious activities. another theory traces the theater's origin from the human interest in adidas f50 tunit boots. according to this vies tales (about the hunt, war, or other feats) are gradually elaborated, at first through the use of impersonation, action, and dialogue by a narrator and then through the assumption of each of adidas f50 boots by a different person.
soccer cleat
discount soccer cleats
nike ctr 360 maestri
</p>
<p align="center"></p>

LJP

October 26, 2011 | Unregistered Commentersoccer shoes

<p>Well, I went in and sat down on the edge of a chair, and wished UGG bailey button were in Europe, and the man at the table did not look up. He was one of the world’s greatest men, and was made great by one single rule. Oh, that all the young people of Philadelphia were before me now and bailey button UGG Boots 5803 could say just this one thing, and that they would remember it. discount UGG Boots would give a lifetime for the effect it would have on our city and on civilization. abraham Lincoln’s principle for greatness can be adopted by nearly all. This was his rule: Whatsoever UGG classic cardy Boots had to do at all, he put his whole mind in to it and held it and held it all there until that was all done. That makes men great almost anywhere. Women's UGG Boots stuck to those papers at that table and did not look up at me, and I sat there trembling. Finally, when UGG classic short Boot put the string around his papers, he pushed them over to one side and looked over at me, and a smile came over his worn face. after I had gotten out I could not realize I had seen the President of the United States at all. But a few days later, when still in the city, I saw buy UGG Boots online pass through the East Room by the coffin of abraham Lincoln, and when I looked at the upturned UGG classic tall Boots of the murdered President I felt then that the man I had seen such a short time before, who, so simple a man, so plain a man, UGG Boots clearance was one of the greatest men that God ever raised up to lead a nation on to ultimate liberty. UGG Boots sundance was called the other day to the history of a very little thing that made the fortune of a very poor man. It was an awful thing, and yet because of that experience he-not a great inventor or genius-invented the pin that now UGG Boots roxy tall is called the safety-pin, and out of that safety-pin made the fortune of one of the great aristocratic families of this nation.</p>
<p>UGG Boots store</p>
<p>authentic UGG Boots</p>
<p>UGG Boots On Sale</p>
<p align="center"></p> ZXJ

October 27, 2011 | Unregistered CommenterUGG Boots On Sale

Actually, a number of people in Washington were surprised that louis vuitton sale was invited to speak here -- and even more surprised when I accepted the invitation. In honor of our meeting, I have asked Dr. Falwell, as your Chancellor, to permit all the students an extra hour next Saturday night before curfew. And in return, louis vuitton online store have promised to watch the Old Time Gospel Hour next Sunday morning. I am mindful of that counsel. I am an American and a Catholic; I love my country and treasure my faith. But lv store do not assume that my conception of patriotism or policy is invariably correct, or that my convictions about religion should command any greater respect than any other faith in this pluralistic society. I believe lv online outlet surely is such a thing as truth, but who among us can claim a monopoly on it? To many Americans, that pledge was a sign and a symbol of a dangerous breakdown in the separation of church and state. Yet this principle, as vital as louis vuitton online outlet is, is not a simplistic and rigid command. Separation of church and state cannot mean an absolute separation between moral louis vuitton luggage outlet uk and political power. The challenge today is to recall the origin of the principle, to define its purpose, and refine its application to the politics of the present. louis vuitton outlet cannot be excluded from every public issue; but not every public issue involves religious values. And how ironic louis vuitton factory is when those very values are denied in the name of religion. For example, we are sometimes told that Louis Vuitton Handbag is wrong to feed the hungry, but that mission is an explicit mandate given to us in the 25th chapter of Matthew. The nuclear freeze does not require that we trust the Russians, but demands full and effective verification. Louis Vuitton Belt does not concede a Soviet lead in nuclear weapons, but recognizes that human beings in each great power already have in their fallible hands. ZXJ

December 3, 2011 | Unregistered Commenterlouis vuitton belt

I did’t know that. term paper help

December 12, 2011 | Unregistered CommenterNike

Hey
Coach Outlet Online Storeis a well
Coach Factory Store Online
known brandCoach Outlet all over the world.
From 1941Coach Factory Online when it was founded, Coach Outlet Store Onlineit has
Coach Factory Outlet Store
seized theCoach Purses Outlet Online hearts of thousands of Coach Bag and purse fans.
Coach Outletgained the reputation
for itsCoach Bags fashionable style and signature materials.Coach Outlet Store Online In the very beginning, Coach Factory Outletwas
Coach Factory Outlet Online
a familyCoach Factory Online owned business run by Cheap Coach Purses masters making Manhattan Coach Factory Outlet Online Today, it has lots and lots of coach outlet stores globally.
Coach Outlet Online outlet online websites,
you could find Coach Outlet Store purses and Coach Outlet Couponwallets at discounted prices and, you also get 80% off retail coach products.
Coach Outlet Store Onlinealthough sold at low price, are guaranteed to be genuine and not counterfeited and best quality.

December 26, 2011 | Unregistered CommenterCoach Outlet

Cool thing! thanks for sharing. I have never heard about ********! essay help

January 8, 2012 | Unregistered CommenterHider

Great analysis essay writing help

January 8, 2012 | Unregistered CommenterGor

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>