# parted -l
Модель: VMware Virtual disk (scsi)
Диск /dev/sdc: 32,2GB
Размер сектора (логич./физич.): 512B/512B
Таблица разделов: msdos
Disk Flags:Номер Начало Конец Размер Тип Файловая система Флаги
1 1049kB 1075MB 1074MB primary xfs загрузочный
2 1075MB 32,2GB 31,1GB primary lvm
Модель: Linux device-mapper (linear) (dm)
Диск /dev/mapper/cl-root: 12,4GB
Размер сектора (логич./физич.): 512B/512B
Таблица разделов: loop
Disk Flags:
Номер Начало Конец Размер Файловая система Флаги
1 0,00B 12,4GB 12,4GB xfs
Модель: Linux device-mapper (linear) (dm)
Диск /dev/mapper/cl-swap: 8003MB
Размер сектора (логич./физич.): 512B/512B
Таблица разделов: loop
Disk Flags:
Номер Начало Конец Размер Файловая система Флаги
1 0,00B 8003MB 8003MB linux-swap(v1)
# lvextend /dev/cl/root -l+100%FREE -r
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
- scan filesystem freespace and inode maps...
- found root inode chunk
Phase 3 - for each AG...
- scan (but don't clear) agi unlinked lists...
- process known inodes and perform inode discovery...
- agno = 0
- agno = 1
- agno = 2
- agno = 3
- process newly discovered inodes...
Phase 4 - check for duplicate blocks...
- setting up duplicate extent list...
- check for inodes claiming duplicate blocks...
- agno = 0
- agno = 1
- agno = 2
- agno = 3
No modify flag set, skipping phase 5
Phase 6 - check inode connectivity...
- traversing filesystem ...
- traversal finished ...
- moving disconnected inodes to lost+found ...
Phase 7 - verify link counts...
No modify flag set, skipping filesystem flush and exiting.
Size of logical volume cl/root unchanged from 11,54 GiB (2955 extents).
Logical volume cl/root successfully resized.
# pvdisplay
--- Physical volume ---
PV Name /dev/sdc2
VG Name cl
PV Size 19,00 GiB / not usable 2,00 MiB
Allocatable yes (but full)
PE Size 4,00 MiB
Total PE 4863
Free PE 0
Allocated PE 4863
PV UUID CS2oBw-PlJ1-R1JM-Of3q-rAAw-UvZv-BfbtzH
# lvdisplay
--- Logical volume ---
LV Path /dev/cl/swap
LV Name swap
VG Name cl
LV UUID 20qt2h-XWBF-kKCU-fB9y-NPzw-YCi1-mvXkim
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2017-11-23 13:24:01 +0300
LV Status available
# open 0
LV Size 7,45 GiB
Current LE 1908
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:0
--- Logical volume ---
LV Path /dev/cl/root
LV Name root
VG Name cl
LV UUID V1qva3-3Scf-LPJa-L2QH-pYTw-kPNJ-RvBJUw
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2017-11-23 13:24:02 +0300
LV Status available
# open 1
LV Size 11,54 GiB
Current LE 2955
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:1