Create logical volume from another LV free space

I have installed elementaryOS in the entire disk of my girlfriend's netbook using LVM. Now I want to install Manjaro XFCE instead of eOS, but I have come to the problem that the auto LVM partitioning that I use when installing eOS makes use of all the space in the disk, instead of separating the /home and / (I guess Fedora installer does something like that automatically). What I want to do is create a LV/partition of 25Gb using the free space on that LV and leave the rest to the /home itself, so I don't have to format the entire disk and lose all the important data.

This is my output of pvdisplay:

--- Physical volume --- PV Name               /dev/sda5 VG Name               elementary-vg PV Size               148.81 GiB / not usable 2.00 MiB Allocatable           yes (but full) PE Size               4.00 MiB Total PE              38095 Free PE               0 Allocated PE          38095 PV UUID               E6FkuA-qK2X-1lP5-XCRX-t4x3-U2xn-EqjSBg 

vgdisplay:

--- Volume group --- VG Name               elementary-vg System ID              Format                lvm2 Metadata Areas        1 Metadata Sequence No  3 VG Access             read/write VG Status             resizable MAX LV                0 Cur LV                2 Open LV               0 Max PV                0 Cur PV                1 Act PV                1 VG Size               148.81 GiB PE Size               4.00 MiB Total PE              38095 Alloc PE / Size       38095 / 148.81 GiB Free  PE / Size       0 / 0    VG UUID               wfV8tN-uvVa-ARcS-3MWU-9gBr-vzMd-Tgp5Av 

lvdisplay:

--- Logical volume --- LV Path                /dev/elementary-vg/root LV Name                root VG Name                elementary-vg LV UUID                pAyHGC-e8J3-AdWM-uwPX-cP5j-0qZt-RsVPtl LV Write Access        read/write LV Creation host, time elementary, 2016-05-15 19:33:59 +0000 LV Status              available # open                 0 LV Size                147.82 GiB Current LE             37841 Segments               1 Allocation             inherit Read ahead sectors     auto - currently set to     256 Block device           254:0  --- Logical volume --- LV Path                /dev/elementary-vg/swap_1 LV Name                swap_1 VG Name                elementary-vg LV UUID                PDkMDH-z6GN-CDHW-5jv9-JnF3-XIoZ-NnFNnX LV Write Access        read/write LV Creation host, time elementary, 2016-05-15 19:34:00 +0000 LV Status              available # open                 0 LV Size                1016.00 MiB Current LE             254 Segments               1 Allocation             inherit Read ahead sectors     auto - currently set to     256 Block device           254:1 

Is this possible?

Replay

Category: partition Time: 2016-07-29 Views: 2
Tags: partition lvm

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.115 (s). 12 q(s)