[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

fixing non-fresh disc in a linear array



Hello,

I added a cdrom drive to my system today, and I think I might have
started up with one of my ide cables loose, such that it fell out while
the system was running. That ide cable went to the second hard disk in a
linear raid array, and now whenever I start linux up I get:

md: autorun ...
md: considering ide/host2/bus1/target0/lun0/disc ...
md:  adding ide/host2/bus1/target0/lun0/disc ...
md:  adding ide/host2/bus0/target0/lun0/disc ...
md: created md0
md: bind<ide/host2/bus0/target0/lun0/disc,1>
md: bind<ide/host2/bus1/target0/lun0/disc,2>
md: running: <ide/host2/bus1/target0/lun0/disc><ide/host2/bus0/target0/lun0/disc>
md: ide/host2/bus1/target0/lun0/disc's event counter: 000000da
md: ide/host2/bus0/target0/lun0/disc's event counter: 0000013e
md: superblock update time inconsistency -- using the most recent one
md: freshest: ide/host2/bus0/target0/lun0/disc
md: kicking non-fresh ide/host2/bus1/target0/lun0/disc from array!
md: unbind<ide/host2/bus1/target0/lun0/disc,1>
md: export_rdev(ide/host2/bus1/target0/lun0/disc)
md0: former device ide/host2/bus1/target0/lun0/disc is unavailable, removing from array!
md0: max total readahead window set to 124k
md0: 1 data-disks, max readahead per data-disk: 124k
md: md0, array needs 2 disks, has 1, aborting.
linear: disks are not ordered, aborting!
md: pers->run() failed ...
md :do_md_run() returned -22
md: md0 stopped.
md: unbind<ide/host2/bus0/target0/lun0/disc,0>
md: export_rdev(ide/host2/bus0/target0/lun0/disc)
md: ... autorun DONE.

...needless to say, /dev/md0 won't mount. I've searched around for a
while and come across several posts that describe similar situations
wherein the user believes the disk and data to be undamaged but merely
marked non-fresh (mdadm --examine corroborates this; see below). All
that I found were in reference to raid5, however, and I couldn't be sure
if the advice given would pertain to my linear array. The closest advice
I found is at http://www.uwsg.iu.edu/hypermail/linux/kernel/0210.1/1241.html
where (adapting the command for my devices) I would do:
$ mdadm --assemble --force /dev/md0 /dev/hde /dev/hdh

I'm hesitant do to anything irreversable without first making sure I'm
doing what I'm supposed to be doing. Is the above command correct for my
situation?

Also, since I'm paranoid, how would I be able to back up the first part
of each drive such that I would be able to restore them to their present
state? Would this be sufficient to back up?
$ dd if=/dev/hdg of=/root/hdg-backup bs=1M count=10
and this work to restore?
$ dd if=/root/hdg-backup of=/dev/hdg conv=notrunc
...with the same commands for hdh also, of course.

Any advice would be welcome, and if I need to provide more information
please let me know.

Thanks in advance,
Corey


Debian Sarge
Linux bugfood 2.4.21-pre4 #1 Thu Jan 30 00:31:39 PST 2003 i686 AMD Athlon(tm) AuthenticAMD GNU/Linux

bugfood:~# mdadm --examine /dev/hde
/dev/hde:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : 4c017528:5b611b76:e7577e94:7d2428ea
  Creation Time : Fri Oct  4 05:27:05 2002
     Raid Level : linear
    Device Size : 117187392 (111.76 GiB 119.104 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0

    Update Time : Sat Mar 22 22:34:30 2003
          State : clean, no-errors
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0
       Checksum : 38210b03 - correct
         Events : 0.318

       Rounding : 32K

      Number   Major   Minor   RaidDevice State
this 0 33 0 0 active sync /dev/ide/host2/bus0/target0/lun0/disc 0 0 33 0 0 active sync /dev/ide/host2/bus0/target0/lun0/disc 1 1 34 0 1 active sync /dev/ide/host2/bus1/target0/lun0/disc

bugfood:~# mdadm --examine /dev/hdg
/dev/hdg:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : 4c017528:5b611b76:e7577e94:7d2428ea
  Creation Time : Fri Oct  4 05:27:05 2002
     Raid Level : linear
    Device Size : 117187392 (111.76 GiB 119.104 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0

    Update Time : Sat Mar 22 21:42:42 2003
          State : dirty, no-errors
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0
       Checksum : 3820fe7d - correct
         Events : 0.218

       Rounding : 32K

      Number   Major   Minor   RaidDevice State
this 1 34 0 1 active sync /dev/ide/host2/bus1/target0/lun0/disc 0 0 33 0 0 active sync /dev/ide/host2/bus0/target0/lun0/disc 1 1 34 0 1 active sync /dev/ide/host2/bus1/target0/lun0/disc



Reply to: