linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] snapshots
@ 2001-10-18 20:35 Robert Dyas
  2001-10-18 21:11 ` Andreas Dilger
  0 siblings, 1 reply; 20+ messages in thread
From: Robert Dyas @ 2001-10-18 20:35 UTC (permalink / raw)
  To: linux-lvm

Snapshot questions:

1)Has anyone had any luck creating a snapshot (lvcreate -L100M -s -n backup
/dev/vg_master/lv_home) and then mounting it (mount -r /dev/vg_master/backup
/mnt)? If so, what version of the kernel, mount tools, filesystem, etc are
you using?

2) How can you use the snapshot feature to facilitate incremental or
differential backups? Wouldn't the dump or other backup program have to
twiddle the archive bit, but won't be able to since snapshots are readonly?
Any insight here would be appreciated.

Thanks!

Rob

^ permalink raw reply	[flat|nested] 20+ messages in thread
* [linux-lvm] Snapshots
@ 2009-09-10 23:25 jonr
  2009-09-11  9:14 ` Peter Keller
  2009-09-11 13:39 ` André Gillibert
  0 siblings, 2 replies; 20+ messages in thread
From: jonr @ 2009-09-10 23:25 UTC (permalink / raw)
  To: LVM general discussion and development

Hello List,

I don't get it!

I have a xen system that has a DomU of FC11 with a 20GB LV for the  
disk. I created a snapshot using this command:

lvcreate -L +10G -s -n s_cgate-be1 /dev/xenvg/cgate-be1

This is the output of an 'lvdisplay' of the snapshot LV:

lvdisplay /dev/xenvg/s_cgate-be1
   --- Logical volume ---
   LV Name                /dev/xenvg/s_cgate-be1
   VG Name                xenvg
   LV UUID                7c1kEs-xYoO-Qxem-2E2M-hlee-pc4Q-zm6TZ5
   LV Write Access        read/write
   LV snapshot status     active destination for /dev/xenvg/cgate-be1
   LV Status              available
   # open                 2
   LV Size                20.00 GB
   Current LE             5120
   COW-table size         10.00 GB
   COW-table LE           2560
   Allocated to snapshot  0.11%
   Snapshot chunk size    4.00 KB
   Segments               1
   Allocation             inherit
   Read ahead sectors     auto
   - currently set to     256
   Block device           253:15

I then shutdown the DomU and pointed the 'Disk...' line in the config  
file for the DomU to the snapshot. It boots.

OK, I must be missing the simple answer because I cannot seem to grasp  
the concept of snapshots.


1. How can I have a 20GB LV as a disk and the snapshot be 10GB and  
boot the entire OS?

2. Can I create a DomU and then snapshot the LV and use the snapshot  
to create other DomU's?

3. If 2 is yes, would I want to continue using the snapshot as the  
disk or is there something else that should be done, i.e. dd the drive  
to a new LV?

In the 'lvdisplay' of the snapshot I have these extra lines:
   LV snapshot status     active destination for /dev/xenvg/cgate-be1
   # open                 2
   COW-table size         10.00 GB
   COW-table LE           2560
   Allocated to snapshot  0.11%
   Snapshot chunk size    4.00 KB

4. Does the 0.11% mean that the 10GB snapshot file is only using .11%  
of the 10GB LV?


If there is a good doc out there explaining all of this could someone  
just post a link. I don't mind reading but am not getting the answers  
to the above. I have found lots of docs explaining how to do it but  
nothing going much further than that.

Thanks for any help,

Jon

^ permalink raw reply	[flat|nested] 20+ messages in thread
* [linux-lvm] Snapshots
@ 2009-09-17 14:24 Jon Hardcastle
  2009-09-17 14:37 ` Peter Keller
  0 siblings, 1 reply; 20+ messages in thread
From: Jon Hardcastle @ 2009-09-17 14:24 UTC (permalink / raw)
  To: linux-lvm

Hi,

Do I need some free extents to create a READ ONLY snapshot? I dont have free extents but require a read-only snapshot before doing an upgrade.

Cheers.


-----------------------
N: Jon Hardcastle
E: Jon@eHardcastle.com
'Do not worry about tomorrow, for tomorrow will bring worries of its own.'
-----------------------


      

^ permalink raw reply	[flat|nested] 20+ messages in thread
* [linux-lvm] Snapshots
@ 2012-02-16 13:25 Mark Woodward
  2012-02-16 13:57 ` Mike Snitzer
  0 siblings, 1 reply; 20+ messages in thread
From: Mark Woodward @ 2012-02-16 13:25 UTC (permalink / raw)
  To: linux-lvm

I have been looking into LVM2 for a while now and while I think it is 
useful for a range of applications, its seems pretty limited in overall 
scope.

Is there any active development happening? Most of the code seems like 
bug-fixes or minor tweaks. Is the snapshot system being improved? 
Specifically, snapshots of snapshots? thin provisioned snapshots or 
auto-expand (i.e. snapshots don't run out of space).  If you look at 
technologies like ZFS snapshots are far better supported, but ZFS will 
probably never be real under Linux, and it really is far more than is 
really needed.

So, I guess my questions are these: Is LVM in maintenance mode or is 
there active development? If it is being actively developed, is there a 
road map and is there a group or site specifically dedicated to the 
development?

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

end of thread, other threads:[~2012-02-17 15:20 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-18 20:35 [linux-lvm] snapshots Robert Dyas
2001-10-18 21:11 ` Andreas Dilger
  -- strict thread matches above, loose matches on Subject: below --
2009-09-10 23:25 [linux-lvm] Snapshots jonr
2009-09-11  9:14 ` Peter Keller
2009-09-11 13:39 ` André Gillibert
2009-09-17 14:24 Jon Hardcastle
2009-09-17 14:37 ` Peter Keller
2012-02-16 13:25 Mark Woodward
2012-02-16 13:57 ` Mike Snitzer
2012-02-16 14:05   ` Marco Pizzoli
2012-02-17 15:20     ` Mike Snitzer
2012-02-16 14:42   ` Mark Woodward
2012-02-16 15:18     ` Stuart D. Gathman
2012-02-16 15:54       ` Mike Snitzer
2012-02-17  4:46         ` Stuart D. Gathman
2012-02-17 13:56           ` Mike Snitzer
2012-02-16 16:51       ` Bryn M. Reeves
2012-02-16 15:43     ` Mike Snitzer
2012-02-16 16:04       ` Mark Woodward
2012-02-16 16:09         ` Mike Snitzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).