esxi扩容磁盘 fdisk -l没用扩容
登录Esxi管理界面扩容磁盘
进入服务器查看 没用变化
(有些可能进去磁盘就是更新,直接就是扩容的,但是没扩容就需要执行下面的命令)
[root@234-ces /]# fdisk -l
Disk /dev/sda: 85.9 GB, 85899345920 bytes, 167772160 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: 0x00063c52
ls /sys/class/scsi_disk/
cd /sys/class/scsi_disk/0:0:0:0
echo '1' > device/rescan 需要触发系统重新扫描这个磁盘
[root@234-ces 0:0:0:0]# fdisk -l
Disk /dev/sda: 3298.5 GB, 3298534883328 bytes, 6442450944 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: 0x00063c52
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 2091007 1044480 83 Linux
/dev/sda2 2091008 167772159 82840576 8e Linux LVM