Bequimao.de
(usa openSUSE)
Enviado em 04/05/2017 - 15:12h
Fiz um teste aqui no meu sistema:
O estado original
linux-ihk5:~ # blkid | grep lv_
/dev/mapper/VolGroup-lv_home: UUID="ee9f662e-2aab-4cbf-881b-366ef3b2e7e8" SEC_TYPE="ext2" TYPE="ext3"
/dev/mapper/VolGroup-lv_root: UUID="614fdc85-0921-4590-9aab-b520e6c0d416" SEC_TYPE="ext2" TYPE="ext3"
linux-ihk5:~ #
linux-ihk5:~ # lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
lv_home VolGroup -wi-a----- 100.00g
lv_root VolGroup -wi-a----- 50.00g
mlvm01 vg1 -wi-ao---- 55.00g
.....
linux-ihk5:~ #
Reduzir o lv_home por 40 GB
linux-ihk5:~ # lvreduce --resizefs -L -40G /dev/mapper/VolGroup-lv_home
fsck from util-linux 2.29.2
/dev/mapper/VolGroup-lv_home: clean, 11/6553600 files, 459382/26214400 blocks
resize2fs 1.43.4 (31-Jan-2017)
Resizing the filesystem on /dev/mapper/VolGroup-lv_home to 15728640 (4k) blocks.
The filesystem on /dev/mapper/VolGroup-lv_home is now 15728640 (4k) blocks long.
Size of logical volume VolGroup/lv_home changed from 100.00 GiB (25600 extents) to 60.00 GiB (15360 extents).
Logical volume VolGroup/lv_home successfully resized.
linux-ihk5:~ #
Aumentar o lv_home por 25 GB
linux-ihk5:~ # lvextend --resizefs -L +25G /dev/mapper/VolGroup-lv_root
fsck from util-linux 2.29.2
/dev/mapper/VolGroup-lv_root: clean, 11/3276800 files, 251732/13107200 blocks
Size of logical volume VolGroup/lv_root changed from 50.00 GiB (12800 extents) to 75.00 GiB (19200 extents).
Logical volume VolGroup/lv_root successfully resized.
resize2fs 1.43.4 (31-Jan-2017)
Resizing the filesystem on /dev/mapper/VolGroup-lv_root to 19660800 (4k) blocks.
The filesystem on /dev/mapper/VolGroup-lv_root is now 19660800 (4k) blocks long.
O estado final
linux-ihk5:~ # lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
lv_home VolGroup -wi-a----- 60.00g
lv_root VolGroup -wi-a----- 75.00g
mlvm01 vg1 -wi-ao---- 55.00g
.....
linux-ihk5:~ #
Quando você configura um LVM você sempre deixa espaço livre para testes, snapshots e reservas. Assim se consegue aumentar os sistemas de arquivos até online.
Provavelmente você terá que instalar alguns pacotes no sistema live. Por favor, diga qual é o live que você usa. O Fedora já deve ter todas as ferramentas.
Bom sucesso
Bequimão
As dicas que usei
https://wiki.ubuntuusers.de/Logical_Volume_Manager/
https://wiki.ubuntuusers.de/Dateisystemgr%C3%B6%C3%9Fe_%C3%A4ndern/