I noticed I was missing some files when I was looking on my server by FTP, so I went on my ssh and saw that the files were there but they were marked purple and all permissions and ownership were marked with ?.
I the tryed to make a cp command and got some input output error.
so I searched the web for answers and found someone having same problem. Unmounted my raid (or tryed to) I tryed running fsck /dev/md0 and it say something about superblock error, I read on about the problem he had and he said yes to all of them, so I started too after saying yes to about 15 of them, and saw it was counting up on sectors, and I mostlikely got more than a million sectors, so I said no and got returned to terminal.
after trying some more and get the same like results, also trying to mount my raid again and failed, came by where it said my raid still mounted (or so it claims).
I was looking for another solution.
I found something and tryed cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sdc1 sdf1 sde1(F)
5860503552 blocks super 1.0 level 5, 4096k chunk, algorithm 0 [4/2] [U__U]
bitmap: 233/466 pages [932KB], 2048KB chunk
unused devices: <none>
and noticed its missing a harddisk "sdd1"
I then tryed some fsck /dev/sdc-f (one at the time)
sdd came up differently than the others.
fsck 1.41.1 (01-Sep-2008)
e2fsck 1.41.1 (01-Sep-2008)
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sdd
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
This is where I stopped.
How do I get my raid back so it works and all the files mostly intact?
Is /dev/sdd1 totally dead so I need to buy a new harddisk?
edit: just noticed that sde is failed and sdd is just gone, so I got 2 harddisk out of 4 harddisks in a raid 5 dead. anyway to maybe get it to work again with data?