Raid5 problems lucid minimal
#1
Hey guys, im trying my luck and asking advice in here i've triede on ubuntuforums but noone have replied so im trying my luck here.

Anyway to make a long long story short, i've been experiencing problems with my raid setup after i took the harddrives out of the sata controller and put them back in.

In order for ubuntu to get the harddrives up and running i have togo into manual recovery mode and force start the raid else it will just say inactve.

Now if i do:

jaiz@mediabox:~$ cat /proc/mdstat
Code:
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid5 sdc1[0] sdd1[1] sdf1[2]
      5860535808 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]

My sde1 is missing from my raid5, however i can see my sde1 in my fdisk

sudo fdisk -l
Code:
Disk /dev/sde: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x6320ada9

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1               1      243201  1953512001   fd  Linux raid autodetect

Now my question is is my harddrive defect? or can i somehow save it without going out and buying another 2TB disc and replacing the defect harddrive?

Link to original thread on ubuntuforums: http://ubuntuforums.org/showthread.php?p...st11089296
Reply
#2
have you tried re adding it?

off the top of my head

mdadm /dev/md0 -A /dev/sde1
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
#3
darkscout Wrote:have you tried re adding it?

off the top of my head

mdadm /dev/md0 -A /dev/sde1

jaiz@mediabox:~$ sudo mdadm /dev/md0 -A /dev/sde1
Quote:mdadm: metadata format 00.90 unknown, ignored.
mdadm: No suitable drives found for /dev/md0

However i can see the disc now in my raid and its trying to run recovery so lets see Smile

Edit:

Seems like it didnt finnish the recovery process


jaiz@mediabox:~$ cat /proc/mdstat

Quote:Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid5 sdc1[0] sde1[4](F) sdf1[2] sdd1[1]
5860535808 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]

So iguess my sde disc is broken?
Reply
#4
check your syslog. I think one of my disks is doing the same thing. I checked it out with the Seagate admin tool but it said it was fine.
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
#5
figured that my disc had broken down, so i got myself a new disc, now i first remove my old disc from the array by using mdadm --fail / --remove , then i shutdown take out the disc add my new disc boot up, i partion the disc with type fd (linux raid autodetect), write the parition table and disc seems ready togo,

now when i want to add the disc to the array i just get this error:

sudo mdadm --manage /dev/md0 -a /dev/sdf1
Quote:mdadm: metadata format 00.90 unknown, ignored.
mdadm: cannot get array info for /dev/md0

Not sure what i can do about that, so im kinda stuck again Sad
Reply
#6
still cant get it up and running hope someone out there can help me out! Smile

If i try and do:

sudo mdadm --create --assume-clean --level=5 --raid-devices=4 /dev/md0 /dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdf1
Quote:mdadm: metadata format 00.90 unknown, ignored.
mdadm: /dev/sdc1 appears to be part of a raid array:
level=raid5 devices=4 ctime=Sat Mar 26 01:43:41 2011
mdadm: /dev/sdd1 appears to contain an ext2fs file system
size=1565568512K mtime=Wed Jul 27 00:46:14 2011
mdadm: /dev/sdd1 appears to be part of a raid array:
level=raid5 devices=4 ctime=Sat Mar 26 01:43:41 2011
mdadm: /dev/sde1 appears to contain an ext2fs file system
size=1297133056K mtime=Wed Jul 27 00:46:14 2011
mdadm: /dev/sde1 appears to be part of a raid array:
level=raid5 devices=4 ctime=Sat Mar 26 01:43:41 2011
Continue creating array? n
mdadm: create aborted.

As you can see it doesent understand sdf should be integrated into the array, and instead adds sdd1 twice :S
Reply
#7
Did you copy the partition table over from another disk so it's identical?
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
#8
darkscout Wrote:Did you copy the partition table over from another disk so it's identical?

I did not, i had some trouble gettin that to work aswell got some write error thing, also i had problems creating the partition on the new drive so had to swap to units and then create the parition with default settings and then swap back and write the table

however the discs are almost ident, in reality though they are alll 100% ident so not sure why they dont act the same

new drive fdisk:
Quote:Disk /dev/sdf: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x803e3248

Device Boot Start End Blocks Id System
/dev/sdf1 1 243202 1953514552 fd Linux raid autodetect

Old drive
Quote:Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x90a3cf5b

Device Boot Start End Blocks Id System
/dev/sdc1 1 243201 1953512001 fd Linux raid autodetect


jaiz@mediabox:~$ sudo sfdisk -d /dev/sdc | sfdisk /dev/sdf
Quote:/dev/sdf: Permission denied
sfdisk: cannot open /dev/sdf read-write

And when i try and create the new partion with default settings like the rest of my drives i get

Quote: Device Boot Start End Blocks Id System
Disk /dev/sdf: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x803e3248

Device Boot Start End Blocks Id System
/dev/sdf1 1 243201 1953512001 fd Linux raid autodetect
Partition 1 does not start on physical sector boundary.

Edit:

I triede just continueing on regardless of the warnings (Partition 1 does not start on physical sector boundary.) and i got: success i think, but it only took like a sec to create the raid again,

mdstat now says:
Quote:aiz@mediabox:~$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid5 sdf1[3] sde1[2] sdd1[1] sdc1[0]
5860535808 blocks level 5, 64k chunk, algorithm 2 [4/4] [UUUU]


But i didnt format the sdf1 parition so i would have assume that it would need to do something to the drive that would take more then a few seconds?

Edit2:

After a reboot it all went to shit after that really Sad

jaiz@mediabox:~$ cat /proc/mdstat
Quote:Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md_d0 : inactive sdc1[0](S)
1953511936 blocks

unused devices: <none>
Reply
#9
sfdisk doesn't work with GPT partitions. You want gdisk.
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply

Logout Mark Read Team Forum Stats Members Help
Raid5 problems lucid minimal0