Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Did mdadm --create rather than --assemble
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
eponymous
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 141

PostPosted: Mon Jan 24, 2011 4:10 pm    Post subject: Did mdadm --create rather than --assemble Reply with quote

Hi,

I have an existing array of three hard disks which form a RAID0 array which have ext3 on them.

I accidently did an: mdadm --create command to create a new array rather than --assemble.

I can't seem to mount the /dev/md0 array as it says "mount: wrong fs type, bad option, bad superblock on /dev/md0".

What is wrong? Have I just lost all my data :(?

Thanks.
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Mon Jan 24, 2011 4:28 pm    Post subject: Reply with quote

Hi,

I'm sorry to say that chances are you've just wiped your data.
Try stopping the md0 and re-creating it with the correct options.

It's a slim chance, but may help.

Rich.
Back to top
View user's profile Send private message
eponymous
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 141

PostPosted: Mon Jan 24, 2011 4:33 pm    Post subject: Reply with quote

richard.scott wrote:
Hi,

I'm sorry to say that chances are you've just wiped your data.
Try stopping the md0 and re-creating it with the correct options.

It's a slim chance, but may help.

Rich.


I just tried that but the same error occurs with mount. The UUID of the three disks is now reported as being different from blkid.

I simply can't accept that it was that easy to lose all my data. There was no warning given or anything..

If this is then my faith in mdadm is shot.
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Mon Jan 24, 2011 4:43 pm    Post subject: Reply with quote

eponymous wrote:
I simply can't accept that it was that easy to lose all my data. There was no warning given or anything..

If this is then my faith in mdadm is shot.


It does ask if your sure like this:

Code:
 # mdadm --create /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 -n 4 -l 6
mdadm: /dev/sda1 appears to be part of a raid array:
    level=raid5 devices=4 ctime=Thu Dec 23 22:13:32 2010
mdadm: /dev/sdb1 appears to be part of a raid array:
    level=raid5 devices=4 ctime=Thu Dec 23 22:13:32 2010
mdadm: /dev/sdc1 appears to be part of a raid array:
    level=raid5 devices=4 ctime=Thu Dec 23 22:13:32 2010
mdadm: /dev/sdd1 appears to be part of a raid array:
    level=raid5 devices=4 ctime=Thu Dec 23 22:13:32 2010
Continue creating array?


At that point if you accidentially say Y then you loose your data.

Rich
Back to top
View user's profile Send private message
eponymous
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 141

PostPosted: Mon Jan 24, 2011 4:47 pm    Post subject: Reply with quote

richard.scott wrote:
eponymous wrote:
I simply can't accept that it was that easy to lose all my data. There was no warning given or anything..

If this is then my faith in mdadm is shot.


It does ask if your sure like this:

Code:
 # mdadm --create /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 -n 4 -l 6
mdadm: /dev/sda1 appears to be part of a raid array:
    level=raid5 devices=4 ctime=Thu Dec 23 22:13:32 2010
mdadm: /dev/sdb1 appears to be part of a raid array:
    level=raid5 devices=4 ctime=Thu Dec 23 22:13:32 2010
mdadm: /dev/sdc1 appears to be part of a raid array:
    level=raid5 devices=4 ctime=Thu Dec 23 22:13:32 2010
mdadm: /dev/sdd1 appears to be part of a raid array:
    level=raid5 devices=4 ctime=Thu Dec 23 22:13:32 2010
Continue creating array?


At that point if you accidentially say Y then you loose your data.

Rich


I think i'm going to throw up :(

Surely there is some way for me to rebuild this? Please god.
Back to top
View user's profile Send private message
eponymous
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 141

PostPosted: Mon Jan 24, 2011 4:52 pm    Post subject: Reply with quote

It looks like someone had sucess here:

http://ubuntuforums.org/showpost.php?p=7961195&postcount=5

But I cannot seem to get the same result.
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Mon Jan 24, 2011 4:53 pm    Post subject: Reply with quote

have you upgraded mdadm since you created the array?

Perhaps its defaults are now different?
Back to top
View user's profile Send private message
eponymous
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2005
Posts: 141

PostPosted: Mon Jan 24, 2011 5:08 pm    Post subject: Reply with quote

richard.scott wrote:
have you upgraded mdadm since you created the array?

Perhaps its defaults are now different?


I have upgraded yes - this is what led me down this path in the first place. I did w world update then did an etc-update. I was careful not to overwrite my /etc/mdadm.conf file.

I then restarted and got loads of errors about the RAID stuff.

It also seems to default and create /dev/md127 /dev/md127p1 /dev/md126 /dev/md126p1 :s
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum