다운그레이드된 RAID5를 사용하여 GRUB2 부팅

다운그레이드된 RAID5를 사용하여 GRUB2 부팅

저는 Debian Jessie를 사용하여 맞춤형 NAS를 구축하고 있습니다. 소프트웨어 RAID5 구성의 4TB 하드 드라이브 3개가 있습니다. 세 개의 드라이브가 모두 있으면 완벽하게 작동합니다.

드라이브에 문제가 발생하여 성능이 저하된 상태에서 시스템을 부팅할 수 있으면 어떻게 되는지 테스트하려고 합니다. 드라이브를 분리하고 컴퓨터를 부팅하려고 하면 grub에서 다음이 표시됩니다.

Unable to find LVM volume system/root
  Volume group "system" not found
  Skipping volume group system

마침내 grub은 포기하고 나를 initramfs 쉘에 떨어뜨렸습니다.

세 드라이브 모두의 파티션은 다음과 같습니다.

$ sudo parted /dev/sda print
Model: ATA ST4000VN000-1H41 (scsi)
Disk /dev/sda: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name  Flags
 1      1049kB  2097kB  1049kB                     bios_grub
 2      2097kB  4001GB  4001GB                     raid

이것이 내 RAID 설정입니다 ...

$ sudo mdadm --detail /dev/md0
/dev/md0:
        Version : 1.2
  Creation Time : Tue Jun 30 12:56:49 2015
     Raid Level : raid5
     Array Size : 7813769216 (7451.79 GiB 8001.30 GB)
  Used Dev Size : 3906884608 (3725.90 GiB 4000.65 GB)
   Raid Devices : 3
  Total Devices : 3
    Persistence : Superblock is persistent

  Intent Bitmap : Internal

    Update Time : Wed Jul  1 14:37:11 2015
          State : clean 
 Active Devices : 3
Working Devices : 3
 Failed Devices : 0
  Spare Devices : 0

         Layout : left-symmetric
     Chunk Size : 512K

           Name : kai:0  (local to host kai)
           UUID : 2743ad66:6b1df25a:5c41ca14:19084f56
         Events : 10286

    Number   Major   Minor   RaidDevice State
       0       8        2        0      active sync   /dev/sda2
       1       8       18        1      active sync   /dev/sdb2
       2       8       34        2      active sync   /dev/sdc2

논리 볼륨 설정...

$ sudo lvdisplay
--- Logical volume ---
LV Path                /dev/system/root
LV Name                root
VG Name                system
LV UUID                1A55Kr-IR4x-O1Z8-YXFj-BvUJ-PMcs-uRjEsv
LV Write Access        read/write
LV Creation host, time kai, 2015-06-30 12:57:39 -0400
LV Status              available
# open                 1
LV Size                29.80 GiB
Current LE             7629
Segments               1
Allocation             inherit
Read ahead sectors     auto
- currently set to     4096
Block device           253:0

--- Logical volume ---
LV Path                /dev/system/home
LV Name                home
VG Name                system
LV UUID                h6Piot-XXYn-TBdK-s1Ja-YN1z-Fbdn-Nv72IT
LV Write Access        read/write
LV Creation host, time kai, 2015-06-30 12:57:49 -0400
LV Status              available
# open                 1
LV Size                14.90 GiB
Current LE             3814
Segments               1
Allocation             inherit
Read ahead sectors     auto
- currently set to     4096
Block device           253:2

--- Logical volume ---
LV Path                /dev/system/swap
LV Name                swap
VG Name                system
LV UUID                yh7WRj-w4OW-WV4M-q0hN-NlCx-RPiL-usSz6j
LV Write Access        read/write
LV Creation host, time kai, 2015-06-30 12:57:57 -0400
LV Status              available
# open                 2
LV Size                3.72 GiB
Current LE             953
Segments               1
Allocation             inherit
Read ahead sectors     auto
- currently set to     4096
Block device           253:1

--- Logical volume ---
LV Path                /dev/system/storage
LV Name                storage
VG Name                system
LV UUID                U9M7g3-sL2j-Gut6-TaNJ-BNWN-P3KM-DPpa4z
LV Write Access        read/write
LV Creation host, time kai, 2015-06-30 12:58:03 -0400
LV Status              available
# open                 1
LV Size                7.23 TiB
Current LE             1895262
Segments               1
Allocation             inherit
Read ahead sectors     auto
- currently set to     4096
Block device           253:3

그리고/etc/fstab

/dev/mapper/system-root /               xfs     noatime         0       1
/dev/mapper/system-home /home           xfs     nodev           0       2
/dev/mapper/system-storage /mnt/storage xfs     nodev,noexec    0       2
/dev/mapper/system-swap none            swap    sw              0       0

다음과 같이 세 드라이브 모두에 ​​grub을 설치했습니다.

$ grub-install /dev/sda
$ grub-install /dev/sdb
$ grub-install /dev/sdc

저하된 어레이를 부팅할 수 없는 이유에 대한 아이디어가 있습니까? 시간을 내주셔서 감사합니다.

관련 정보