From: Oleksandr Panchuk <panolex@gmail.com>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Prepend LV
Date: Mon, 3 Sep 2018 14:02:06 +0300 [thread overview]
Message-ID: <CAAjPMgM3_mw5KJEeb9jvRabeUHUAS9sMAjytSeViLxcoQSRi7g@mail.gmail.com> (raw)
In-Reply-To: <1370565024.307.1535971224020@obastrlx.obastrlx.ch>
[-- Attachment #1: Type: text/plain, Size: 1755 bytes --]
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@obastrlx.ch> пише:
> Hello
>
> > Oleksandr Panchuk <panolex@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@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
[-- Attachment #2: Type: text/html, Size: 2778 bytes --]
next prev parent reply other threads:[~2018-09-03 11:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-03 9:04 [linux-lvm] Prepend LV Oleksandr Panchuk
2018-09-03 10:40 ` Daniel Etter
2018-09-03 11:02 ` Oleksandr Panchuk [this message]
2018-09-03 14:52 ` Zdenek Kabelac
2018-09-10 16:09 ` Ondrej Kozina
2018-09-21 13:07 ` Oleksandr Panchuk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAAjPMgM3_mw5KJEeb9jvRabeUHUAS9sMAjytSeViLxcoQSRi7g@mail.gmail.com \
--to=panolex@gmail.com \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).