[linux-lvm] Prepend LV
Oleksandr Panchuk
panolex at gmail.com
Mon Sep 3 11:02:06 UTC 2018
Daniel,
Thanks for fast reply. But I looks like lvextend appends space after LV.
And after running lvextend we will get following:
[25GB LV] + [20 GB free space]
free space added after original LV.
But we need to prepend free space before original LV:
[20 GB free space] + [25GB LV]
free space added before original LV.
Thanks,
Alex
пн, 3 вер. 2018 о 13:43 Daniel Etter <daniel at obastrlx.ch> пише:
> Hello
>
> > Oleksandr Panchuk <panolex at gmail.com> hat am 3. September 2018 um 11:04
> geschrieben:
> >
> > So, Is there any way to prepend LV with some free space ?
>
> I don't know what a LV with free space should be good for,
> but you can achieve this by lvextend.
>
> #lvs /dev/mapper/system-home
> LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync
> Convert
> home system -wi-ao---- 25.00g
>
> # df -h /home
> Filesystem Size Used Avail Use% Mounted on
> /dev/mapper/system-home 25G 8.0G 16G 34% /home
>
> # lvextend -L +20G /dev/mapper/system-home
> Size of logical volume system/home changed from 25.00 GiB (6400 extents)
> to 45.00 GiB (11520 extents).
> Logical volume home successfully resized
>
> # df -h /home
> Filesystem Size Used Avail Use% Mounted on
> /dev/mapper/system-home 25G 8.0G 16G 34% /home
>
> # lvs /dev/mapper/system-home
> LV VG Attr LSize Pool Origin Data% Meta% Move Log
> Cpy%Sync Convert
> home system -wi-ao---- 45.00g
>
>
>
> Daniel
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20180903/b3487bdc/attachment.htm>
More information about the linux-lvm
mailing list