Welcome 微信登录

首页 / 操作系统 / Linux / ESXI 4.1 Linux虚拟机调整扩充磁盘大小

首先调整磁盘大小为60G点确定后,重启虚拟机OS[root@download1 ~] shutdown -r now[root@download1 ~]fdisk -lDisk /dev/sda: 64.4 GB, 64424509440 bytes255 heads, 63 sectors/track, 7832 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDevice Boot      Start       End      Blocks Id  System/dev/sda1 *         1          13      104391 83  Linux/dev/sda2              14        2610    20860402+  8e  Linux LVM[root@download1 ~]# df -hl文件系统              容量  已用 可用 已用% 挂载点/dev/mapper/VolGroup00-LogVol0019G 12G  6.4G  64% //dev/sda1              99M 20M 75M  21% /boottmpfs               2.0G   0  2.0G 0% /dev/shm[root@download1 ~]# fdisk /dev/sdaThe number of cylinders for this disk is set to 7832.There is nothing wrong with that, but this is larger than 1024,and could in certain setups cause problems with:1) software that runs at boot time (e.g., old versions of LILO)2) booting and partitioning software from other OSs(e.g., DOS FDISK, OS/2 FDISK)Command (m for help): nCommand actione extendedp primary partition (1-4)pPartition number (1-4): 3First cylinder (2611-7832, default 2611): 默认回车Using default value 2611Last cylinder or +size or +sizeM or +sizeK (2611-7832, default 7832):默认回车Using default value 7832Command (m for help): tPartition number (1-4): 3Hex code (type L to list codes): 8eChanged system type of partition 3 to 8e (Linux LVM)Command (m for help): pDisk /dev/sda: 64.4 GB, 64424509440 bytes255 heads, 63 sectors/track, 7832 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDevice Boot      Start       End      Blocks Id  System/dev/sda1 *         1          13      104391 83  Linux/dev/sda2              14        2610    20860402+  8e  Linux LVM/dev/sda3            2611        7832    41945715 8e  Linux LVMCommand (m for help): w      保持退出The partition table has been altered!Calling ioctl() to re-read partition table.WARNING: Re-reading the partition table failed with error 16: 设备或资源忙.The kernel still uses the old table.The new table will be used at the next reboot.Syncing disks.重启虚拟机OS[root@download1 ~]# shutdown -r now[root@download1 ~]fdisk -lDisk /dev/sda: 64.4 GB, 64424509440 bytes255 heads, 63 sectors/track, 7832 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDevice Boot      Start       End      Blocks Id  System/dev/sda1 *         1          13      104391 83  Linux/dev/sda2              14        2610    20860402+  8e  Linux LVM/dev/sda3            2611        7832    41945715 8e  Linux LVM[root@download1 ~]# df -hl文件系统              容量  已用 可用 已用% 挂载点/dev/mapper/VolGroup00-LogVol0019G 12G  6.4G  64% //dev/sda1              99M 20M 75M  21% /boottmpfs               2.0G   0  2.0G 0% /dev/shm[root@download1 ~]# df -T /dev/sda1文件系统      类型   1K-块        已用   可用 已用% 挂载点/dev/sda1   ext3      101086   19487   76380  21% /boot
  • 1
  • 2
  • 3
  • 4
  • 下一页
CentOS 6.2安装Heartbeat-3-0-7各种错误解决方案Linux增加root用户Telnet相关资讯      Esxi  VMware ESXI 4.1 
  • ESXi下误删磁盘分区  (05月13日)
  • VMware ESXi及ESX NFC协议处理远程  (09/03/2013 06:10:36)
  • DELL PowerEdge R720 安装ESXi 5.0  (11/19/2012 08:10:36)
  • HP刀片安装系统或ESXi  (04/04/2014 20:21:35)
  • VMwareESX/ESXi 精简置备(thin)与  (05/14/2013 08:48:03)
  • ESXI5 添加本地磁盘出错  (10/21/2012 08:47:02)
本文评论 查看全部评论 (0)
表情: 姓名: 字数