All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Create a Logical volume with 100% of Volume groups size?
@ 2006-03-01 13:03 Alejandro Alfonso
  2006-03-01 13:21 ` Patrick Caulfield
  0 siblings, 1 reply; 4+ messages in thread
From: Alejandro Alfonso @ 2006-03-01 13:03 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 1207 bytes --]

Hi everybody!

we only want to use LVM with one Logical volume, and want to use the
100% of available space.
is there any way to create it? Look:

acrol ~ # vgdisplay
  --- Volume group ---
  VG Name               mirror
[...]
  VG Size               232.88 GB
  PE Size               32.00 MB
  Total PE              7452
  Alloc PE / Size       7452 / 232.88 GB
  Free  PE / Size       0 / 0
[...]

acrol ~ # lvcreate -L232.88G -nlv00 mirrorPoe
  Rounding up size to full physical extent 232.91 GB
  Insufficient free extents (7452) in volume group mirrorPoe: 7453 required

How to use all the 7452 PE? Thanks in advance

Best regards!
-- 
------------------------------------------------------------------------
 
*       Alejandro Alfonso Fern�ndez
      Dpto de Sistemas. �rea Corporativa *
alejandro.alfonso@telecyl.com <mailto:alejandro.alfonso@telecyl.com>
http://www.telecyl.com/
 
Proci�n 7, Portales 1-2 Edificio Am�rica II
28023 Madrid
Tfn: 91 452 18 00 - Fax: 91 452 18 08 	Juan Garc�a Hortelano, 43
Edificio Telecyl
47014 Valladolid
Tfn: 983 428 200 - Fax: 983 428 223

------------------------------------------------------------------------

[-- Attachment #2: Type: text/html, Size: 2751 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] Create a Logical volume with 100% of Volume groups size?
  2006-03-01 13:03 [linux-lvm] Create a Logical volume with 100% of Volume groups size? Alejandro Alfonso
@ 2006-03-01 13:21 ` Patrick Caulfield
  2006-03-01 15:32   ` Alejandro Alfonso
  0 siblings, 1 reply; 4+ messages in thread
From: Patrick Caulfield @ 2006-03-01 13:21 UTC (permalink / raw)
  To: LVM general discussion and development

Alejandro Alfonso wrote:
> Hi everybody!
> 
> we only want to use LVM with one Logical volume, and want to use the
> 100% of available space.
> is there any way to create it? Look:
> 
> acrol ~ # vgdisplay
>   --- Volume group ---
>   VG Name               mirror
> [...]
>   VG Size               232.88 GB
>   PE Size               32.00 MB
>   Total PE              7452
>   Alloc PE / Size       7452 / 232.88 GB
>   Free  PE / Size       0 / 0
> [...]
> 
> acrol ~ # lvcreate -L232.88G -nlv00 mirrorPoe
>   Rounding up size to full physical extent 232.91 GB
>   Insufficient free extents (7452) in volume group mirrorPoe: 7453 required
> 
> How to use all the 7452 PE? Thanks in advance

lvcreate -l7452 -nlv00 mirrorPoe

see man lvcreate


-- 

patrick

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] Create a Logical volume with 100% of Volume groups size?
  2006-03-01 13:21 ` Patrick Caulfield
@ 2006-03-01 15:32   ` Alejandro Alfonso
  2006-03-02 17:58     ` [linux-lvm] Flushing a device Roger Lucas
  0 siblings, 1 reply; 4+ messages in thread
From: Alejandro Alfonso @ 2006-03-01 15:32 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 1422 bytes --]

Thanks Patrick!

promise i've read the man but dosen't understand Logical Extents concept :)

Best regards!
>> we only want to use LVM with one Logical volume, and want to use the
>> 100% of available space.
>> is there any way to create it? Look:
>>
>> acrol ~ # vgdisplay
>>   --- Volume group ---
>>   VG Name               mirror
>> [...]
>>   VG Size               232.88 GB
>>   PE Size               32.00 MB
>>   Total PE              7452
>>   Alloc PE / Size       7452 / 232.88 GB
>>   Free  PE / Size       0 / 0
>> [...]
>>
>> acrol ~ # lvcreate -L232.88G -nlv00 mirrorPoe
>>   Rounding up size to full physical extent 232.91 GB
>>   Insufficient free extents (7452) in volume group mirrorPoe: 7453 required
>>
>> How to use all the 7452 PE? Thanks in advance
>>     
>
> lvcreate -l7452 -nlv00 mirrorPoe
>
> see man lvcreate
>   

-- 
------------------------------------------------------------------------
 
*       Alejandro Alfonso Fern�ndez
      Dpto de Sistemas. �rea Corporativa *
alejandro.alfonso@telecyl.com <mailto:alejandro.alfonso@telecyl.com>
http://www.telecyl.com/
 
Proci�n 7, Portales 1-2 Edificio Am�rica II
28023 Madrid
Tfn: 91 452 18 00 - Fax: 91 452 18 08 	Juan Garc�a Hortelano, 43
Edificio Telecyl
47014 Valladolid
Tfn: 983 428 200 - Fax: 983 428 223

------------------------------------------------------------------------

[-- Attachment #2.1: Type: text/html, Size: 2376 bytes --]

[-- Attachment #2.2: logo.jpg --]
[-- Type: image/jpeg, Size: 13799 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [linux-lvm] Flushing a device
  2006-03-01 15:32   ` Alejandro Alfonso
@ 2006-03-02 17:58     ` Roger Lucas
  0 siblings, 0 replies; 4+ messages in thread
From: Roger Lucas @ 2006-03-02 17:58 UTC (permalink / raw)
  To: 'LVM general discussion and development'

Hi,

I have a question regarding how to ensure that all data is flushed to a
logical volume before a snapshot is taken.  The exact scenario is as
follows:

I have the logical volume "/dev/mapper/userfiles" which is formatted with
Reiser3.  The volume has been created using "dmsetup ... crypt ..." on top
of a logical volume "/dev/storage/cryptdisk".

My aim is to be able to write a set of files to the "/dev/mapper/userfiles"
volume, then take a snapshot of the "/dev/storage/cryptdisk" as a backup,
knowing that the contents of the backup are encrypted.

I don't have a problem setting up the above scenario or creating the
snapshot volume, but I want to be sure that the files I have written will be
in the backup.  My concern is that if all file writes have not been flushed
through all the layers of LVM then I will not get all the files in the
snapshot of then encrypted volume.  I have tried issuing the "sync" command,
but I am not confident that this has worked.

Is it necessary to forcibly flush the data through each layer of the above
volume "stack" so that I know it is all on the snapshot, or is this taken
care of automatically when the snapshot command is issued and I am just
being paranoid...

Thanks,

Roger.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-03-02 17:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-01 13:03 [linux-lvm] Create a Logical volume with 100% of Volume groups size? Alejandro Alfonso
2006-03-01 13:21 ` Patrick Caulfield
2006-03-01 15:32   ` Alejandro Alfonso
2006-03-02 17:58     ` [linux-lvm] Flushing a device Roger Lucas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.