[+] RAID1 na Windows 8.1 i Debian Jessie - chipset Z87

Wszystko związane z jądrem systemowym, sterownikami, sprzętem itp.
kgoofy
Posty: 2
Rejestracja: 16 lutego 2015, 10:57

[+] RAID1 na Windows 8.1 i Debian Jessie - chipset Z87

Post autor: kgoofy »

Witam szanownych użytkowników Debiana i tego forum.
Piszę ponieważ potrzebuję Waszej pomocy.

Na płycie głównej (Gigabyte GA-Z87X-UD5H) mam kontroler SATA który można wykorzystać do tego aby dwa dyski połączyć w macierz RAID. Chcę mieć RAID1 widoczny w Debianie oraz Windows 8.1.
W komputerze mam 4 dyski 1xSSD, 3xHDD z czego 2 są przeznaczone na macierz RAID1. Problem znajduje się poniżej.

Instalację Debiana uruchamiam z

Kod: Zaznacz cały

dmraid=true
.
System instaluję na SSD, a plik wymiany umieszczam na "wolnym" dysku. Macierzy nie dotykam.
W /dev/mapper widzę

Kod: Zaznacz cały

 control
isw_baefdbhgig_BackupRAID
z poziomu root uruchamiam

Kod: Zaznacz cały

#cfdisk /dev/mapper/isw_baefdbhgig_BackupRAID
i tworzę jedną wielką partycję. Poniżej wynik fdisk -l:

Kod: Zaznacz cały

#fdisk -l

Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x24af0a11

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1            2048 304883711 304881664 145.4G 83 Linux
/dev/sda2  *    304883712 305600511    716800   350M  7 HPFS/NTFS/exFAT
/dev/sda3       305600512 500115455 194514944  92.8G  7 HPFS/NTFS/exFAT

Disk /dev/sdd: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x7e99a80e

Device     Boot    Start        End    Sectors   Size Id Type
/dev/sdd1           2048   20973567   20971520    10G  7 HPFS/NTFS/exFAT
/dev/sdd2       20973568   41945087   20971520    10G 83 Linux
/dev/sdd3       41945088 1953519615 1911574528 911.5G  7 HPFS/NTFS/exFAT

[B]Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xb56f7206

Device     Boot Start        End    Sectors   Size Id Type
/dev/sdb1        2048 1953493255 1953491208 931.5G  7 HPFS/NTFS/exFAT

Disk /dev/sdc: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xb56f7206

Device     Boot Start        End    Sectors   Size Id Type
/dev/sdc1        2048 1953493255 1953491208 931.5G  7 HPFS/NTFS/exFAT

Disk /dev/mapper/isw_baefdbhgig_BackupRAID: 931.5 GiB, 1000188547072 bytes, 1953493256 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xb56f7206

Device                                 Boot Start        End    Sectors   Size Id Type
/dev/mapper/isw_baefdbhgig_BackupRAID1       2048 1953493255 1953491208 931.5G  7 HPFS/NTFS/exFAT[/B]
Problem:
Windows normalnie widzi stworzoną partycję, ale w Debianie w /dev/mapper nie ma pliku isw_baefdbhgig_BackupRAID1. Proszę o pomoc.

Kod: Zaznacz cały

dmraid -r

/dev/sdc: isw, "isw_baefdbhgig", GROUP, ok, 1953525166 sectors, data@ 0
/dev/sdb: isw, "isw_baefdbhgig", GROUP, ok, 1953525166 sectors, data@ 0

Kod: Zaznacz cały

dmraid -ay

RAID set "isw_baefdbhgig_BackupRAID" already active
error: dos: partition address past end of RAID device

Kod: Zaznacz cały

dmraid -s

*** Group superset isw_baefdbhgig
--> Active Subset
name   : isw_baefdbhgig_BackupRAID
size   : 1953493248
stride : 128
type   : mirror
status : ok
subsets: 0
devs   : 2
spares : 0
Dodam, że wcześniej na macierzy w windowsie utworzyłem za pomocą "Zarządania dyskami" kilka partycji ale zrezygnowałem z tego i wybrałem jedną wielką partycję.

Kod: Zaznacz cały


Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x24af0a11

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1            2048 304883711 304881664 145.4G 83 Linux
/dev/sda2  *    304883712 305600511    716800   350M  7 HPFS/NTFS/exFAT
/dev/sda3       305600512 500115455 194514944  92.8G  7 HPFS/NTFS/exFAT

[B]Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xb56f7206

Device     Boot Start        End    Sectors   Size Id Type
/dev/sdb1        2048 1953488895 1953486848 931.5G  7 HPFS/NTFS/exFAT

Disk /dev/sdc: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xb56f7206

Device     Boot Start        End    Sectors   Size Id Type
/dev/sdc1        2048 1953488895 1953486848 931.5G  7 HPFS/NTFS/exFAT

Disk /dev/sdd: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x7e99a80e[/B]

Device     Boot    Start        End    Sectors   Size Id Type
/dev/sdd1           2048   20973567   20971520    10G  7 HPFS/NTFS/exFAT
/dev/sdd2       20973568   41945087   20971520    10G 83 Linux
/dev/sdd3       41945088 1953519615 1911574528 911.5G  7 HPFS/NTFS/exFAT

[B]Disk /dev/mapper/isw_baefdbhgig_BackupRAID: 931.5 GiB, 1000188547072 bytes, 1953493256 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xb56f7206

Device                                 Boot Start        End    Sectors   Size Id Type
/dev/mapper/isw_baefdbhgig_BackupRAID1       2048 1953488895 1953486848 931.5G  7 HPFS/NTFS/exFAT

Disk /dev/mapper/isw_baefdbhgig_BackupRAID1: 931.5 GiB, 1000185266176 bytes, 1953486848 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x73736572

Device                                   Boot      Start        End    Sectors   Size Id Type
[color=#0000cd]/dev/mapper/isw_baefdbhgig_BackupRAID1p1 [/color]     1920221984 3736432267 1816210284   866G 72 unknown
/dev/mapper/isw_baefdbhgig_BackupRAID1p2 ?    1936028192 3889681299 1953653108 931.6G 6c unknown
/dev/mapper/isw_baefdbhgig_BackupRAID1p3 ?             0          0          0     0B  0 Empty
/dev/mapper/isw_baefdbhgig_BackupRAID1p4        27722122   27722568        447 223.5K  0 Empty

[color=#ff0000]Partition 5 does not start physical sector boundary.[/color]

Partition table entries are not in disk order.[/B]
Macierz jest złożona z dysków /dev/sdb oraz /dev/sdc.

Po stworzeniu partycji w windowsie w Debianie mam urządzenie /dev/mapper/isw_baefdbhgig_BackupRAID1 (bez p1 na końcu)

Dodatkowo w /var/log/messages dostaję komunikat:
Feb 16 12:00:59 master dmraid-activate: ERROR: Cannot retrieve RAID set information for isw_baefdbhgig_BackupRAID
Feb 16 12:00:59 master dmraid-activate: ERROR: Cannot retrieve RAID set information for isw_baefdbhgig_BackupRAID

tego komunikatu nie ma kiedy utworzę partycję w cfdisku w Debianie

Kod: Zaznacz cały

lspci -k
00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06)
    Subsystem: Gigabyte Technology Co., Ltd Device 5000
    Kernel driver in use: hsw_uncore
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
    Subsystem: Gigabyte Technology Co., Ltd Device d000
    Kernel driver in use: i915
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
    Subsystem: Intel Corporation Device 2010
    Kernel driver in use: snd_hda_intel
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 04)
    Subsystem: Gigabyte Technology Co., Ltd Device 5007
    Kernel driver in use: xhci_hcd
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
    Subsystem: Gigabyte Technology Co., Ltd Device 1c3a
    Kernel driver in use: mei_me
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-V (rev 04)
    Subsystem: Gigabyte Technology Co., Ltd Device e000
    Kernel driver in use: e1000e
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 04)
    Subsystem: Gigabyte Technology Co., Ltd Device 5006
    Kernel driver in use: ehci-pci
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 04)
    Subsystem: Gigabyte Technology Co., Ltd Device a092
    Kernel driver in use: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d4)
    Kernel driver in use: pcieport
00:1c.3 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4 (rev d4)
    Kernel driver in use: pcieport
00:1c.4 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #5 (rev d4)
    Kernel driver in use: pcieport
00:1c.6 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #7 (rev d4)
    Kernel driver in use: pcieport
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 04)
    Subsystem: Gigabyte Technology Co., Ltd Device 5006
    Kernel driver in use: ehci-pci
00:1f.0 ISA bridge: Intel Corporation Z87 Express LPC Controller (rev 04)
    Subsystem: Gigabyte Technology Co., Ltd Device 5001
    Kernel driver in use: lpc_ich
00:1f.2 RAID bus controller: Intel Corporation 82801 SATA Controller [RAID mode] (rev 04)
    Subsystem: Gigabyte Technology Co., Ltd Device b005
    Kernel driver in use: ahci
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 04)
    Subsystem: Gigabyte Technology Co., Ltd Device 5001
02:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)
    Subsystem: Gigabyte Technology Co., Ltd Device e000
    Kernel driver in use: igb
03:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9230 PCIe SATA 6Gb/s Controller (rev 10)
    Subsystem: Gigabyte Technology Co., Ltd Device b000
    Kernel driver in use: ahci
04:00.0 PCI bridge: Integrated Technology Express, Inc. Device 8892 (rev 41)
05:01.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller (rev c0)
    Subsystem: Gigabyte Technology Co., Ltd GA-7VT600-1394 Motherboard
    Kernel driver in use: firewire_ohci

Kod: Zaznacz cały

lspci -n
00:00.0 0600: 8086:0c00 (rev 06)
00:02.0 0300: 8086:0412 (rev 06)
00:03.0 0403: 8086:0c0c (rev 06)
00:14.0 0c03: 8086:8c31 (rev 04)
00:16.0 0780: 8086:8c3a (rev 04)
00:19.0 0200: 8086:153b (rev 04)
00:1a.0 0c03: 8086:8c2d (rev 04)
00:1b.0 0403: 8086:8c20 (rev 04)
00:1c.0 0604: 8086:8c10 (rev d4)
00:1c.3 0604: 8086:8c16 (rev d4)
00:1c.4 0604: 8086:8c18 (rev d4)
00:1c.6 0604: 8086:8c1c (rev d4)
00:1d.0 0c03: 8086:8c26 (rev 04)
00:1f.0 0601: 8086:8c44 (rev 04)
00:1f.2 0104: 8086:2822 (rev 04)
00:1f.3 0c05: 8086:8c22 (rev 04)
02:00.0 0200: 8086:1533 (rev 03)
03:00.0 0106: 1b4b:9230 (rev 10)
04:00.0 0604: 1283:8892 (rev 41)
05:01.0 0c00: 1106:3044 (rev c0)

Kod: Zaznacz cały

uname -a

Linux master 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt4-3 (2015-02-03) i686 GNU/Linux

Kod: Zaznacz cały

dpkg --print-architecture

i386
f2
kgoofy
Posty: 2
Rejestracja: 16 lutego 2015, 10:57

Post autor: kgoofy »

Rozwiązanie:
Usunąłem w BIOSie i stworzyłem nową macierz.
Zamiast używać fdisk lub cfdisk użyłem gparted do utworzenia partycji.
Teraz wszystko jest OK.
Awatar użytkownika
Yampress
Administrator
Posty: 6420
Rejestracja: 09 sierpnia 2007, 21:41
Lokalizacja: PL

Post autor: Yampress »

Macierze są sprzętowe i programowe...
ODPOWIEDZ