All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Snapshot COW area on different PV / device
@ 2007-08-27  8:53 Hannes Dorbath
  2007-08-28 21:40 ` Jonathan Brassow
  0 siblings, 1 reply; 2+ messages in thread
From: Hannes Dorbath @ 2007-08-27  8:53 UTC (permalink / raw)
  To: linux-lvm

Hello,

I suffer from massive I/O trashing, due to the snapshot COW area being 
located on the same physical device as the origin. The machine now has a 
second disk array, that I'd like to dedicate to snapshot COW data. My 
problem now is that I fail to see from the documentation how to create a 
snapshot, which has its COW area located on another device. The setup 
currently looks like:

VG     #PV #LV #SN Attr   VSize   VFree
data     1   1   0 wz--c- 437.62G      0
cow1     1   0   0 wz--c- 232.82G 232.82G
cow2     1   0   0 wz--c- 232.82G 232.82G

LV     VG     Attr   LSize   Origin Snap%  Move Log Copy%
data   data   -wc-ao 437.62G

data is the LV where production data is located, and the cow1 and cow2 
VGs should be used for snapshots. Can someone give me an example on the 
lvcreate syntax to archive this? I tried various things, but end up with 
error messages like "Could not fine LV <foo> in PV <bar>".

Thanks in advance.


-- 
Regards,
Hannes Dorbath

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

* Re: [linux-lvm] Snapshot COW area on different PV / device
  2007-08-27  8:53 [linux-lvm] Snapshot COW area on different PV / device Hannes Dorbath
@ 2007-08-28 21:40 ` Jonathan Brassow
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Brassow @ 2007-08-28 21:40 UTC (permalink / raw)
  To: LVM general discussion and development

you will need more than on device in your volume group.  Example:
$> pvcreate /dev/sd[ab]
$> vgcreate vg /dev/sd[ab]
$> lvcreate -n lv -L 200G vg /dev/sda
$> lvcreate -s -n snap -L 20G vg/lv /dev/sdb

The cow will be located on sdb, while the origin will be located on sda.

  brassow

On Aug 27, 2007, at 3:53 AM, Hannes Dorbath wrote:

> Hello,
>
> I suffer from massive I/O trashing, due to the snapshot COW area  
> being located on the same physical device as the origin. The  
> machine now has a second disk array, that I'd like to dedicate to  
> snapshot COW data. My problem now is that I fail to see from the  
> documentation how to create a snapshot, which has its COW area  
> located on another device. The setup currently looks like:
>
> VG     #PV #LV #SN Attr   VSize   VFree
> data     1   1   0 wz--c- 437.62G      0
> cow1     1   0   0 wz--c- 232.82G 232.82G
> cow2     1   0   0 wz--c- 232.82G 232.82G
>
> LV     VG     Attr   LSize   Origin Snap%  Move Log Copy%
> data   data   -wc-ao 437.62G
>
> data is the LV where production data is located, and the cow1 and  
> cow2 VGs should be used for snapshots. Can someone give me an  
> example on the lvcreate syntax to archive this? I tried various  
> things, but end up with error messages like "Could not fine LV  
> <foo> in PV <bar>".
>
> Thanks in advance.
>
>
> -- 
> Regards,
> Hannes Dorbath
>
> _______________________________________________
> 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] 2+ messages in thread

end of thread, other threads:[~2007-08-28 21:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-27  8:53 [linux-lvm] Snapshot COW area on different PV / device Hannes Dorbath
2007-08-28 21:40 ` Jonathan Brassow

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.