All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] LVM1 Snapshot
@ 2003-04-02 10:47 Aman Shahi
  2003-04-02 15:10 ` [linux-lvm] /etc/fstab and noauto Alexy Khrabrov
  2003-04-03  1:08 ` [linux-lvm] LVM1 Snapshot Patrick Caulfield
  0 siblings, 2 replies; 4+ messages in thread
From: Aman Shahi @ 2003-04-02 10:47 UTC (permalink / raw)
  To: linux-lvm

does that mean that I will have to dedicate that
physical device for the Snapshot. I mean if I had
4 device /dev/sda /dev/sdb /dev/sdc /dev/sdd and
previously if I was striping my original LV over
all the 4 devices, in the current context I stripe
the original LV over 3 devices and create the
Snapshot LV over the 4th (dev/sdd) ?

-------------------------
On Tue, Apr 01, 2003 at 07:35:16AM -0800, Aman Shahi
wrote:
> 
> Using LVM1, how do I create a snapshot LV on a
> different physical device than the original LV
> 

Just add the PV name to the end of the command-line.

eg. if your original LV (/dev/vg/original) is on
/dev/sdc1 and you want the
snapshot on /dev/sdj1 do:

lvcreate -L<size> -s -n snapshot /dev/vg/original
/dev/sdj1

-- 

patrick





__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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

* [linux-lvm] /etc/fstab and noauto
  2003-04-02 10:47 [linux-lvm] LVM1 Snapshot Aman Shahi
@ 2003-04-02 15:10 ` Alexy Khrabrov
  2003-04-02 15:42   ` Alasdair G Kergon
  2003-04-03  1:08 ` [linux-lvm] LVM1 Snapshot Patrick Caulfield
  1 sibling, 1 reply; 4+ messages in thread
From: Alexy Khrabrov @ 2003-04-02 15:10 UTC (permalink / raw)
  To: linux-lvm

Greetings -- I successfully build a system where several
LVM volume groups correspond to external SCSI enclosures.
I often turn on the machine with those enclosures off,
but in order for that to happen, I have to comment out
their respective lines from /etc/fstab:

#/dev/black/black	/black		reiserfs	noauto,defaults 1 2
#/dev/slick/data	/slick		reiserfs	noauto,defaults 1 2
#/dev/quattro/span	/span		reiserfs	noauto,defaults 1 2

If I leave them in active, and don't turn on the enclosures,
the system stops for repair.  Does vgscan lok into /etc/fstab, and tries
to spin those drives for those groups even _regardless_ of noauto?
-- 
Cheers,
Alexy Khrabrov :: www.setup.org :: Age Quod Agis

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

* Re: [linux-lvm] /etc/fstab and noauto
  2003-04-02 15:10 ` [linux-lvm] /etc/fstab and noauto Alexy Khrabrov
@ 2003-04-02 15:42   ` Alasdair G Kergon
  0 siblings, 0 replies; 4+ messages in thread
From: Alasdair G Kergon @ 2003-04-02 15:42 UTC (permalink / raw)
  To: linux-lvm

On Wed, Apr 02, 2003 at 04:10:19PM -0500, Alexy Khrabrov wrote:
> #/dev/black/black	/black		reiserfs	noauto,defaults 1 2

Does it make any difference if you change the 2 at the end of each line 
into a 0?

Alasdair
-- 
agk@uk.sistina.com

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

* Re: [linux-lvm] LVM1 Snapshot
  2003-04-02 10:47 [linux-lvm] LVM1 Snapshot Aman Shahi
  2003-04-02 15:10 ` [linux-lvm] /etc/fstab and noauto Alexy Khrabrov
@ 2003-04-03  1:08 ` Patrick Caulfield
  1 sibling, 0 replies; 4+ messages in thread
From: Patrick Caulfield @ 2003-04-03  1:08 UTC (permalink / raw)
  To: linux-lvm

On Wed, Apr 02, 2003 at 08:47:04AM -0800, Aman Shahi wrote:
> 
> does that mean that I will have to dedicate that
> physical device for the Snapshot. I mean if I had
> 4 device /dev/sda /dev/sdb /dev/sdc /dev/sdd and
> previously if I was striping my original LV over
> all the 4 devices, in the current context I stripe
> the original LV over 3 devices and create the
> Snapshot LV over the 4th (dev/sdd) ?

Not at all. the LV will take up only as much space on
that PV as you allocate to it. All that is happening by
adding the device name to the end of command is that LVM is
forced to use only that device when allocating the volume, 
rather than being allowed to use any device in the Volume Group.

Whether it affects the performance of other devices on the
system is up to you and how you have spread the load across
devices. 

Personally I allocate performance-critical filesystems on seperate
disks and low-use filesystems I leave to LVM to allocate.

Of course if the load changes you can always use pvmove to change
where the data is located.

In the case of 4 disks with 4 stripes (ie there is no "spare" disk)
I think what I would do would be to allocate a striped snapshot LV
so that at least the COW load is also spread evenly across all the 
disks.

None of this is mandatory, you are free to allocate LVs where you like
(that's the point of LVM) and performance matters are very much specific
to the particular installation.

patrick

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

end of thread, other threads:[~2003-04-03  1:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-02 10:47 [linux-lvm] LVM1 Snapshot Aman Shahi
2003-04-02 15:10 ` [linux-lvm] /etc/fstab and noauto Alexy Khrabrov
2003-04-02 15:42   ` Alasdair G Kergon
2003-04-03  1:08 ` [linux-lvm] LVM1 Snapshot Patrick Caulfield

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.