Bizdelnick, спасибо, направление верное подсказали.
Так как мне нужно было уменьшить корневой раздел, а отмонтировать его нельзя. (или у меня просто не получилось)
Загрузился с livecd.
Сначала надо уменьшить файловую систему, а потом сам раздел.
resize2fs /dev/mapper/VolGroup-lv_root 3G
lvreduce -L 3G /dev/mapper/VolGroup-lv_root
В итоге получилось:
Код: Выделить всё
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root 3.0G 680M 2.2G 24% /
tmpfs 250M 0 250M 0% /dev/shm
/dev/sda1 485M 31M 430M 7% /boot
Код: Выделить всё
[root@localhost ~]# fdisk -l
Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e7424
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 1045 7875584 8e Linux LVM
Disk /dev/mapper/VolGroup-lv_root: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/VolGroup-lv_swap: 855 MB, 855638016 bytes
255 heads, 63 sectors/track, 104 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
А вот найти не размеченную область пока не получается.
Нашлась область
Код: Выделить всё
[root@localhost ~]# vgdisplay
--- Volume group ---
VG Name VolGroup
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 7.51 GiB
PE Size 4.00 MiB
Total PE 1922
Alloc PE / Size 972 / 3.80 GiB
Free PE / Size 950 / 3.71 GiB
VG UUID nvn27P-7Yqd-3iG1-jTv6-aTIf-orAq-sU29MT
Для создания нового раздела vcreate -L 3G -n VolGroup-lv_lfs VolGroup
Код: Выделить всё
Disk /dev/mapper/VolGroup-VolGroup--lv_lfs: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000