LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-08-2008, 10:53 AM   #1
javaholic
LQ Newbie
 
Registered: Jun 2007
Posts: 25

Rep: Reputation: 15
adding another 1TB drive to raid5 array.


so today i have encountered a problem with my what was my 3 * 1TB drive raid5 1.7TB in size. I tried to add another 1TB drive to it. I choose to use the following guide for the task:

http://scotgate.org/?p=107

but encountered a problem 17.1% some 8 or so hours in of the grow command.

now when i boot up only two of the drives show up. I'm lead to believe this is due to a stripe-size reassignment problem with the growth of a raid5 array of size greater than a few terabytes.

can anyone confirm or deny this. and is there a patch that can be applied for this?

distro of choice for this file server is debian.

obviously i want to keep the majority of the data on the three disk array as it sort of is. the increase is due to current size needing to be increased so losing it would be disasterous

thank you in advance for your time.
 
Old 08-08-2008, 01:29 PM   #2
kenoshi
Member
 
Registered: Sep 2007
Location: SF Bay Area, CA
Distribution: CentOS, SLES 10+, RHEL 3+, Debian Sarge
Posts: 159

Rep: Reputation: 32
What are the contents of /proc/mdstat, as well as fdisk -l?

Also, are all 4 drives exactly the same?

Are you using raid partitions or using the luns directly?
 
Old 08-08-2008, 01:46 PM   #3
javaholic
LQ Newbie
 
Registered: Jun 2007
Posts: 25

Original Poster
Rep: Reputation: 15
before i add the other two drives gives me:

Code:
md0 : inactive sda[1] sdd[2]
      1953524992 blocks super 0.91

unused devices: <none>
and fdisk -i gives me:

Code:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sda doesn't contain a valid partition table

Disk /dev/hda: 12.9 GB, 12997361664 bytes
255 heads, 63 sectors/track, 1580 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        1507    12104946   83  Linux
/dev/hda2            1508        1580      586372+   5  Extended
/dev/hda5            1508        1580      586341   82  Linux swap / Solaris
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table

Disk /dev/hdc: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1               1       24321   195358401   83  Linux

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1      121601   976760001   fd  Linux raid autodetect
Disk /dev/hdd: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdd1               1       24793   199148512+  83  Linux

Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdd doesn't contain a valid partition table
 
Old 08-08-2008, 03:16 PM   #4
javaholic
LQ Newbie
 
Registered: Jun 2007
Posts: 25

Original Poster
Rep: Reputation: 15
drives are all the same size.

the one drive i am adding is a different make. a samsung as opposed to 2 * identical maxtor and 1 * hitachi all 1TB in size.
 
Old 08-12-2008, 11:51 AM   #5
javaholic
LQ Newbie
 
Registered: Jun 2007
Posts: 25

Original Poster
Rep: Reputation: 15
1TB Addition to 3 disk raid5 array

Apon reflection i think i should have mentioned that having failed step 2 in above guide i did accidently try and fail step 3 so i reckon i might have broken the superblock but am unsure how to try and rectify this. suggestions welcome. i didn't backup the data as i didn't think i would have enough space to backup to but have found a big enough space to allow me to save my stuff. how would u suggest i try and recover data even if it could in degraded mode to migrate my data. My original mdadm.conf was posted here. Thanks inadvance for ur time
 
Old 08-26-2008, 10:59 AM   #6
javaholic
LQ Newbie
 
Registered: Jun 2007
Posts: 25

Original Poster
Rep: Reputation: 15
I'm pretty sure my problems were related to a faulty sata cable.

so i started raid5 array creation four days ago.

Does anybody know how long i should wait for this creation process to complete?

what is the maths for this?
 
  


Reply

Tags
mdadm, raid, raid5


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
can /boot be on a software RAID5 array? garydale Linux - Software 12 06-14-2008 08:54 AM
Why is my 3.1TB array only showing up as 1.2TB? BrianK Linux - General 4 06-13-2006 10:32 PM
Adding a drive to a RAID 5 array on SuSE with Webmin package Adman Linux - General 1 05-10-2006 09:53 AM
adding a hard drive to an existing software raid array iammisc Linux - Hardware 3 03-01-2006 06:08 PM
Can't get past 1.1TB on 1.7TB format RAID5!!! beat_researcher Linux - General 1 03-10-2004 09:42 PM


All times are GMT -5. The time now is 07:02 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration