* [linux-lvm] (simple question) Is it possible to specify a size to extend an LVM partition to ? rather than the amount to increase by?
@ 2012-07-11 10:44 Morgan Cox
2012-07-11 12:28 ` Greg Zapp
2012-07-11 12:31 ` Alasdair G Kergon
0 siblings, 2 replies; 4+ messages in thread
From: Morgan Cox @ 2012-07-11 10:44 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 294 bytes --]
is it possible to specify a size to extend an LVM partition to ? rather
than the amount to increase by?
i.e say I have a 2GB partition and what to extend it to 10GB, I know I
could use lvextend --size +8G /dev/vgpool/whatever
but is there a command to increase to a specific amount ?
Cheers
[-- Attachment #2: Type: text/html, Size: 369 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] (simple question) Is it possible to specify a size to extend an LVM partition to ? rather than the amount to increase by?
2012-07-11 10:44 [linux-lvm] (simple question) Is it possible to specify a size to extend an LVM partition to ? rather than the amount to increase by? Morgan Cox
@ 2012-07-11 12:28 ` Greg Zapp
2012-07-11 12:31 ` Alasdair G Kergon
1 sibling, 0 replies; 4+ messages in thread
From: Greg Zapp @ 2012-07-11 12:28 UTC (permalink / raw)
To: LVM general discussion and development
lvresize -L10g
On Wed, Jul 11, 2012 at 10:44 PM, Morgan Cox <morgancoxuk@gmail.com> wrote:
> is it possible to specify a size to extend an LVM partition to ? rather than
> the amount to increase by?
> i.e say I have a 2GB partition and what to extend it to 10GB, I know I
> could use lvextend --size +8G /dev/vgpool/whatever
> but is there a command to increase to a specific amount ?
>
> Cheers
>
>
> _______________________________________________
> 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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] (simple question) Is it possible to specify a size to extend an LVM partition to ? rather than the amount to increase by?
2012-07-11 10:44 [linux-lvm] (simple question) Is it possible to specify a size to extend an LVM partition to ? rather than the amount to increase by? Morgan Cox
2012-07-11 12:28 ` Greg Zapp
@ 2012-07-11 12:31 ` Alasdair G Kergon
1 sibling, 0 replies; 4+ messages in thread
From: Alasdair G Kergon @ 2012-07-11 12:31 UTC (permalink / raw)
To: LVM general discussion and development
On Wed, Jul 11, 2012 at 11:44:46AM +0100, Morgan Cox wrote:
> i.e say I have a 2GB partition and what to extend it to 10GB, I know I
> could use lvextend --size +8G /dev/vgpool/whatever
Try:
--size 10G
-L, --size [+]LogicalVolumeSize[bBsSkKmMgGtTpPeE]
Extend or set the logical volume size in units of megabytes. A
size suffix of M for megabytes, G for gigabytes, T for ter‐
abytes, P for petabytes or E for exabytes is optional. With the
+ sign the value is added to the actual size of the logical vol‐
ume and without it, the value is taken as an absolute one.
Alasdair
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] (simple question) Is it possible to specify a size to extend an LVM partition to ? rather than the amount to increase by?
@ 2012-07-11 12:41 Morgan Cox
0 siblings, 0 replies; 4+ messages in thread
From: Morgan Cox @ 2012-07-11 12:41 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 152 bytes --]
Thanks for the responses
As I thought it was an easy one.
(its a shame mailing lists don't have the option to label a thread as
[solved] ....
Cheers
[-- Attachment #2: Type: text/html, Size: 249 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-07-11 12:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-11 10:44 [linux-lvm] (simple question) Is it possible to specify a size to extend an LVM partition to ? rather than the amount to increase by? Morgan Cox
2012-07-11 12:28 ` Greg Zapp
2012-07-11 12:31 ` Alasdair G Kergon
-- strict thread matches above, loose matches on Subject: below --
2012-07-11 12:41 Morgan Cox
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).