This is a discussion on Setting up RAID 1 mirroring on a running remote Linux system within the Getting started tutorials forums, part of the Linux Getting Started category; Howto: Setting up RAID 1 mirroring on a running remote Linux system over ssh connection Caution : Make sure you ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
||||
|
Howto: Setting up RAID 1 mirroring on a running remote Linux system over ssh connection
Caution: Make sure you backup all-important data before using this tutorial. I will be not responsible for data loss But what is a RAID 1? A single hard drive is mirrored i.e. an exact copy is made of the original drive. Thus, it result into the increased fault tolerance and easy data recovery option for single server. Why I am setting a RAID-1 on running system? Old sys admin did not setup RAID -1 at the time of installation. It is true that the best and easy way to setup a RAID 1 is during installation. Simply create RAID software partition and install the system. Nevertheless, it wasn’t done during installation; so I was asked to do so… Procedure Setting up RAID 1 mirroring is easy on running system. Recently we ordered new dedicated hosting server. But they did not setup mirroring for 2 hard disk. My setup was as follows: /dev/hdb (/dev/hdb1 – 40 GB) /dev/hdc (/dev/hdc1 – 40 GB) Each partition has been 40 GB size ext3 formatted (make sure partition id is set to Linux raid auto). RAID tools and software was installed. It is called mdadm. Remember first software device will be /dev/md0, second will be /dev/md1 and so on… You need to type following command to setup /dev/md0: Code:
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/hdb1 /dev/hdc1 Code:
cat /proc/mdstat Code:
watch cat /proc/mdstat Code:
mkfs.ext3 /dev/md0 Code:
mkdir /data2 mount /dev/md0 /data2 Code:
vi /etc/fstab Code:
/dev/md0 /data2 ext3 defaults 0 0 ==> Remote Conversion to Linux Software RAID-1 for Crazy Sysadmins HOWTO http://togami.com/~warren/guides/remoteraidcrazies/ ==> man mdadm Enjoy!!! |
| Sponsored Links | ||
|
|
|
||||
|
Your howto may come in handy one day
__________________
Rocky Jr. You may have my body & soul, but you will never touch my pride! If you have knowledge, let others light their candles at it. Certified to work on HP-UX / Sun Solaris / RedHat |
|
||||
|
Nice, quick, and dirty article.
Just in case any one of you using Windowz XP, see: http://www.informit.com/articles/article.asp?p=474240 |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| smartd on 3ware RAID under Linux | sweta | Linux hardware | 1 | 08-10-2007 08:59 PM |
| Ubuntu server allow tcp Mysql connection from remote system | raj | Databases servers | 3 | 06-12-2007 12:06 AM |
| Difference between Linux RAID 0, RAID 1 and RAID 5 | jerry | Linux software | 3 | 06-26-2006 07:48 PM |
| linux setting system-wide path | Linux software | 1 | 01-28-2006 12:19 PM | |
| remotely running X from other system | ricc | Linux software | 4 | 09-15-2005 12:19 PM |