LINUX.ORG.RU

История изменений

Исправление bredis, (текущая версия) :

Создал массив предварительно поработав утилитой wipefs. Сейчас это выглядит так:

1@1:~$ sudo mdadm --create --verbose /dev/md127 --level=1 --raid-devices=2 /dev/sdc1 /dev/sdd1
mdadm: Note: this array has metadata at the start and
    may not be suitable as a boot device.  If you plan to
    store '/boot' on this device please ensure that
    your boot-loader understands md/v1.x metadata, or use
    --metadata=0.90
mdadm: size set to 3850238976K
mdadm: automatically enabling write-intent bitmap on large array
Continue creating array? y
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md127 started.
1@1:~$ sudo cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md127 : active raid1 sdd1[1] sdc1[0]
      3850238976 blocks super 1.2 [2/2] [UU]
      [>....................]  resync =  0.0% (1669376/3850238976) finish=307.3min speed=208672K/sec
      bitmap: 29/29 pages [116KB], 65536KB chunk

unused devices: <none>
1@1:~$ sudo mdadm -E /dev/sdc1 /dev/sdd1
/dev/sdc1:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x1
     Array UUID : 4502e14e:8e428536:83506fe4:74c86066
           Name : 1:127  (local to host 1)
  Creation Time : Wed Nov 29 10:53:59 2023
     Raid Level : raid1
   Raid Devices : 2

 Avail Dev Size : 7700477952 (3671.87 GiB 3942.64 GB)
     Array Size : 3850238976 (3671.87 GiB 3942.64 GB)
    Data Offset : 264192 sectors
   Super Offset : 8 sectors
   Unused Space : before=264112 sectors, after=0 sectors
          State : active
    Device UUID : 39bf1c5e:271c9d7f:394e0ac7:c5fb90b8

Internal Bitmap : 8 sectors from superblock
    Update Time : Wed Nov 29 10:56:50 2023
  Bad Block Log : 512 entries available at offset 24 sectors
       Checksum : 458cb0e9 - correct
         Events : 34


   Device Role : Active device 0
   Array State : AA ('A' == active, '.' == missing, 'R' == replacing)
/dev/sdd1:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x1
     Array UUID : 4502e14e:8e428536:83506fe4:74c86066
           Name : 1:127  (local to host 1)
  Creation Time : Wed Nov 29 10:53:59 2023
     Raid Level : raid1
   Raid Devices : 2

 Avail Dev Size : 7700477952 (3671.87 GiB 3942.64 GB)
     Array Size : 3850238976 (3671.87 GiB 3942.64 GB)
    Data Offset : 264192 sectors
   Super Offset : 8 sectors
   Unused Space : before=264112 sectors, after=0 sectors
          State : active
    Device UUID : d9cd846c:dc1dbb2c:ba7c524e:a8cb3c85

Internal Bitmap : 8 sectors from superblock
    Update Time : Wed Nov 29 10:56:55 2023
  Bad Block Log : 512 entries available at offset 24 sectors
       Checksum : 5506bfa8 - correct
         Events : 35


   Device Role : Active device 1
   Array State : AA ('A' == active, '.' == missing, 'R' == replacing)

Исходная версия bredis, :

Создал массив предварительно поработав утилитой wipefs. Сейчас это выглядит так:

1@1:~$ sudo mdadm --create --verbose /dev/md127 --level=1 --raid-devices=2 /dev/sdc1 /dev/sdd1
mdadm: Note: this array has metadata at the start and
    may not be suitable as a boot device.  If you plan to
    store '/boot' on this device please ensure that
    your boot-loader understands md/v1.x metadata, or use
    --metadata=0.90
mdadm: size set to 3850238976K
mdadm: automatically enabling write-intent bitmap on large array
Continue creating array? y
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md127 started.
1@1:~$ sudo cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md127 : active raid1 sdd1[1] sdc1[0]
      3850238976 blocks super 1.2 [2/2] [UU]
      [>....................]  resync =  0.0% (1669376/3850238976) finish=307.3min speed=208672K/sec
      bitmap: 29/29 pages [116KB], 65536KB chunk

unused devices: <none>
1@1:~$ sudo mdadm -E /dev/sdc1 /dev/sdd1
/dev/sdc1:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x1
     Array UUID : 4502e14e:8e428536:83506fe4:74c86066
           Name : 1:127  (local to host 1)
  Creation Time : Wed Nov 29 10:53:59 2023
     Raid Level : raid1
   Raid Devices : 2

 Avail Dev Size : 7700477952 (3671.87 GiB 3942.64 GB)
     Array Size : 3850238976 (3671.87 GiB 3942.64 GB)
    Data Offset : 264192 sectors
   Super Offset : 8 sectors
   Unused Space : before=264112 sectors, after=0 sectors
          State : active
    Device UUID : 39bf1c5e:271c9d7f:394e0ac7:c5fb90b8

Internal Bitmap : 8 sectors from superblock
    Update Time : Wed Nov 29 10:56:50 2023
  Bad Block Log : 512 entries available at offset 24 sectors
       Checksum : 458cb0e9 - correct
         Events : 34


   Device Role : Active device 0
   Array State : AA ('A' == active, '.' == missing, 'R' == replacing)
/dev/sdd1:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x1
     Array UUID : 4502e14e:8e428536:83506fe4:74c86066
           Name : 1:127  (local to host 1)
  Creation Time : Wed Nov 29 10:53:59 2023
     Raid Level : raid1
   Raid Devices : 2

 Avail Dev Size : 7700477952 (3671.87 GiB 3942.64 GB)
     Array Size : 3850238976 (3671.87 GiB 3942.64 GB)
    Data Offset : 264192 sectors
   Super Offset : 8 sectors
   Unused Space : before=264112 sectors, after=0 sectors
          State : active
    Device UUID : d9cd846c:dc1dbb2c:ba7c524e:a8cb3c85

Internal Bitmap : 8 sectors from superblock
    Update Time : Wed Nov 29 10:56:55 2023
  Bad Block Log : 512 entries available at offset 24 sectors
       Checksum : 5506bfa8 - correct
         Events : 35


   Device Role : Active device 1
   Array State : AA ('A' == active, '.' == missing, 'R' == replacing)