Fdisk

哪個raid驅動器可以掛載?

  • October 28, 2015

我有一個安裝了 4 個驅動器的 Centos 7 系統。它們在 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

考慮到您的驅動器在鏡像中,您不能直接訪問它們(使用/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. 你必須分區和東西:)

引用自:https://unix.stackexchange.com/questions/239154