Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
You are going to configure RAID1 morror volume based on software.
There are 2 utilities avalible to accompalish this.
1. mdadm which in inbuilt tool with redhat and fedora systems.
2. raidtools third party tool to configure software based raid.
I recommend you to use mdadm, beacuse it is easy to configure and stable.
I assume that you have two hdds like sda and sdb
create exactly same new partitions on both hdds. so it will come to dda3 and sdb3 .
next go to fdisk tool and change partition id of both new partitions to fd.
fd stands for raid autodetect.
Now make RAID1 (morrored ) array of thesetwo partitions.
use following command to do it.
#mdadm -v -C /dev/md0 -l1 -n2 /dev/sda3 /dev/sdb3
This command will create a RAID1 mirrored array called /dev/md0.
Then create filesystem on RAID array.
Now RAID1 array is created and is functioning properly. You can mount it now.
#mount /mnt/dir1 /dev/md0
Now whatever data you write in /mnt/dir1 directory will be written on RAID1 array.
To test RAID is created successfully, run following command.
#mdadm -D /dev/md0
Now create a directory /data in which we will mount /dev/md0 RAID1 array.
Above command will create filesystem on it.
Then add this entry in the /etc/fstab file to start morror after rebooting.