參考資料:
VMware Workstation 9擴充Linux VM虛擬硬碟空間
https://apacph168.pixnet.net/blog/post/217898139
VMWare:
Step1-1.查看的硬體設定
Step1-2.查看硬碟空間大小
Step2-1.擴充VM虛擬硬碟空間
Step2-2.擴增硬碟空間
Step2-3.正在進行擴增
Step2-4.硬碟空間擴增完成
Step3.查看擴增後硬碟空間大小
Step4.將VM開機
Linux OS 裡:
Step5-1.查看硬碟分割區
fdisk -l
Step5-2.建立新的 LVM partition
fdisk /dev/sda
n
p
t
type: 8e
w
Step6-1.重開機後查看目前partition
Step6-2.建立實體LVM
pvcreate /dev/sdaX
Step6-3.查看Volume Group名稱
vgdisplay
check VG name
Step6-4.將新增partition加入到VolGroup
vgextend VG-name /dev/sdaX
Step6-5.查看Physical Volume資訊
pvscan
Step6-6.查看logical volume資訊
lvdisplay
Step6-7.將新增partition加入至logical volume
lvextend lv-path /dev/sdaX
Step6-8變更filesystem
resize2fs lv-path
Step7.確認硬體空間已擴充
df -h
[Ubuntu]在Vmware下擴充disk空間後的設定
Re: [Ubuntu]在Vmware下擴充disk空間後的設定
也請參考這篇:
https://unix.stackexchange.com/question ... dd-that-to
https://unix.stackexchange.com/question ... dd-that-to
代碼: 選擇全部
parted /dev/sda print # Check you have exactly three partitions
parted /dev/sda resizepart 3 100% # Extend the third
parted /dev/sda print # Confirm the new partition size
pvresize /dev/sda3
lvextend --size +10g --resizefs /dev/ubuntu-vg/ubuntu-lv多多留言, 整理文章, 把經驗累積下來.....