All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: [linux-lvm] lvcreate distributed extent option
@ 2002-11-30  8:03 ZECHA,HOLGER (HP-Germany,ex1)
  2002-11-30  9:08 ` James Hawtin
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: ZECHA,HOLGER (HP-Germany,ex1) @ 2002-11-30  8:03 UTC (permalink / raw)
  To: linux-lvm, oolon; +Cc: lvm-devel

Hello,

what do you mean with 
> How about striping with the strip size equal to that of a logical extent?

Can you give an example for the lvcreate command.

The reason to do this is to distribute the disk I/O accross all disks. the
logical extent 1 is on disk1, logical extent 2 on disk 2 and so on.
This means during read of logical extent 1, the heade of the second disk can
already be moved to prepare to read logical extent 2.

This allows us to do more I/O's per second

Holger


-----Original Message-----
From: James Hawtin [mailto:oolon@pzat.meep.org]
Sent: Samstag, 30. November 2002 14:40
To: linux-lvm@sistina.com
Cc: lvm-devel@sistina.com
Subject: Re: [linux-lvm] lvcreate distributed extent option




On Sat, 30 Nov 2002, ZECHA,HOLGER (HP-Germany,ex1) wrote:

>
> Hello,
>
> I want to create a logical volume of 40GB Size using a physical 9GB
disks,is
> there a way to create a logical volume in the way, that the first logical
> extend is on disk one, the second on disk two, ... the 7th on disk one and
> so on ?
>
> Meaning all logical extends are distributed accross all disks.
>
> In HP-UX lvdisplay wwill look like this:
>    --- Logical extents ---
>    LE    PV1                PE1   Status 1
>    00000 /dev/dsk/c16t0d0   00012 current
>    00001 /dev/dsk/c16t0d1   00012 current
>    00002 /dev/dsk/c17t0d2   00000 current
>    00003 /dev/dsk/c17t0d3   00000 current
>    00004 /dev/dsk/c16t0d4   00000 current
>    00005 /dev/dsk/c16t0d5   00000 current
>    00006 /dev/dsk/c17t0d6   00000 current
>    00007 /dev/dsk/c17t0d7   00000 current
>    00008 /dev/dsk/c16t1d0   00000 current
>    00009 /dev/dsk/c16t1d1   00000 current
>    00010 /dev/dsk/c17t1d2   00000 current
>    00011 /dev/dsk/c17t1d3   00000 current
>    00012 /dev/dsk/c16t1d4   00000 current
>
> Holger
>

How about striping with the strip size equal to that of a logical extent?

otherwise if you have quite alot of disk space on another drive you could
create your lv on that one then move the extents one at a time to the
destinations drives using pvmove.....

One does wonder why you want to do this!

James




_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: [linux-lvm] lvcreate distributed extent option
@ 2002-11-30 14:10 ZECHA,HOLGER (HP-Germany,ex1)
  0 siblings, 0 replies; 11+ messages in thread
From: ZECHA,HOLGER (HP-Germany,ex1) @ 2002-11-30 14:10 UTC (permalink / raw)
  To: linux-lvm; +Cc: lvm-devel

Hello,

to clarify why we need this setup:
this is the setup for the oracle directory where the datafiles and
indexfiles are located.
we don't setup dedicated filesystem for data and indexfiles and we don't use
raw devices. We mix everything in one directory which is setup up with the
distributed option from HP-UX LVM on HP-UX. With this setup extents are
distributed accross all LUN's and therefore disk IO is also distributed
across all LUN's and administration of this setup i quit easier the using
dedicated filesystems for datafiles and index files.
We want to do this in the same way on Linux, therfore my question.

I wrote a shell script which does excatly this distribution for Linux.

Holger

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: [linux-lvm] lvcreate distributed extent option
@ 2002-11-30 12:02 ZECHA,HOLGER (HP-Germany,ex1)
  2002-11-30 14:09 ` James Hawtin
  0 siblings, 1 reply; 11+ messages in thread
From: ZECHA,HOLGER (HP-Germany,ex1) @ 2002-11-30 12:02 UTC (permalink / raw)
  To: linux-lvm; +Cc: lvm-devel

Hello,

there still seems to be a missunderstanding
I want to have the following:

   --- Logical extents ---
   LE    PV                        PE     reads      writes
   00000 /dev/sdd1                 00001  0          1        
   00001 /dev/sde1                 00001  0          0        
   00002 /dev/sdf1                 00001  0          0        
   00003 /dev/sdg1                 00001  0          0        
   00004 /dev/sdh1                 00001  0          0        
   00005 /dev/sdi1                 00001  0          0        
   00006 /dev/sdd1                 00002  0          0        
   00007 /dev/sde1                 00002  0          0        
   00008 /dev/sdf1                 00002  0          0        
   00009 /dev/sdg1                 00002  0          0        
   00010 /dev/sdh1                 00002  0          0        
   00011 /dev/sdi1                 00002  0          0        
   00012 /dev/sdd1                 00003  0          0        
   00013 /dev/sde1                 00003  0          0        
   00014 /dev/sdf1                 00003  0          0        
.....

but with  lvcreate -I 8 -L 40000M -n lvdata /dev/vgtest /dev/sdd1 /dev/sde1
.... I get

   --- Logical extents ---
   LE    PV                        PE     reads      writes
   00000 /dev/sdd1                 00063  0          1        
   00001 /dev/sdd1                 00064  0          0        
   00002 /dev/sdd1                 00065  0          0        
   00003 /dev/sdd1                 00066  0          0        
   00004 /dev/sdd1                 00067  0          0        
   00005 /dev/sdd1                 00068  0          0        
   00006 /dev/sdd1                 00069  0          0        
   00007 /dev/sdd1                 00070  0          0        
   00008 /dev/sdd1                 00071  0          0        
   00009 /dev/sdd1                 00072  0          0        
   00010 /dev/sdd1                 00073  0          0        
   00011 /dev/sdd1                 00074  0          0        
   00012 /dev/sdd1                 00075  0          0        
   00013 /dev/sdd1                 00076  0          0        
   00014 /dev/sdd1                 00077  0          0  
...
   02105 /dev/sde1                 00063  0          0        
   02106 /dev/sde1                 00064  0          0        
   02107 /dev/sde1                 00065  0          0        
   02108 /dev/sde1                 00066  0          0        
   02109 /dev/sde1                 00067  0          0        
   02110 /dev/sde1                 00068  0          0        
   02111 /dev/sde1                 00069  0          0        
   02112 /dev/sde1                 00070  0          0        

A distribution like described above looks like this on HP-UX LVM:    

   00000 /dev/dsk/c16t0d0   00012 current
   00001 /dev/dsk/c16t0d1   00012 current
   00002 /dev/dsk/c17t0d2   00000 current
   00003 /dev/dsk/c17t0d3   00000 current
   00004 /dev/dsk/c16t0d4   00000 current
   00005 /dev/dsk/c16t0d5   00000 current
   00006 /dev/dsk/c17t0d6   00000 current
   00007 /dev/dsk/c17t0d7   00000 current
   00008 /dev/dsk/c16t1d0   00000 current
   00009 /dev/dsk/c16t1d1   00000 current
   00010 /dev/dsk/c17t1d2   00000 current
   00011 /dev/dsk/c17t1d3   00000 current
   00012 /dev/dsk/c16t1d4   00000 current  

Holger 


-----Original Message-----
From: James Hawtin [mailto:oolon@ankh.org]
Sent: Samstag, 30. November 2002 18:24
To: linux-lvm@sistina.com
Cc: lvm-devel@sistina.com
Subject: Re: [linux-lvm] lvcreate distributed extent option


This message uses a character set that is not supported by the Internet
Service.  To view the original message content,  open the attached message.
If the text doesn't display correctly, save the attachment to disk, and then
open it using a viewer that can display the original character set. 

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [linux-lvm] lvcreate distributed extent option
@ 2002-11-30  3:53 ZECHA,HOLGER (HP-Germany,ex1)
  2002-11-30  7:41 ` James Hawtin
  0 siblings, 1 reply; 11+ messages in thread
From: ZECHA,HOLGER (HP-Germany,ex1) @ 2002-11-30  3:53 UTC (permalink / raw)
  To: linux-lvm, lvm-devel

Hello,

I want to create a logical volume of 40GB Size using a physical 9GB disks,is
there a way to create a logical volume in the way, that the first logical
extend is on disk one, the second on disk two, ... the 7th on disk one and
so on ?

Meaning all logical extends are distributed accross all disks.

In HP-UX lvdisplay wwill look like this:
   --- Logical extents ---
   LE    PV1                PE1   Status 1
   00000 /dev/dsk/c16t0d0   00012 current
   00001 /dev/dsk/c16t0d1   00012 current
   00002 /dev/dsk/c17t0d2   00000 current
   00003 /dev/dsk/c17t0d3   00000 current
   00004 /dev/dsk/c16t0d4   00000 current
   00005 /dev/dsk/c16t0d5   00000 current
   00006 /dev/dsk/c17t0d6   00000 current
   00007 /dev/dsk/c17t0d7   00000 current
   00008 /dev/dsk/c16t1d0   00000 current
   00009 /dev/dsk/c16t1d1   00000 current
   00010 /dev/dsk/c17t1d2   00000 current
   00011 /dev/dsk/c17t1d3   00000 current
   00012 /dev/dsk/c16t1d4   00000 current

Holger

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

end of thread, other threads:[~2002-12-03  5:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-30  8:03 [linux-lvm] lvcreate distributed extent option ZECHA,HOLGER (HP-Germany,ex1)
2002-11-30  9:08 ` James Hawtin
2002-11-30  9:24 ` toby
2002-12-03  5:19   ` Heinz J . Mauelshagen
2002-11-30 10:01 ` Ragnar Kjørstad
2002-11-30 11:25   ` James Hawtin
  -- strict thread matches above, loose matches on Subject: below --
2002-11-30 14:10 ZECHA,HOLGER (HP-Germany,ex1)
2002-11-30 12:02 ZECHA,HOLGER (HP-Germany,ex1)
2002-11-30 14:09 ` James Hawtin
2002-11-30  3:53 ZECHA,HOLGER (HP-Germany,ex1)
2002-11-30  7:41 ` James Hawtin

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.