LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 07-31-2009, 09:20 PM   #1
piukeman
LQ Newbie
 
Registered: Jun 2007
Posts: 7
Thanked: 0
Question RAID type 1 or type 0 from the shell


[Log in to get rid of this advertisement]
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
piukeman is offline  
Tag This Post ,
Reply With Quote
Old 07-31-2009, 10:56 PM   #2
oli
Member
 
Registered: Jun 2007
Location: Australia
Distribution: Centos and Fedora
Posts: 34
Thanked: 2
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-/
oli is offline     Reply With Quote
Old 08-01-2009, 01:44 PM   #3
piukeman
LQ Newbie
 
Registered: Jun 2007
Posts: 7
Thanked: 0

Original Poster
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
piukeman is offline     Reply With Quote
Old 08-01-2009, 02:51 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 1,550
Thanked: 74
mdadm
AlucardZero is offline     Reply With Quote
Old 08-02-2009, 12:06 AM   #5
oli
Member
 
Registered: Jun 2007
Location: Australia
Distribution: Centos and Fedora
Posts: 34
Thanked: 2
mdadm indeed. Check out the examples at the bottom of this page:

http://linux.die.net/man/8/mdadm
oli is offline     Reply With Quote
Old 08-02-2009, 01:18 PM   #6
toroideo
LQ Newbie
 
Registered: Jan 2005
Location: italy
Distribution: fedora, redhat
Posts: 2
Thanked: 0
There is an excellent step to step tutorial in the LVM HOWTO
Look on LDP web site
toroideo is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 07:40 PM
Warning ___ specifies undefined mime type/service type mbvpixies78 Linux - Software 0 12-31-2007 07:44 AM
installing redhat 8.0 when text login in I cannot type password?? I type root scrist Linux - General 4 04-22-2006 03:20 AM
arrays of elements with [gcc4]array type has incomplete element type lmmix Linux - Software 0 02-26-2005 09:07 AM


All times are GMT -5. The time now is 08:00 AM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration