LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Suse/Novell (http://www.linuxquestions.org/questions/suse-novell-60/)
-   -   How to Setup Raid 1 Opensuse 11.1? (http://www.linuxquestions.org/questions/suse-novell-60/how-to-setup-raid-1-opensuse-11-1-a-947166/)

nsic 05-27-2012 09:46 PM

How to Setup Raid 1 Opensuse 11.1?
 
Hi everyone do anyone here knows how to setup raid 1 on opensuse 11.1 . I just cant' find tutorial for this one. Thanks.

custangro 05-28-2012 02:51 PM

Quote:

Originally Posted by nsic (Post 4689111)
Hi everyone do anyone here knows how to setup raid 1 on opensuse 11.1 . I just cant' find tutorial for this one. Thanks.

I assume you mean "software RAID"...

I think you can just used the mdadm commands...

Something like this:

Create the software raid using the "mdadm" command
Code:

root@host# mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb1 /dev/sdc1
Confrim with either...
Code:

root@host# cat /proc/mdstat
**OR**
Code:

root@host# mdadm --verbose /dev/md0
You have to wait until it's "ready"

Now (as with any disks...logical or not); you need to format
Code:

root@host# mkfs.ext4 /dev/md0
You can now "mount" it just like any other disk
Code:

root@host# mount /dev/md0 /data
To keep it persistem upon reboots; you must edit the correct files...
Code:

root@host# cat /etc/fstab
          /dev/md0      /data  ext4    defaults        0      0
root@host# cat /etc/mdadm.conf
          ARRAY        /dev/md0        devices=/dev/sdb1,/dev/sdc1

Googled "mdadm OpenSUSE 11" and found this: http://youtu.be/0_dxuk7LZgY

nsic 05-28-2012 09:10 PM

Thanks Custangro. yes I mean software raid. I'll try the link and post feedback later.


All times are GMT -5. The time now is 10:11 PM.