- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
VMware虚拟机(linux )增加根目录磁盘空间
今天查看学校的监控报修系统,不能访问了!! !系统运行很慢,用 top命令查看发现
内存使用率90%用df -h ”查看“ /”目录使用率已达到 80%导致系统运行很慢。我用 以下方法扩大根目录磁盘空间。
一、关闭你的虚拟机系统,找到如下内容:选择 Edit Virtual machesettings
l_p Inmp
l 詩 Power on ifiis virtual machine i
Edit virtual machine setti门专鼻
点击Expand “
^.Hard Disk (IE)FloppyI Network AdapterS U5B Controller ?
^.Hard Disk (IE)
Floppy
I Network Adapter
S U5B Controller ? Sound Card 凸 Pmte「 刨 Di^pley
40 CB
Lftinfl file D ; MS 件■績像如 u?(?“
Autodetect
Bridged
Present
Auto detect
Present
Autodetect
Capacity
Current size;
SvEtenn free: 17.4G8
MaxifTnurn wize:即 GB
Dislcinfbnnatjcin
Disk 专申ce i$ not pwesllocated fer this hard di
Hard dtsk contents are stored in mulbple fi-?
:Utilities 彳?
扩大虚拟机的空间为40G(根据个人需要填写空间大小)。但是linux下面并不 可见。
、使用linux下的fdisk工具进行分区
用root用户登录到你的linux系统,查看你系统的分区
#fdisk-l
#fdisk
-l
会出现以下的信息:
Device
Boot
Start
End
Blocks
Id Sy
stem
/dev/sda1
*
1
64
512000
83 Linux
/dev/sda2
64
2611
20458
496 8e Linux LVM
Disk /dev/mapper/vg_zxw-lv_root: 18.8 GB,bytes
255 heads, 63 sectors/track, 2289 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0Disk /dev/mapper/vg_zxw-lv_root doesnt contain a valid partition table
Disk /dev/mapper/vg_zxw-lv_swap: 2113 MB, 2113929216 bytes
255 heads, 63 sectors/track, 257 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0Disk /dev/mapper/vg_zxw-lv_swap doesnt contain a valid partition table
根据提示信息可以判断出此系统的磁盘接口为 SCSI,对应“ sda”如果上面的红
色字体是“hda”,那么此系统的磁盘接口为IDE对应“hda”所以我做一下操作:
#fdisk /dev/sda/
WARNINGD:OS-compatible modeis deprecated. Its strongly recommendedto
switch off the mode (command c) and change display
units to
sectors (command u).
Command (m for help): m // “ 列出
fdisk 的帮助”
Command action
a toggle a bootable flag
b edit bsd disklabe
原创力文档


文档评论(0)