哪个 raid 驱动器可以安装?

哪个 raid 驱动器可以安装?

我有一个 Centos 7 系统,安装了 4 个驱动器。它们在 BIOS 中设置为 2 个镜像对。系统安装时,默认安装只看到其中一对并安装在其上。我现在正在尝试找出要安装哪个驱动器才能访问另一个驱动器对。从 fdisk -l 可以看出,驱动器 sdc 是 Centos 选择的驱动器,sdd 是镜像。因此,我应该挂载 sda,而 sdb 将成为它的镜像。但我怎样才能确定呢?它们是否以某种方式反向完成,其中 sdd 是主要的,sdc 是镜像,因此我应该挂载 sdb? df -u 似乎没有提供任何线索。

df -h 产生这个...

Filesystem                                                          1K-blocks    Used Available Use% Mounted on 
/dev/mapper/centos-root    52403200 1269720  51133480   3% / 
devtmpfs                            3962440       0   3962440   0% /dev 
tmpfs                              3971896       0   3971896   0% /dev/shm 
tmpfs                          3971896    8872   3963024   1% /run 
tmpfs                              3971896       0   3971896   0% /sys/fs/cgroup 
/dev/mapper/centos-home  914001876  690184 913311692   1% /home 
/dev/mapper/ddf1_4c5349202020202080862925000000004711471100001e78p1    508588  167460    341128  33% /boot

这是 fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes, 1953525168 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


Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes, 1953525168 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


Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes, 1953525168 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
Disk label type: dos
Disk identifier: 0x000bd18a

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *        2048     1026047      512000   83  Linux
/dev/sdc2         1026048  1951170559   975072256   8e  Linux LVM

Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes, 1953525168 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
Disk label type: dos
Disk identifier: 0x000bd18a

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1   *        2048     1026047      512000   83  Linux
/dev/sdd2         1026048  1951170559   975072256   8e  Linux LVM

Disk /dev/mapper/ddf1_4c5349202020202080862925000000004711471100001e78: 999.0 GB, 998999326720 bytes, 1951170560 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
Disk label type: dos
Disk identifier: 0x000bd18a

                                                             Device Boot      Start         End      Blocks   Id  System
/dev/mapper/ddf1_4c5349202020202080862925000000004711471100001e78p1   *        2048     1026047      512000   83  Linux
/dev/mapper/ddf1_4c5349202020202080862925000000004711471100001e78p2         1026048  1951170559   975072256   8e  Linux LVM

Disk /dev/mapper/ddf1_4c5349202020202080862925000000004711471100001e78p1: 524 MB, 524288000 bytes, 1024000 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


Disk /dev/mapper/ddf1_4c5349202020202080862925000000004711471100001e78p2: 998.5 GB, 998473990144 bytes, 1950144512 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


Disk /dev/mapper/centos-swap: 8321 MB, 8321499136 bytes, 16252928 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


Disk /dev/mapper/centos-root: 53.7 GB, 53687091200 bytes, 104857600 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


Disk /dev/mapper/centos-home: 936.4 GB, 936395145216 bytes, 1828896768 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


Disk /dev/mapper/ddf1_4c53492020202020808629250000000047114711000028a0: 999.0 GB, 998999326720 bytes, 1951170560 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

答案1

考虑到您的驱动器位于镜像中,您不会直接访问它们(使用/dev/sd*),而是使用该/dev/mapper/ddf*设备。

您有两个ddf设备:

  1. /dev/mapper/ddf1_4c53492020202020808629250000000047114711000028a0出于/dev/sda/dev/sdb
  2. /dev/mapper/ddf1_4c5349202020202080862925000000004711471100001e78出于/dev/sdc/dev/sdd

/dev/mapper/ddf1_4c5349202020202080862925000000004711471100001e78有两个分区/dev/mapper/ddf1_4c5349202020202080862925000000004711471100001e78p1/dev/mapper/ddf1_4c5349202020202080862925000000004711471100001e78p2,第二个分区是和的LVM卷。/dev/mapper/centos-swap/dev/mapper/centos-root/dev/mapper/centos-home

所以您正在寻找的驱动器是/dev/mapper/ddf1_4c53492020202020808629250000000047114711000028a0.你必须进行分区和填充:)

相关内容