网站首页  软件下载  游戏下载  翻译软件  电子书下载  电影下载  电视剧下载  教程攻略

请输入您要查询的教程攻略:

 

标题 Linux如何在VMware下扩展磁盘
分类 教程攻略-教程-电脑软件教程
内容
    本文就来介绍一下Linux如何在VMware下扩展磁盘。
      1:VMware虚拟磁盘扩容
      如下所示,VMware虚拟磁盘扩容后,使用fdisk -l看不到任何变化
      [root@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下扩展磁盘
      方法1:echo 1 》 /sys/class/scsi_device/device/rescan
      [root@localhost ~]# cd /sys/class/scsi_disk/
      [root@localhost scsi_disk]# ls
      0:0:0:0
      [root@localhost scsi_disk]# cd 0:0:0:0/
      [root@localhost 0:0:0:0]# echo ‘1’ 》 device/rescan
      [root@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下扩展磁盘
      方法2:重新扫描特定的 SCSI Device
      echo 1 》 /sys/block/$DEVICE/device/rescan 用sda, sdb, sdc等替换$DEVICE
      [root@localhost ~]# echo 1 》 /sys/block/sda/device/rescan
      2:VMware新增虚拟磁盘
      首先找到您的主机总线编号
      [root@localhost ~]# grep mpt /sys/class/scsi_host/host?/proc_name
      /sys/class/scsi_host/host0/proc_name:mptspi
      使用下面命令扫描SCSI总线
      [root@localhost ~]# echo “- - -” 》 /sys/class/scsi_host/host0/scan
      好啦,以上就是小编带给大家的全部内容了,是不是很简单呢?你学会了么?想了解更多的相关内容,请随时关注资讯动态吧,欢迎到来下载哦!
随便看

 

霍普软件下载网教程攻略栏目提供软件使用教程、手机游戏攻略等方法技巧。

 

Copyright © 2002-2024 101bt.net All Rights Reserved
更新时间:2025/4/3 15:46:27