LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-04-2007, 01:06 PM   #1
StargateSteve
Member
 
Registered: Dec 2006
Location: UNM
Distribution: Debian Lenny
Posts: 107

Rep: Reputation: 15
Debian Etch RC1 - RAID 1 question


I just set up my box to use software RAID 1 accross two SATA II drives. More of a question than a problem:

When I set up the RAID in the installer, I told it to set up the drives like so (the partition sizes are close):

/dev/sda2 RAID device 150 MB
/dev/sda3 RAID device 107.5 GB
/dev/sda1 Windows ~ 40 GB

/dev/sdb1 RAID device 150 MB
/dev/sdb2 RAID device 107.5 GB
/dev/sdb3 SWAP 16GB

/dev/md0 ext3 /boot 150 MB RAID 1 sda2, sdb1
/dev/md1 ext3 / 107.5 GB RAID 1 sda3, sdb2


Here's the confusing part:

when I boot up the system and run mdadm --detail /dev/md1, it turns out that only one partition is 107.5 GB, the other is something like 100 GB, and md1 is 104 GB (the avarige size of the RAID partitions). Is this bad? I only have experience with RAID on RHEL boxes, and the partitions there were always the same size.

edit: the same thing happened to /dev/md0, but it's only off by a few MB. I also installed the Windows partition before linux, and am upgrading from FC4.

Even if this isn't a big problem, is it possible, and if so, how do I make the partitions the same size, apart from blowing away sdb, and re-writing all of the data?

thanks!

Last edited by StargateSteve; 01-04-2007 at 01:07 PM.
 
Old 01-05-2007, 04:38 AM   #2
SirYes
LQ Newbie
 
Registered: Jan 2007
Location: Lodz, POLAND
Distribution: Debian 4.0, Ubuntu 6.10, Gentoo 2006.1 (x86/amd64)
Posts: 4

Rep: Reputation: 0
The problem may come from different cluster size, because it looks like one of your disks is bigger than the other. You can check if this is the case and see exact number of clusters allocated for each partition by running:
Code:
# fdisk -l
Then again, you might try to use
Code:
# cfdisk
to resize your (unmounted) partitions, preferably using a LiveCD of some sort.
 
Old 01-05-2007, 09:00 AM   #3
StargateSteve
Member
 
Registered: Dec 2006
Location: UNM
Distribution: Debian Lenny
Posts: 107

Original Poster
Rep: Reputation: 15
the disks are exactly the same size, just one of them has some unpartitioned space.

thanks, I think I'll try cfdisk.

the confusing thing is that I used FC4 on this exact same setup, but the partitions came out to be the same size.
 
Old 01-07-2007, 04:12 AM   #4
SirYes
LQ Newbie
 
Registered: Jan 2007
Location: Lodz, POLAND
Distribution: Debian 4.0, Ubuntu 6.10, Gentoo 2006.1 (x86/amd64)
Posts: 4

Rep: Reputation: 0
Better yet, try using "gparted" or "qtparted" instead. They are much more user-friendly and work decently well (I used "gparted" several times with great success). I know 100% that Ubuntu LiveCD contains "gparted", while Kubuntu LiveCD should probably contain "qtparted".

Hope this helps.
 
Old 01-08-2007, 08:26 AM   #5
StargateSteve
Member
 
Registered: Dec 2006
Location: UNM
Distribution: Debian Lenny
Posts: 107

Original Poster
Rep: Reputation: 15
yep. I used gparted. everything is now working. thanks.
 
  


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
Promise SX8300/4300 sata2 raid in Debian (etch x64 smp kernel 2.6.16) NEO^AMiGA Linux - Hardware 3 11-01-2009 05:31 PM
LXer: Debian-Installer etch RC1 Screenshot Walkthrough LXer Syndicated Linux News 0 12-09-2006 01:03 PM
LXer: NL: Debian GNU/Linux 4.0 RC1 (etch) LXer Syndicated Linux News 0 11-16-2006 06:54 AM
RAID Setup On Etch carlosinfl Debian 1 09-21-2006 11:32 AM

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

All times are GMT -5. The time now is 06:28 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