* [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; 7+ 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] 7+ 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; 7+ 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] 7+ 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; 7+ 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] 7+ messages in thread
* [linux-lvm] LVM1 Snapshot
@ 2003-04-01 9:35 Aman Shahi
2003-04-01 9:48 ` Patrick Caulfield
2003-04-01 9:53 ` Xavier Montagutelli
0 siblings, 2 replies; 7+ messages in thread
From: Aman Shahi @ 2003-04-01 9:35 UTC (permalink / raw)
To: linux-lvm
Using LVM1, how do I create a snapshot LV on a
different physical device than the original LV
thanks,
Aman
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://platinum.yahoo.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] LVM1 Snapshot
2003-04-01 9:35 Aman Shahi
@ 2003-04-01 9:48 ` Patrick Caulfield
2003-04-01 9:53 ` Xavier Montagutelli
1 sibling, 0 replies; 7+ messages in thread
From: Patrick Caulfield @ 2003-04-01 9:48 UTC (permalink / raw)
To: linux-lvm
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [linux-lvm] LVM1 Snapshot
2003-04-01 9:35 Aman Shahi
2003-04-01 9:48 ` Patrick Caulfield
@ 2003-04-01 9:53 ` Xavier Montagutelli
1 sibling, 0 replies; 7+ messages in thread
From: Xavier Montagutelli @ 2003-04-01 9:53 UTC (permalink / raw)
To: linux-lvm
On Tue, 1 Apr 2003, Aman Shahi wrote:
>
> Using LVM1, how do I create a snapshot LV on a
> different physical device than the original LV
Add at the end of your "lvcreate" command the name of the physical device
to use :
fantastic:/usr/local/sbin# lvcreate --help
Logical Volume Manager 1.0.6
Heinz Mauelshagen, Sistina Software 25/10/2002 (IOP 10)
[..]
lvcreate -s|--snapshot [-c|--chunksize ChunkSize]
{-l|--extents LogicalExtentsNumber |
-L|--size LogicalVolumeSize[kKmMgGtT]}
-n|--name SnapshotLogicalVolumeName
LogicalVolume[Path] [PhysicalVolumePath...]
But it does not work if the physical volume is a md device.
--
[ Xavier Montagutelli `""' ]
[ INSA Toulouse 0--0 ]
[ ---------oOOo---()---oOOo---------- ]
[ Dpt de Math / Service Informatique Tel: +33 5 61 55 93 38 / 67 ]
[ 135, Avenue de Rangueil Fax: +33 5 61 55 93 20 / 60 ]
[ 31077 Toulouse Cedex 4 Mel: montagut@gmm.insa-tlse.fr ]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2003-04-03 1:08 UTC | newest]
Thread overview: 7+ 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
-- strict thread matches above, loose matches on Subject: below --
2003-04-01 9:35 Aman Shahi
2003-04-01 9:48 ` Patrick Caulfield
2003-04-01 9:53 ` Xavier Montagutelli
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.