--1 操作系统
#more /etc/redhat-release
Red Hat Enterprise Linux Server release 7.4 (Maipo)
--2 文件系统
[root@rac11 /dev/disk/by-path]
#df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rhel-root 267G 24G 244G 9% /
devtmpfs 252G 0 252G 0% /dev
tmpfs 252G 12K 252G 1% /dev/shm
tmpfs 252G 9.9M 252G 1% /run
tmpfs 252G 0 252G 0% /sys/fs/cgroup
/dev/sda3 492M 274M 218M 56% /boot
/dev/mapper/rhel-home 287G 38M 287G 1% /home
tmpfs 51G 12K 51G 1% /run/user/42
tmpfs 51G 0 51G 0% /run/user/0
[root@rac11 /dev/disk/by-path]
#
--3 磁盘
#fdisk -l
Disk /dev/sda: 599.6 GB, 599550590976 bytes, 1170997248 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 262144 bytes / 262144 bytes
Disk label type: dos
Disk identifier: 0x3cb1fa34
Device Boot Start End Blocks Id System
/dev/sda1 92 1331239 665574 de Dell Utility
Partition 1 does not start on physical sector boundary.
/dev/sda2 * 1331240 43274315 20971538 8e Linux LVM
Partition 2 does not start on physical sector boundary.
/dev/sda3 43276288 44300287 512000 83 Linux
/dev/sda4 44300288 1170997247 563348480 5 Extended
/dev/sda5 44302336 1170997247 563347456 8e Linux LVM
Disk /dev/mapper/rhel-root: 286.3 GB, 286282219520 bytes, 559144960 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 262144 bytes / 262144 bytes
Disk /dev/mapper/rhel-swap: 4294 MB, 4294967296 bytes, 8388608 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 262144 bytes / 262144 bytes
Disk /dev/sdb: 2309.0 GB, 2308974417920 bytes, 4509715660 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 524288 bytes / 524288 bytes
Disk /dev/sdc: 2309.0 GB, 2308974417920 bytes, 4509715660 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 524288 bytes / 524288 bytes
Disk /dev/mapper/data01: 2309.0 GB, 2308974417920 bytes, 4509715660 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 524288 bytes / 524288 bytes
Disk /dev/mapper/rhel-home: 307.8 GB, 307757056000 bytes, 601088000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 262144 bytes / 262144 bytes
[root@rac11 /dev/disk/by-path]
--4 逻辑卷和VG
#lvdisplay
--- Logical volume ---
LV Path /dev/rhel/home
LV Name home
VG Name rhel
LV UUID NPN1sC-crjk-oKef-3jfs-3oHE-fmHk-RJ2GEz
LV Write Access read/write
LV Creation host, time localhost, 2018-05-15 12:26:54 +0800
LV Status available
# open 1
LV Size 286.62 GiB
Current LE 73375
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:3
--- Logical volume ---
LV Path /dev/rhel/root
LV Name root
VG Name rhel
LV UUID nXxy3a-ZSD6-GKXA-9dGE-1VMN-6I1B-vZhbp3
LV Write Access read/write
LV Creation host, time localhost, 2018-05-15 12:26:54 +0800
LV Status available
# open 1
LV Size 266.62 GiB
Current LE 68255
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:0
--- Logical volume ---
LV Path /dev/rhel/swap
LV Name swap
VG Name rhel
LV UUID 6q0Rmn-c3zN-en2U-JUd0-bay9-xYc8-A8vMze
LV Write Access read/write
LV Creation host, time localhost, 2018-05-15 12:26:55 +0800
LV Status available
# open 2
LV Size 4.00 GiB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:1
--5
[root@rac11 /dev/disk/by-path]
#ls -lrt /dev/disk/by-path
total 0
lrwxrwxrwx. 1 root root 9 May 25 10:44 pci-0000:d8:00.0-fc-0x5000d31004a4da34-lun-1 -> ../../sdb
lrwxrwxrwx. 1 root root 9 May 25 10:44 pci-0000:d9:00.0-fc-0x5000d31004a4da32-lun-1 -> ../../sdc
lrwxrwxrwx. 1 root root 9 May 25 10:44 pci-0000:19:00.0-scsi-0:2:0:0 -> ../../sda
lrwxrwxrwx. 1 root root 10 May 25 10:44 pci-0000:19:00.0-scsi-0:2:0:0-part4 -> ../../sda4
lrwxrwxrwx. 1 root root 10 May 25 10:44 pci-0000:19:00.0-scsi-0:2:0:0-part5 -> ../../sda5
lrwxrwxrwx. 1 root root 10 May 25 10:44 pci-0000:19:00.0-scsi-0:2:0:0-part2 -> ../../sda2
lrwxrwxrwx. 1 root root 10 May 25 10:44 pci-0000:19:00.0-scsi-0:2:0:0-part1 -> ../../sda1
lrwxrwxrwx. 1 root root 10 May 25 10:44 pci-0000:19:00.0-scsi-0:2:0:0-part3 -> ../../sda3
[root@rac11 /dev/disk/by-path]
#
-- 节点2 上的
[root@rac12 /dev/disk/by-path]
#ls -lrt
total 0
lrwxrwxrwx. 1 root root 9 May 25 2018 pci-0000:d8:00.0-fc-0x5000d31004a4da34-lun-1 -> ../../sdb
lrwxrwxrwx. 1 root root 9 May 25 2018 pci-0000:d9:00.0-fc-0x5000d31004a4da32-lun-1 -> ../../sdc
lrwxrwxrwx. 1 root root 9 May 25 2018 pci-0000:19:00.0-scsi-0:2:0:0 -> ../../sda
lrwxrwxrwx. 1 root root 10 May 25 2018 pci-0000:19:00.0-scsi-0:2:0:0-part4 -> ../../sda4
lrwxrwxrwx. 1 root root 10 May 25 2018 pci-0000:19:00.0-scsi-0:2:0:0-part1 -> ../../sda1
lrwxrwxrwx. 1 root root 10 May 25 2018 pci-0000:19:00.0-scsi-0:2:0:0-part2 -> ../../sda2
lrwxrwxrwx. 1 root root 10 May 25 2018 pci-0000:19:00.0-scsi-0:2:0:0-part5 -> ../../sda5
lrwxrwxrwx. 1 root root 10 May 25 2018 pci-0000:19:00.0-scsi-0:2:0:0-part3 -> ../../sda3
怀疑:这两块是共享存储
lrwxrwxrwx. 1 root root 9 May 25 10:44 pci-0000:d8:00.0-fc-0x5000d31004a4da34-lun-1 -> ../../sdb
lrwxrwxrwx. 1 root root 9 May 25 10:44 pci-0000:d9:00.0-fc-0x5000d31004a4da32-lun-1 -> ../../sdc
但看不出这两块盘,和下面这块盘的关系 ?
Disk /dev/mapper/data01: 2309.0 GB, 2308974417920 bytes, 4509715660 sectors