重庆思庄Oracle、Redhat认证学习论坛
标题:
RHEL7.6 +VMWARE 不重启识别新添加磁盘
[打印本页]
作者:
郑全
时间:
2020-1-1 22:47
标题:
RHEL7.6 +VMWARE 不重启识别新添加磁盘
1.虚拟机增加硬盘
我们这里增加500G磁盘
2.确定当前磁盘块设备
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1.7T 0 disk
├─sda1 8:1 0 500M 0 part /boot
├─sda2 8:2 0 132G 0 part
│ ├─centos-root 253:0 0 100G 0 lvm /
│ └─centos-swap 253:1 0 32G 0 lvm [SWAP]
└─sda3 8:3 0 1.5T 0 part
└─vgora-u01 253:2 0 1.5T 0 lvm /u01
sr0 11:0 1 4.4G 0 rom
3.
确定主机总线号
ls -l /sys/class/scsi_host/
lrwxrwxrwx 1 root root 0 Jan 1 21:52 host0 -> ../../devices/pci0000:00/0000:00:10.0/host0/scsi_host/host0
lrwxrwxrwx 1 root root 0 Jan 1 21:52 host2 -> ../../devices/pci0000:00/0000:00:07.1/ata2/host2/scsi_host/host2
lrwxrwxrwx 1 root root 0 Jan 1 21:52 host1 -> ../../devices/pci0000:00/0000:00:07.1/ata1/host1/scsi_host/host1
4.重新扫描SCSI总线来添加设备
echo "- - -">/sys/class/scsi_host/host0/scan
echo "- - -">/sys/class/scsi_host/host1/scan
echo "- - -">/sys/class/scsi_host/host2/scan
5.验证磁盘和分区并确保500GB硬盘已经添加
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1.7T 0 disk
├─sda1 8:1 0 500M 0 part /boot
├─sda2 8:2 0 132G 0 part
│ ├─centos-root 253:0 0 100G 0 lvm /
│ └─centos-swap 253:1 0 32G 0 lvm [SWAP]
└─sda3 8:3 0 1.5T 0 part
└─vgora-u01 253:2 0 1.5T 0 lvm /u01
sdb 8:16 0 500G 0 disk
可以看到500g确实已经增加
欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/)
Powered by Discuz! X3.2