LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   FakeRAID 1 on Fedora problem (https://www.linuxquestions.org/questions/linux-hardware-18/fakeraid-1-on-fedora-problem-4175575717/)

enNu9WJf3 03-23-2016 06:00 PM

FakeRAID 1 on Fedora problem
 
Hi All,

Trying to correctly configure software RAID1
(FakeRaid) (two mirrored hard drives) on motherboard ASUS H97M-PLUS.

I have selected RAID in BIOS settings, rebooted, when prompted clicked CTR+I, configured two identical hard drives in system as mirrored RAID 1.
After that I had problem with running Fedora 23 (because I have separate disk for system), but I have made some changes configuration in BIOS and Fedora 23 run ok.

After starting the system, I have checked:
Code:

fdisk -l

Dysk /dev/sda: 465,8 GiB, bajtów: 500107862016, sektorów: 976773168
Jednostki: sektorów, czyli 1 * 512 = 512 bajtów
Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 512
Rozmiar we/wy (minimalny/optymalny) w bajtach: 512 / 512
Typ etykiety dysku: gpt
Identyfikator dysku: 657C5CA6-0EE3-4ABB-8CBA-E34F31DF3A2B

Urządzenie Początek    Koniec  Sektory Rozmiar Typ
/dev/sda1      2048    411647    409600    200M System EFI
/dev/sda2    411648  1435647  1024000    500M Linux - system plików
/dev/sda3  1435648 976773119 975337472  465,1G Linux LVM


Dysk /dev/sdb: 2,7 TiB, bajtów: 3000592982016, sektorów: 5860533168
Jednostki: sektorów, czyli 1 * 512 = 512 bajtów
Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 4096
Rozmiar we/wy (minimalny/optymalny) w bajtach: 4096 / 4096


Dysk /dev/sdc: 2,7 TiB, bajtów: 3000592982016, sektorów: 5860533168
Jednostki: sektorów, czyli 1 * 512 = 512 bajtów
Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 4096
Rozmiar we/wy (minimalny/optymalny) w bajtach: 4096 / 4096


Dysk /dev/mapper/fedora_htpc-root: 50 GiB, bajtów: 53687091200, sektorów: 104857600
Jednostki: sektorów, czyli 1 * 512 = 512 bajtów
Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 512
Rozmiar we/wy (minimalny/optymalny) w bajtach: 512 / 512


Dysk /dev/mapper/fedora_htpc-swap: 7,8 GiB, bajtów: 8321499136, sektorów: 16252928
Jednostki: sektorów, czyli 1 * 512 = 512 bajtów
Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 512
Rozmiar we/wy (minimalny/optymalny) w bajtach: 512 / 512


Dysk /dev/md126: 2,7 TiB, bajtów: 3000590401536, sektorów: 5860528128
Jednostki: sektorów, czyli 1 * 512 = 512 bajtów
Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 4096
Rozmiar we/wy (minimalny/optymalny) w bajtach: 4096 / 4096


Dysk /dev/mapper/fedora_htpc-home: 407,3 GiB, bajtów: 437356855296, sektorów: 854212608
Jednostki: sektorów, czyli 1 * 512 = 512 bajtów
Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 512
Rozmiar we/wy (minimalny/optymalny) w bajtach: 512 / 512

Code:

cat /proc/mdstat

Personalities : [raid1]
md126 : active raid1 sdb[1] sdc[0]
      2930264064 blocks super external:/md127/0 [2/2] [UU]
      [=========>...........]  resync = 46.0% (1349019072/2930264196) finish=214.2min speed=123020K/sec

md127 : inactive sdb[1](S) sdc[0](S)
      4776 blocks super external:imsm

unused devices: <none>

Code:

mdadm --detail /dev/md126

/dev/md126:
      Container : /dev/md/imsm0, member 0
    Raid Level : raid1
    Array Size : 2930264064 (2794.52 GiB 3000.59 GB)
  Used Dev Size : 2930264196 (2794.52 GiB 3000.59 GB)
  Raid Devices : 2
  Total Devices : 2

          State : clean, resyncing
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

  Resync Status : 46% complete


          UUID : 5fd3598a:ff6cb6ee:813fb9fc:9e0291c9
    Number  Major  Minor  RaidDevice State
      1      8      16        0      active sync  /dev/sdb
      0      8      32        1      active sync  /dev/sdc

Code:

mdadm --examine /dev/sdb

/dev/sdb:
          Magic : Intel Raid ISM Cfg Sig.
        Version : 1.3.00
    Orig Family : 8f798963
        Family : 8f798963
    Generation : 00000023
    Attributes : All supported
          UUID : 1168397c:7c540c76:c8bbd2a4:ec86ab84
      Checksum : d5bd3a57 correct
    MPB Sectors : 2
          Disks : 2
  RAID Devices : 1

  Disk00 Serial : WD-WCC4N7XUAJ6V
          State : active
            Id : 00000002
    Usable Size : 5860528392 (2794.52 GiB 3000.59 GB)

[Volume1]:
          UUID : 5fd3598a:ff6cb6ee:813fb9fc:9e0291c9
    RAID Level : 1 <-- 1
        Members : 2 <-- 2
          Slots : [UU] <-- [UU]
    Failed disk : none
      This Slot : 0
    Array Size : 5860528128 (2794.52 GiB 3000.59 GB)
  Per Dev Size : 5860528392 (2794.52 GiB 3000.59 GB)
  Sector Offset : 0
    Num Stripes : 22892688
    Chunk Size : 64 KiB <-- 64 KiB
      Reserved : 0
  Migrate State : initialize
      Map State : normal <-- uninitialized
    Checkpoint : 5114535 (512)
    Dirty State : clean

  Disk01 Serial : WD-WCC4N7XUA77D
          State : active
            Id : 00000004
    Usable Size : 5860528392 (2794.52 GiB 3000.59 GB)

Code:

mdadm --examine /dev/sdc

/dev/sdc:
          Magic : Intel Raid ISM Cfg Sig.
        Version : 1.3.00
    Orig Family : 8f798963
        Family : 8f798963
    Generation : 00000023
    Attributes : All supported
          UUID : 1168397c:7c540c76:c8bbd2a4:ec86ab84
      Checksum : d5bd3a57 correct
    MPB Sectors : 2
          Disks : 2
  RAID Devices : 1

  Disk01 Serial : WD-WCC4N7XUA77D
          State : active
            Id : 00000004
    Usable Size : 5860528392 (2794.52 GiB 3000.59 GB)

[Volume1]:
          UUID : 5fd3598a:ff6cb6ee:813fb9fc:9e0291c9
    RAID Level : 1 <-- 1
        Members : 2 <-- 2
          Slots : [UU] <-- [UU]
    Failed disk : none
      This Slot : 1
    Array Size : 5860528128 (2794.52 GiB 3000.59 GB)
  Per Dev Size : 5860528392 (2794.52 GiB 3000.59 GB)
  Sector Offset : 0
    Num Stripes : 22892688
    Chunk Size : 64 KiB <-- 64 KiB
      Reserved : 0
  Migrate State : initialize
      Map State : normal <-- uninitialized
    Checkpoint : 5114535 (512)
    Dirty State : clean

  Disk00 Serial : WD-WCC4N7XUAJ6V
          State : active
            Id : 00000002
    Usable Size : 5860528392 (2794.52 GiB 3000.59 GB)

Code:

mdadm --examine --scan

ARRAY metadata=imsm UUID=1168397c:7c540c76:c8bbd2a4:ec86ab84
ARRAY /dev/md/Volume1 container=1168397c:7c540c76:c8bbd2a4:ec86ab84 member=0 UUID=5fd3598a:ff6cb6ee:813fb9fc:9e0291c9

Code:

mdadm --detail-platform

      Platform : Intel(R) Rapid Storage Technology
        Version : 13.0.0.2075
    RAID Levels : raid0 raid1 raid10 raid5
    Chunk Sizes : 4k 8k 16k 32k 64k 128k
    2TB volumes : supported
      2TB disks : supported
      Max Disks : 6
    Max Volumes : 2 per array, 4 per controller
 I/O Controller : /sys/devices/pci0000:00/0000:00:1f.2 (SATA)
          Port1 : /dev/sda (6VEJHGG0)
          Port2 : /dev/sdb (WD-WCC4N7XUAJ6V)
          Port4 : /dev/sdc (WD-WCC4N7XUA77D)
          Port0 : - no device attached -
          Port3 : - no device attached -
          Port5 : - no device attached -

Code:

dmraid -r

/dev/sdc: isw, "isw_ceahbagjbf", GROUP, ok, 5860533165 sectors, data@ 0
/dev/sdb: isw, "isw_ceahbagjbf", GROUP, ok, 5860533165 sectors, data@ 0

Code:

dmraid -s

*** Group superset isw_ceahbagjbf
--> Subset
name  : isw_ceahbagjbf_Volume1
size  : 1565560832
stride : 128
type  : mirror
status : ok
subsets: 0
devs  : 2
spares : 0

Code:

lsblk

NAME                MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT
sda                    8:0    0 465,8G  0 disk
├─sda1                8:1    0  200M  0 part  /boot/efi
├─sda2                8:2    0  500M  0 part  /boot
└─sda3                8:3    0 465,1G  0 part
  ├─fedora_htpc-root 253:0    0    50G  0 lvm  /
  ├─fedora_htpc-swap 253:1    0  7,8G  0 lvm  [SWAP]
  └─fedora_htpc-home 253:2    0 407,3G  0 lvm  /home
sdb                    8:16  0  2,7T  0 disk
└─md126                9:126  0  2,7T  0 raid1
sdc                    8:32  0  2,7T  0 disk
└─md126                9:126  0  2,7T  0 raid1

The problem is that I do not know what to do next. Should I create partitions on /dev/sdb and /dev/sdc. And Should I create partitions on /dev/md126 and mout and copy files and all files will saves on both devices.

I did not configure RAID in Fedora, all these was activated after I changed RAID in BIOS.

syg00 03-23-2016 08:12 PM

I would suggest some time spent on Linux_Raid would be beneficial.
You have plenty of time - keep an eye on mdstat; leave everything alone until that resync finishes.

It's not really fakeraid in the classic sense - this is Intels attempt. The wiki has a little on it, else search on "imsm Intel".
To answer your question, probably best to create a LVM pv on md126 so you can create lvs at will. Again, the wiki is the place to start.

BTW, my Polish is non-existent, so English on the messages would help.

enNu9WJf3 04-11-2016 07:48 AM

Everything works correctly, created a file system solved the problem.
After connecting drive to another PC on both drives I've seen the same files.


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