LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 07-19-2010, 11:29 AM   #1
rblampain
Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 7
Posts: 833

Rep: Reputation: 35
raid1 mount:/dev/md0: can't read superblock


I have an AMD64 motherboard with one pata drive that contains the whole installation including data and two identical 500G sata drive that were set up as raid1 for experimentation, then I had to reinstall for some reason.

If my recollection is correct, the first raid1 was made after the install and worked, I used it only to 'archive" /home but the second was done during the install, seemed OK but does not work.

When I try 'archive' under Debian Lenny with the GUI, I get the message mentioned above.

There are a few howto on the internet but none that I can follow from start to finish without improvising at some stage.

Can anyone suggest which howto to follow in my case and if this is the one that is part of the install, how to do that without reinstalling everything else.

Thank you for your help.
 
Old 07-19-2010, 12:59 PM   #2
apnicservices
LQ Newbie
 
Registered: Jul 2008
Location: London, UK
Distribution: Debian
Posts: 23

Rep: Reputation: 16
What does cat /proc/mdstat say? Is your new array formatted with an ext3 partition?
 
Old 07-19-2010, 03:15 PM   #3
samborambo
LQ Newbie
 
Registered: Dec 2004
Location: New Zealand
Distribution: Ubuntu LTS
Posts: 10

Rep: Reputation: 0
If you've done a reinstall you've probably lost your /etc/mdadm.conf . Try running mdadm assemble --scan to see if it picks up the drives again.

It's highly unlikely that you've lost the superblocks on both drives, unless it was done intentionally. If the blind assemble doesn't work, try assembling with one drive. If that works, add the other drive as a hot spare and the array will automatically rebuild.

If you have lost superblocks off both drives, you can try mdadm build to bring up an array.

Sam.
 
Old 07-19-2010, 10:34 PM   #4
rblampain
Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 7
Posts: 833

Original Poster
Rep: Reputation: 35
Thank you both, here are the results of your suggestions. Nothing was intentionally done to the superblocks and I am not good at the command line.

cat /proc/mdstat
Personalities : [raid1]
md0 : active (auto-read-only) raid1 sda1[0] sdb1[1]
488383936 blocks [2/2] [UU]
resync=PENDING
unused devices: <none>

mdadm assemble --scan
mdadm: --scan does not set the mode, and so cannot be the first option.

mdadm build
mdadm: cannot open build: No such file or directory

dmesg reports:
[ 5.790932] md: raid1 personality registered for level 1
[ 5.793029] md: md0 stopped.
[ 5.856579] md: bind<sdb1>
[ 5.856579] md: bind<sda1>
[ 5.856579] md: md0: raid array is not clean -- starting background reconstruction
[ 5.867025] raid1: raid set md0 active with 2 out of 2 mirrors

Last edited by rblampain; 07-20-2010 at 05:05 AM.
 
Old 07-22-2010, 06:58 AM   #5
rblampain
Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 7
Posts: 833

Original Poster
Rep: Reputation: 35
After more search on the internet, I found that one of the new features of Debian 505 (I had 504) was "experimental support for software raid...", this seemed to imply that support was not present in the version I was using.
So I installed 505 with software raid1 which seemed to require a mount point for the 2 sata raid drives. Raid 1 was not working after reboot and I tried the following command:
mdadm --create /dev/md0 --metadata=1 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1
this did not work at first but it did after unmounting the 2 drives
and this gave the following result:
size=488383936K mtime=Thu Jul 22 01:21:15 2010
mdadm: /dev/sdb1 appears to contain an ext2fs file system
size=488383936K mtime=Thu Jul 22 01:21:15 2010
Continue creating array? y
mdadm: array /dev/md0 started.

Does this mean the array is now working or do I still need to test if it is?
Also, the 2 drives have ext3 filesystem, should the drives be reformated to ext2? How?
(It seems experimental support for raid.. is intended to work on ext2 filesystems only!)

cat /proc/mdstat gave the following result
Personalities : [raid1]
md0 : active (auto-read-only) raid1 sdb1[1] sda1[0]
487307508 blocks super 1.0 [2/2] [UU]
resync=PENDING
unused devices: <none>

Thank you for your help.

Last edited by rblampain; 07-22-2010 at 07:03 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] mount: /dev/sdc1: can't read superblock jormagas Linux - Desktop 1 05-04-2010 10:36 AM
After creating raid6 array, mkfs.jfs /dev/md0, then cannot mount /dev/md0 artagel Debian 4 12-06-2009 08:30 AM
Raid1 array says /dev/md0 does not have a valid partition table, won't auto mount bhepdogg Ubuntu 12 10-30-2009 03:50 PM
mount: /dev/sda: can't read superblock xeon123 Linux - General 4 08-18-2008 01:42 PM
mount: /dev/cdrom: can't read superblock raynmune Linux - Hardware 7 07-09-2005 04:02 PM


All times are GMT -5. The time now is 07:07 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration