我在 linux 磁盘管理方面缺少一些概念,我在单个物理卷上有可用空间,我想用它来扩展 ext4 文件系统,这是一个逻辑卷。
我看着 fdisk -l - 这是一个 GPT(警告)
Disk /dev/sda: 299.4 GB, 299439751168 bytes
255 heads, 63 sectors/track, 36404 cylinders, total 584843264 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 identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 584843263 292421631+ ee GPT
Run Code Online (Sandbox Code Playgroud)
我查看物理卷:
root@node-29:/home# pvs
PV VG Fmt Attr PSize PFree
/dev/sda4 os lvm2 …
Run Code Online (Sandbox Code Playgroud)