LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-02-2011, 05:23 AM   #1
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Rep: Reputation: 47
about software raid


I got two harddisks, sda and sdb. Is it possible to install Debian root into software raid partitions sda2 and sdb1 leaving all other partitions 'normal' (not-raid)?

do partitions sda2 and sdb1 need to be exact same size and position?
 
Old 03-02-2011, 05:51 AM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Hi,

from the manpage:
Quote:
Normally when an array is built the "size" it taken from the smallest of the drives.
As for the 'normal' other partitions it should be no problem.
However, you will have to use a separate, normal /boot partition.

Here is some more info on raid:
http://tldp.org/HOWTO/Software-RAID-HOWTO.html
 
Old 03-02-2011, 06:10 AM   #3
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Original Poster
Rep: Reputation: 47
thanks, I got another question. would it be possible to move existing Debian installation into raid?
(for eg. sda2 has 100% Debian root, I'd like it to move 50% to sdb1)
 
Old 03-02-2011, 04:50 PM   #4
brian-va
Member
 
Registered: Dec 2009
Distribution: Debian
Posts: 46

Rep: Reputation: Disabled
You may be able to use the dd command to copy it over, but like crts said you would need a separate /boot partition.
Just be careful, the dd command is powerful and can end up bitting you (data loss).
Might be easier to just reinstall; creating the array during the install isn't too difficult.
 
Old 03-02-2011, 06:27 PM   #5
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Quote:
Originally Posted by qrange View Post
thanks, I got another question. would it be possible to move existing Debian installation into raid?
(for eg. sda2 has 100% Debian root, I'd like it to move 50% to sdb1)
This is a step-by-step instruction for an existing Debian installation to RAID:
http://www200.pair.com/mecham/raid/r...aded-etch.html

You are free as which partitions to RAID or not. A RAIDed partition is accessed an md[0-n] whereas a non-RAIDed partion is simply sda[1-n] or so. In Debian (and perhaps others) booting from RAID1 is perfectly safe. The RAID driver is included in initrd.

jlinkels
 
1 members found this post helpful.
  


Reply



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
LXer: How To Resize RAID Partitions (Shrink & Grow) (Software RAID) LXer Syndicated Linux News 1 05-01-2009 12:02 PM
LXer: Benchmarking hardware RAID vs. Linux kernel software RAID LXer Syndicated Linux News 0 07-15-2008 03:50 PM
Adding an old software-RAID array to a software-RAID installation.. Boot problems GarethM Linux - Hardware 2 05-05-2008 03:16 PM
Will a ex - Software Raid 1 disk boot without Raid software? carlosruiz Linux - Software 0 05-27-2006 01:12 PM
moving system from ide software raid to new box with scsi raid ftumsh Linux - General 0 10-28-2003 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:35 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration