LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-31-2009, 08:20 PM   #1
piukeman
LQ Newbie
 
Registered: Jun 2007
Posts: 7

Rep: Reputation: 0
Question RAID type 1 or type 0 from the shell


Hello two month ago I learned how to work with LVM. Whatsmore I learned how to create them and install Linux debian or Ubuntu into an LVM without the assistant partitioner I mean: I load the module, I fdisk my disk and, I worked with the lvm tools (pvcreate, vgcreate, lvcreate) and the i started the installation. So I would like to know:

HOW to create a RAID type 1 or 0 but from the command line and with a rescue disk or a live CD and then of course I will install my distro, but that is my problem. Again I want a setup of RAID 1 or 0 how to do it in a console mode so then I can install my favorite distro. I do not want to use the GUI of the distro (debian, fedora, ubuntu, etc). I want to do it on my own.

Is there any good tutorial. Can someone write how to do it ??? I search in google a lot with LVM it was easy but with raid i had no luck... and the one i found it, i did not understand them.


Thanks in advanced piukeman
 
Old 07-31-2009, 09:56 PM   #2
oli
Member
 
Registered: Jun 2007
Location: Australia
Distribution: Centos and Fedora
Posts: 34

Rep: Reputation: 16
There's nothing special required to use mdadm and LVM together. Instead of running LVM directly on your partitions (ie. sda1) you run it on the RAID devices (ie. md1).

Do you want to have something like this?

Code:
DRIVE1-PARTITION1-sda1-\
                        ---md1---pv---vg---lv
DRIVE2-PARTITION1-sdb1-/
 
Old 08-01-2009, 12:44 PM   #3
piukeman
LQ Newbie
 
Registered: Jun 2007
Posts: 7

Original Poster
Rep: Reputation: 0
RAID in LINUX

Quote:
Originally Posted by oli View Post
There's nothing special required to use mdadm and LVM together. Instead of running LVM directly on your partitions (ie. sda1) you run it on the RAID devices (ie. md1).

Do you want to have something like this?

Code:
DRIVE1-PARTITION1-sda1-\
                        ---md1---pv---vg---lv
DRIVE2-PARTITION1-sdb1-/
OK, but i do not know how to make a RAID type 1 or 0. I would like to know the COMMANDS and how to change GRUB, fstab... and all that.

Thanks anywhay
 
Old 08-01-2009, 01:51 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,647

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
mdadm
 
Old 08-01-2009, 11:06 PM   #5
oli
Member
 
Registered: Jun 2007
Location: Australia
Distribution: Centos and Fedora
Posts: 34

Rep: Reputation: 16
mdadm indeed. Check out the examples at the bottom of this page:

http://linux.die.net/man/8/mdadm
 
Old 08-02-2009, 12:18 PM   #6
toroideo
LQ Newbie
 
Registered: Jan 2005
Location: italy
Distribution: fedora, redhat
Posts: 2

Rep: Reputation: 0
There is an excellent step to step tutorial in the LVM HOWTO
Look on LDP web site
 
  


Reply

Tags
raid0, raid1


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Boot Vista Suse 10.2 error setting type of partition to type 82 jmp559 Linux - General 1 05-15-2008 06:40 PM
Warning ___ specifies undefined mime type/service type mbvpixies78 Linux - Software 0 12-29-2007 10:25 PM
installing redhat 8.0 when text login in I cannot type password?? I type root scrist Linux - General 4 04-22-2006 02:20 AM
arrays of elements with [gcc4]array type has incomplete element type lmmix Linux - Software 0 02-26-2005 08:07 AM


All times are GMT -5. The time now is 03:51 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration