LVM1 Snapshot
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) ?
-------------------------
Quoted 4 lines · Aman Shahi
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
Signature · 10 lines
patrick __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com
[linux-lvm] /etc/fstab and noauto
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?
Signature · 2 lines
Cheers, Alexy Khrabrov :: www.setup.org :: Age Quod Agis
Re: [linux-lvm] /etc/fstab and noauto
Quoted 1 line · Alexy Khrabrov
#/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
Signature · 1 line
[email protected]
Quoted 8 lines · Aman Shahi
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/sddand 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