[SOLVED] can not mount RAID

General support questions including new installations
Post Reply
AdrianPoputoaia
Posts: 4
Joined: 2010/07/21 06:53:27
Contact:

[SOLVED] can not mount RAID

Post by AdrianPoputoaia » 2010/11/18 09:41:14

root@rescue ~ # uname -a
Linux rescue 2.6.30 #14 SMP Thu Jul 23 16:08:38 CEST 2009 x86_64 GNU/Linux

root@rescue ~ # cat /proc/mdstat
Personalities : [raid1] [raid6] [raid5] [raid4]
md2 : inactive sda3[0] sdc3[2]
2917660800 blocks

md1 : active raid1 sda2[0] sdc2[2]
2104448 blocks [3/2] [U_U]

md0 : active raid1 sda1[0] sdc1[2]
4200896 blocks [3/2] [U_U]

unused devices:


root@rescue ~ # mdadm -A /dev/md2 /dev/sda3 /dev/sdc3
mdadm: device /dev/md2 already active - cannot assemble it

root@rescue ~ # dmesg | tail
raid5: device sda3 operational as raid disk 0
raid5: device sdc3 operational as raid disk 2
raid5: allocated 3220kB for md2
raid5: cannot start dirty degraded array for md2
RAID5 conf printout:
--- rd:3 wd:2
disk 0, o:1, dev:sda3
disk 2, o:1, dev:sdc3
raid5: failed to run raid set md2
md: pers->run() failed ...


root@rescue ~ # mount /dev/md2 /mnt/data2
mount: you must specify the filesystem type

I can not to mount md2 to recovery my file form hdd, any suggestions? Must be active md2 to can be mounted?
root@rescue ~ # mdadm -R /dev/md2
mdadm: failed to run array /dev/md2: Input/output error

pjwelsh
Posts: 2632
Joined: 2007/01/07 02:18:02
Location: Central IL USA

Re: can not mount RAID

Post by pjwelsh » 2010/11/18 13:09:29

provide detail of the md2 via "mdadm -D /dev/md2"

AdrianPoputoaia
Posts: 4
Joined: 2010/07/21 06:53:27
Contact:

Re: can not mount RAID

Post by AdrianPoputoaia » 2010/11/18 13:18:26

root@rescue ~ # mdadm -D /dev/md2
mdadm: md device /dev/md2 does not appear to be active.

root@rescue /etc # mdadm -R /dev/md2
mdadm: failed to run array /dev/md2: Input/output error
root@rescue /etc # dmesg |tail
raid5: device sda3 operational as raid disk 0
raid5: device sdc3 operational as raid disk 2
raid5: allocated 3220kB for md2
raid5: cannot start dirty degraded array for md2
RAID5 conf printout:
--- rd:3 wd:2
disk 0, o:1, dev:sda3
disk 2, o:1, dev:sdc3
raid5: failed to run raid set md2
md: pers->run() failed ...

pjwelsh
Posts: 2632
Joined: 2007/01/07 02:18:02
Location: Central IL USA

Re: can not mount RAID

Post by pjwelsh » 2010/11/18 13:32:03

Can you force the assembly via "mdadm --assemble --force /dev/md2"

AdrianPoputoaia
Posts: 4
Joined: 2010/07/21 06:53:27
Contact:

Re: can not mount RAID

Post by AdrianPoputoaia » 2010/11/18 13:37:21

root@rescue ~ # cat /proc/mdstat
Personalities : [raid1]
md2 : inactive sda3[0](S) sdc3[2](S) sdb3[1](S)
4376491200 blocks

md1 : active raid1 sda2[0] sdc2[2]
2104448 blocks [3/2] [U_U]

md0 : active raid1 sda1[0] sdc1[2]
4200896 blocks [3/2] [U_U]

unused devices:






root@rescue ~ # mdadm --assemble --force /dev/md2 /dev/sda3 /dev/sdc3 /dev/sdb3
mdadm: /dev/md2 has been started with 2 drives (out of 3).


root@rescue ~ # cat /proc/mdstat
Personalities : [raid1] [raid6] [raid5] [raid4]
md2 : active raid5 sda3[0] sdc3[2]
2917660800 blocks level 5, 64k chunk, algorithm 2 [3/2] [U_U]

md1 : active raid1 sda2[0] sdc2[2]
2104448 blocks [3/2] [U_U]

md0 : active raid1 sda1[0] sdc1[2]
4200896 blocks [3/2] [U_U]

AdrianPoputoaia
Posts: 4
Joined: 2010/07/21 06:53:27
Contact:

Re: can not mount RAID

Post by AdrianPoputoaia » 2010/11/18 13:48:25

Now working with force! Thanks a lot!

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

[SOLVED] can not mount RAID

Post by pschaff » 2010/12/10 13:19:03

Marking this thread [SOLVED] for posterity.

Post Reply