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
답변1
/dev/sd*
드라이브가 미러에 있다는 점을 고려하면 드라이브에 직접 액세스(사용 ) 하지 않고 /dev/mapper/ddf*
장치를 사용합니다.
두 개의 장치가 있습니다 ddf
:
/dev/mapper/ddf1_4c53492020202020808629250000000047114711000028a0
/dev/sda
조화롭지 못하다/dev/sdb
/dev/mapper/ddf1_4c5349202020202080862925000000004711471100001e78
/dev/sdc
조화롭지 못하다/dev/sdd
/dev/mapper/ddf1_4c5349202020202080862925000000004711471100001e78
/dev/mapper/ddf1_4c5349202020202080862925000000004711471100001e78p1
두 개의 파티션 이 있고 /dev/mapper/ddf1_4c5349202020202080862925000000004711471100001e78p2
두 번째 파티션은 LVM
and의 볼륨입니다./dev/mapper/centos-swap
/dev/mapper/centos-root
/dev/mapper/centos-home
따라서 찾고 있는 드라이브는 입니다 /dev/mapper/ddf1_4c53492020202020808629250000000047114711000028a0
. 파티션을 나누고 채워야 합니다. :)