Setting Up RAID 1 Mirroring on a Running Remote Linux System over Ssh Connection
Alert: Make sure you reinforcement exceptionally significant information prior to utilizing this instructional exercise. I will be not answerable for information misfortune
In any case, what is a RAID 1?
A solitary hard drive is reflected for example a precise is made of the first drive. Along these lines, it results into the expanded adaptation to non-critical failure and simple information recuperation alternative for single worker.
Old sys administrator did not arrangement RAID – 1 at the hour of establishment. The facts demonstrate that the best and simple approach to arrangement a RAID 1 is during establishment. Basically make RAID programming allotment and introduce the SSH Client. All things considered, it wasnâEURTMt done during establishment; so I was approached to do soâEUR¦
System
Setting up RAID 1 reflecting is simple on running framework. As of late we requested new committed facilitating worker. Be that as it may, they did not arrangement reflecting for 2 hard plates. My arrangement was as per the following:
/dev/hdb /dev/hdb1 âEUR 40 GB
/dev/hdc /dev/hdc1 âEUR 40 GB
Each segment has been 40 GB size ext3 arranged ensure parcel id is set to Linux assault auto.
Assault devices and programming was introduced. It is called mdadm.
Recollect first programming gadget will be/dev/md0, second will be/dev/md1 thus onâEUR¦
You need to type following order to arrangement/dev/md0:
Code:
mdadm – make/dev/md0 – level=1 – assault devices=2/dev/hdb1/dev/hdc1
You can see status, strength of/dev/md0 at/proc/mdstat. Type the accompanying order:
Code:
feline/proc/mdstat
Better uses watch order to invigorate it naturally:
Code:
watch feline/proc/mdstat
Organization/dev/md0 as ext3 fs:
Code:
mkfs.ext3/dev/md0
Mount/dev/md0 at/data2 registry:
Code:
Mkdir/data2
Mount/dev/md0/data2
Remember to add/dev/md0 to/and so forth/fstab:
Code:
vi/and so forth/fstab
Attach following content:
Code:
/dev/md0/data2 ext3 defaults 0