歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> VMware 虛擬機(Linux)增加根目錄磁盤空間

VMware 虛擬機(Linux)增加根目錄磁盤空間

日期:2017/2/28 15:55:53   编辑:Linux教程
今天查看學校的監控報修系統,不能訪問了!!!系統運行很慢,用top命令查看發現內存使用率90%,用"df -h ”查看“/”目錄使用率已達到80%,導致系統運行很慢。我用以下方法擴大根目錄磁盤空間。
一、關閉你的虛擬機系統,找到如下內容:選擇"Edit Virtual mache settings”

650) this.width=650;" border=0>

點擊"Expand“

650) this.width=650;" border=0>

擴大虛擬機的空間為"40G"(根據個人需要填寫空間大小)。但是linux下面並不可見。
二、使用linux下的fdisk工具進行分區。
用root用戶登錄到你的linux系統,查看你系統的分區
#fdisk -l
會出現以下的信息:
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
/dev/sda2 64 2611 20458496 8e Linux LVM

Disk /dev/mapper/vg_zxw-lv_root: 18.8 GB, 18832424960 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: 0x00000000

Disk /dev/mapper/vg_zxw-lv_root doesn't 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: 0x00000000

Copyright © Linux教程網 All Rights Reserved