Re: data corruption after rebuid

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

 



2015-05-14 14:00 GMT+08:00 Adam Goryachev <adam@xxxxxxxxxxxxxxxxxxxxxx>:
> On 14/05/15 14:54, d tbsky wrote:
> My guess is this is where you went wrong.
> Instead use a tool that will do this intelligently, quick google shows this:
> sgdisk -R=/dev/sdb /dev/sda
> sgdisk -G /dev/sdb
> Taken from:
> http://unix.stackexchange.com/questions/12986/how-to-copy-the-partition-layout-of-a-whole-disk-using-standard-tools
>
> My guess is you copied some data as well as the partition table, and
> that you are using a mdadm label which is stored at the beginning of the
> disk, and possibly are using bitmap on one server and not the other.

    this step did look suspicious. but I had use it many times on
blank hard disks. and it seems works..

> Maybe if you could show some details from each of the raid arrays then
> more people can make more informed comments.

 sure. below is the raid structure of  hostA & hostB:
/dev/md1:
        Version : 1.1
  Creation Time : Wed Feb 19 09:34:03 2014
     Raid Level : raid1
     Array Size : 1953177408 (1862.70 GiB 2000.05 GB)
  Used Dev Size : 1953177408 (1862.70 GiB 2000.05 GB)
   Raid Devices : 2
  Total Devices : 2
    Persistence : Superblock is persistent

  Intent Bitmap : Internal


  and below is the raid structure of my first test:
/dev/md1:
        Version : 1.1
  Creation Time : Mon Oct 20 18:51:47 2014
     Raid Level : raid5
     Array Size : 3906354176 (3725.39 GiB 4000.11 GB)
  Used Dev Size : 1953177088 (1862.69 GiB 2000.05 GB)
   Raid Devices : 3
  Total Devices : 3
    Persistence : Superblock is persistent

  Intent Bitmap : Internal

    Update Time : Thu May 14 14:32:25 2015
          State : clean
 Active Devices : 3
Working Devices : 3
 Failed Devices : 0
  Spare Devices : 0

         Layout : left-symmetric
     Chunk Size : 512K



    and the raid structure of my second and thrid test:
/dev/md1:
        Version : 1.1
  Creation Time : Sun Sep 28 19:20:59 2014
     Raid Level : raid10
     Array Size : 1953033216 (1862.56 GiB 1999.91 GB)
  Used Dev Size : 976516608 (931.28 GiB 999.95 GB)
   Raid Devices : 4
  Total Devices : 4
    Persistence : Superblock is persistent

  Intent Bitmap : Internal

    Update Time : Thu May 14 14:33:14 2015
          State : active
 Active Devices : 4
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 0

         Layout : near=2
     Chunk Size : 512K
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux