Power failure during expansion of raid5.

Daniel Marmander <[email protected]> Mon, 13 Aug 2007 17:40:40 +0200
Newsgroups gmane.linux.evms.devel
Message-ID <[email protected]>
I had a UPS failure during the process of an raid 5 expansion. Now I get following error message when I start evms:

Aug 12 16:45:11  MDRaid5RegMgr: The process to expand region md/md1 was interrupted.  The orginal configuration will be restored.
Aug 12 16:45:11  MDRaid5RegMgr: Region md/md1: The MD superblock has old device major/minor number for object (sdc1). When this MD region is activated,  the old device [254:4] will be replaced with new device [254:0].

Aug 12 16:45:11  MDRaid5RegMgr: Region md/md1: The MD superblock has old device major/minor number for object (sda1). When this MD region is activated,  the old device [254:5] will be replaced with new device [254:1].

Aug 12 16:45:11  MDRaid5RegMgr: Region md/md1: The MD superblock has old device major/minor number for object (sdd1). When this MD region is activated,  the old device [254:6] will be replaced with new device [254:2].

Aug 12 16:45:11  MDRaid5RegMgr: Region md/md1: The MD superblock has old device major/minor number for object (sdb1). When this MD region is activated,  the old device [254:7] will be replaced with new device [254:3].

The array consists of 4 disks from the begining, each having one segment. The new array would consist of the original disks, and a raid0 region consisting of 3 segments located on 3 more disks.

mdadm -E output:

# mdadm -E /dev/evms/.nodes/sda1 
/dev/evms/.nodes/sda1:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : feba692a:dc53b23a:8fa5b8df:f5ca0fee
  Creation Time : Sat Jun  2 00:23:40 2007
     Raid Level : raid5
  Used Dev Size : 488383936 (465.76 GiB 500.11 GB)
     Array Size : 1953535744 (1863.04 GiB 2000.42 GB)
   Raid Devices : 5
  Total Devices : 5
Preferred Minor : 1

    Update Time : Sat Aug 11 01:42:20 2007
          State : clean
 Active Devices : 5
Working Devices : 5
 Failed Devices : 0
  Spare Devices : 0
       Checksum : b3e58472 - correct
         Events : 0.67641

         Layout : left-symmetric
     Chunk Size : 32K

      Number   Major   Minor   RaidDevice State
this     1     254        5        1      active sync   /dev/evms/.nodes/hde1

   0     0     254        4        0      active sync   /dev/evms/.nodes/hdc1
   1     1     254        5        1      active sync   /dev/evms/.nodes/hde1
   2     2     254        6        2      active sync   /dev/evms/.nodes/hdg1
   3     3     254        7        3      active sync   /dev/evms/.nodes/md/md2
   4     4     254        8        4      active sync   /dev/evms/.nodes/hdf1

 # mdadm -E /dev/evms/.nodes/sdb1 
/dev/evms/.nodes/sdb1:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : feba692a:dc53b23a:8fa5b8df:f5ca0fee
  Creation Time : Sat Jun  2 00:23:40 2007
     Raid Level : raid5
  Used Dev Size : 488383936 (465.76 GiB 500.11 GB)
     Array Size : 1953535744 (1863.04 GiB 2000.42 GB)
   Raid Devices : 5
  Total Devices : 5
Preferred Minor : 1

    Update Time : Sat Aug 11 01:42:20 2007
          State : clean
 Active Devices : 5
Working Devices : 5
 Failed Devices : 0
  Spare Devices : 0
       Checksum : b3e58478 - correct
         Events : 0.67641

         Layout : left-symmetric
     Chunk Size : 32K

      Number   Major   Minor   RaidDevice State
this     3     254        7        3      active sync   /dev/evms/.nodes/md/md2

   0     0     254        4        0      active sync   /dev/evms/.nodes/hdc1
   1     1     254        5        1      active sync   /dev/evms/.nodes/hde1
   2     2     254        6        2      active sync   /dev/evms/.nodes/hdg1
   3     3     254        7        3      active sync   /dev/evms/.nodes/md/md2
   4     4     254        8        4      active sync   /dev/evms/.nodes/hdf1

# mdadm -E /dev/evms/.nodes/sdc1 
/dev/evms/.nodes/sdc1:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : feba692a:dc53b23a:8fa5b8df:f5ca0fee
  Creation Time : Sat Jun  2 00:23:40 2007
     Raid Level : raid5
  Used Dev Size : 488383936 (465.76 GiB 500.11 GB)
     Array Size : 1953535744 (1863.04 GiB 2000.42 GB)
   Raid Devices : 5
  Total Devices : 5
Preferred Minor : 1

    Update Time : Sat Aug 11 01:42:20 2007
          State : clean
 Active Devices : 5
Working Devices : 5
 Failed Devices : 0
  Spare Devices : 0
       Checksum : b3e5846f - correct
         Events : 0.67641

         Layout : left-symmetric
     Chunk Size : 32K

      Number   Major   Minor   RaidDevice State
this     0     254        4        0      active sync   /dev/evms/.nodes/hdc1

   0     0     254        4        0      active sync   /dev/evms/.nodes/hdc1
   1     1     254        5        1      active sync   /dev/evms/.nodes/hde1
   2     2     254        6        2      active sync   /dev/evms/.nodes/hdg1
   3     3     254        7        3      active sync   /dev/evms/.nodes/md/md2
   4     4     254        8        4      active sync   /dev/evms/.nodes/hdf1

# mdadm -E /dev/evms/.nodes/sdd1 
/dev/evms/.nodes/sdd1:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : feba692a:dc53b23a:8fa5b8df:f5ca0fee
  Creation Time : Sat Jun  2 00:23:40 2007
     Raid Level : raid5
  Used Dev Size : 488383936 (465.76 GiB 500.11 GB)
     Array Size : 1953535744 (1863.04 GiB 2000.42 GB)
   Raid Devices : 5
  Total Devices : 5
Preferred Minor : 1

    Update Time : Sat Aug 11 01:42:20 2007
          State : clean
 Active Devices : 5
Working Devices : 5
 Failed Devices : 0
  Spare Devices : 0
       Checksum : b3e58475 - correct
         Events : 0.67641

         Layout : left-symmetric
     Chunk Size : 32K

      Number   Major   Minor   RaidDevice State
this     2     254        6        2      active sync   /dev/evms/.nodes/hdg1

   0     0     254        4        0      active sync   /dev/evms/.nodes/hdc1
   1     1     254        5        1      active sync   /dev/evms/.nodes/hde1
   2     2     254        6        2      active sync   /dev/evms/.nodes/hdg1
   3     3     254        7        3      active sync   /dev/evms/.nodes/md/md2
   4     4     254        8        4      active sync   /dev/evms/.nodes/hdf1

# mdadm -E /dev/evms/.nodes/md/md2 
/dev/evms/.nodes/md/md2:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : feba692a:dc53b23a:8fa5b8df:f5ca0fee
  Creation Time : Sat Jun  2 00:23:40 2007
     Raid Level : raid5
  Used Dev Size : 488383936 (465.76 GiB 500.11 GB)
     Array Size : 1953535744 (1863.04 GiB 2000.42 GB)
   Raid Devices : 5
  Total Devices : 5
Preferred Minor : 1

    Update Time : Sat Aug 11 01:42:20 2007
          State : clean
 Active Devices : 5
Working Devices : 5
 Failed Devices : 0
  Spare Devices : 0
       Checksum : b3e5847b - correct
         Events : 0.67641

         Layout : left-symmetric
     Chunk Size : 32K

      Number   Major   Minor   RaidDevice State
this     4     254        8        4      active sync   /dev/evms/.nodes/hdf1

   0     0     254        4        0      active sync   /dev/evms/.nodes/hdc1
   1     1     254        5        1      active sync   /dev/evms/.nodes/hde1
   2     2     254        6        2      active sync   /dev/evms/.nodes/hdg1
   3     3     254        7        3      active sync   /dev/evms/.nodes/md/md2
   4     4     254        8        4      active sync   /dev/evms/.nodes/hdf1


Is there any possibility to recover the data?

Regards,
Daniel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Evms-devel mailing list
[email protected]
To subscribe/unsubscribe, please visit:
https://lists.sourceforge.net/lists/listinfo/evms-devel