Software

Linux 重新擴充 LVM 空間

事情是這樣發生的,因為在安裝 ubuntu 的時候在劃分 LVM 並沒有完全使用到,一開始沒什麼問題,但是使用容量越來越大的時候出現了空間不足的問題,LVM 管理方有很多,也可以增加 PV 或是 VG 放進去 LV 裡面,但是這邊遇到的是在同一個 PV 裡面直接做 resize sudo pvdisplay — Physical volume — PV Name /dev/sda3 VG Name ubuntu-vg PV Size <31.00 GiB / not usable 0 Allocatable yes (but full) PE Size 4.00 MiB Total PE 7935 Free PE 0 Allocated PE 7935 PV UUID 5AOQdS-hOZ8-lQ39-0iiI-b5oW-teRi-iYVpNa …

Continue Reading
Software

虛擬機 CentOS 7 擴充硬碟容量方式

先確認目前的磁碟狀況 [root@localhost ~]# fdisk -l Disk /dev/sda: 53.7 GB, 53687091200 bytes, 104857600 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x00073f29 Device Boot Start End Blocks Id System /dev/sda1 * …

Continue Reading