남은 19.5GB를 어떻게 sda2
추가 하나요 vg00-lv01
? 나는 시도했지만 lvextend
이것이 나에게 말해준다 Insufficient free space: 512 extents needed, but only 0 available
.
우분투 20.4를 사용하고 있습니다.
NAME FSTYPE SIZE MOUNTPOINT LABEL
sda 20G
├─sda1 ext4 487M /boot
└─sda2 LVM2_member 19.5G
├─vg00-lv00 swap 1.9G [SWAP]
└─vg00-lv01 ext4 7.6G /
sr0 1024M
산출sudo fdisk -l /dev/sda
Disk /dev/sda: 20 GiB, 21474836480 bytes, 41943040 sectors
Disk model: Virtual disk
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x520f1760
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 999423 997376 487M 83 Linux
/dev/sda2 999424 41943039 40943616 19.5G 8e Linux LVM
산출pvs -a
PV VG Fmt Attr PSize PFree
/dev/sda1 --- 0 0
/dev/sda2 vg00 lvm2 a-- <9.52g 0
미리 감사드립니다!
답변1
물리 볼륨과 논리 볼륨의 크기를 조정해야 합니다.
pvresize /dev/sda2
lvextend /dev/vg00-lvol1 /dev/sda2 # grow the LV by the amount of free PV
fsadm resize /dev/vg00/lvol1 # grow the FS within the LV