亚洲一卡2卡3卡4卡乱码,qvod 欧美 日韩,天天摸天天碰天天添,最近更新中文字幕在线,久久国产成人免费网站

找軟件用軟件,就到華軍軟件園! 軟件發(fā)布 AI產(chǎn)品榜
所在位置: 首頁(yè) — 教程攻略 — 教程 — 電腦軟件教程  —  Linux如何...

Linux如何在VMware下擴(kuò)展磁盤

作者:漩渦鳴人 日期:2017-05-19

本文就來(lái)介紹一下Linux如何在VMware下擴(kuò)展磁盤。

  1:VMware虛擬磁盤擴(kuò)容

  如下所示,VMware虛擬磁盤擴(kuò)容后,使用fdisk -l看不到任何變化

 ?。踨oot@localhost ~]# fdisk -l

  Disk /dev/sda: 171.7 GB, 171798691840 bytes

  255 heads, 63 sectors/track, 20886 cylinders

  Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot Start End Blocks Id System

  /dev/sda1 * 1 13 104391 83 Linux

  /dev/sda2 14 15665 125724690 8e Linux LVM

  /dev/sda3 15666 15795 1044225 83 Linux

  /dev/sda4 15796 20886 40893457+ 83 Linux

  Disk /dev/dm-0: 126.6 GB, 126600871936 bytes

  255 heads, 63 sectors/track, 15391 cylinders

  Units = cylinders of 16065 * 512 = 8225280 bytes

  Disk /dev/dm-0 doesn‘t contain a valid partition table

  Disk /dev/dm-1: 2113 MB, 2113929216 bytes

  255 heads, 63 sectors/track, 257 cylinders

  Units = cylinders of 16065 * 512 = 8225280 bytes

  Disk /dev/dm-1 doesn’t contain a valid partition table

Linux如何在VMware下擴(kuò)展磁盤

  方法1:echo 1 》 /sys/class/scsi_device/device/rescan

 ?。踨oot@localhost ~]# cd /sys/class/scsi_disk/

  [root@localhost scsi_disk]# ls

  0:0:0:0

 ?。踨oot@localhost scsi_disk]# cd 0:0:0:0/

 ?。踨oot@localhost 0:0:0:0]# echo ‘1’ 》 device/rescan

 ?。踨oot@localhost 0:0:0:0]# fdisk -l

  Disk /dev/sda: 173.9 GB, 173946175488 bytes

  255 heads, 63 sectors/track, 21147 cylinders

  Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot Start End Blocks Id System

  /dev/sda1 * 1 13 104391 83 Linux

  /dev/sda2 14 15665 125724690 8e Linux LVM

  /dev/sda3 15666 15795 1044225 83 Linux

  /dev/sda4 15796 20886 40893457+ 83 Linux

  Disk /dev/dm-0: 126.6 GB, 126600871936 bytes

  255 heads, 63 sectors/track, 15391 cylinders

  Units = cylinders of 16065 * 512 = 8225280 bytes

  Disk /dev/dm-0 doesn‘t contain a valid partition table

  Disk /dev/dm-1: 2113 MB, 2113929216 bytes

  255 heads, 63 sectors/track, 257 cylinders

  Units = cylinders of 16065 * 512 = 8225280 bytes

  Disk /dev/dm-1 doesn’t contain a valid partition table

Linux如何在VMware下擴(kuò)展磁盤

  方法2:重新掃描特定的 SCSI Device

  echo 1 》 /sys/block/$DEVICE/device/rescan 用sda, sdb, sdc等替換$DEVICE

 ?。踨oot@localhost ~]# echo 1 》 /sys/block/sda/device/rescan

  2:VMware新增虛擬磁盤

  首先找到您的主機(jī)總線編號(hào)

 ?。踨oot@localhost ~]# grep mpt /sys/class/scsi_host/host?/proc_name

  /sys/class/scsi_host/host0/proc_name:mptspi

  使用下面命令掃描SCSI總線

 ?。踨oot@localhost ~]# echo “- - -” 》 /sys/class/scsi_host/host0/scan

       好啦,以上就是華軍小編帶給大家的全部?jī)?nèi)容了,是不是很簡(jiǎn)單呢?你學(xué)會(huì)了么?想了解更多的相關(guān)內(nèi)容,請(qǐng)隨時(shí)關(guān)注華軍資訊動(dòng)態(tài)吧,歡迎到華軍來(lái)下載哦!

相關(guān)文章