Raid5 problems lucid minimal - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222) +--- Forum: Hardware (https://forum.kodi.tv/forumdisplay.php?fid=112) +--- Thread: Raid5 problems lucid minimal (/showthread.php?tid=106337) |
Raid5 problems lucid minimal - JaizEdelmann - 2011-07-26 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] 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 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=11089296#post11089296 - darkscout - 2011-07-26 have you tried re adding it? off the top of my head mdadm /dev/md0 -A /dev/sde1 - JaizEdelmann - 2011-07-27 darkscout Wrote:have you tried re adding it? jaiz@mediabox:~$ sudo mdadm /dev/md0 -A /dev/sde1 Quote:mdadm: metadata format 00.90 unknown, ignored. However i can see the disc now in my raid and its trying to run recovery so lets see Edit: Seems like it didnt finnish the recovery process jaiz@mediabox:~$ cat /proc/mdstat Quote:Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] So iguess my sde disc is broken? - darkscout - 2011-07-27 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. - JaizEdelmann - 2011-07-29 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. Not sure what i can do about that, so im kinda stuck again - JaizEdelmann - 2011-07-29 still cant get it up and running hope someone out there can help me out! 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. As you can see it doesent understand sdf should be integrated into the array, and instead adds sdd1 twice :S - darkscout - 2011-07-29 Did you copy the partition table over from another disk so it's identical? - JaizEdelmann - 2011-07-29 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 Old drive Quote:Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes jaiz@mediabox:~$ sudo sfdisk -d /dev/sdc | sfdisk /dev/sdf Quote:/dev/sdf: Permission denied 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 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 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 jaiz@mediabox:~$ cat /proc/mdstat Quote:Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] - darkscout - 2011-07-29 sfdisk doesn't work with GPT partitions. You want gdisk. |