LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-10-2013, 09:55 AM   #1
packetstormer
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Rep: Reputation: Disabled
LVM Snapshot not updating changes


If I create a new logical volume like this:

Code:
lvcreate -L512M -s -n backups /dev/ubuntu/vms
Where /dev/ubuntu/vms is a logical volume containing my VM's disks

Then, mount the new volume, like this

Code:
mkdir -p /mnt/backups && mount -t ext3 /dev/ubuntu/backups
And then, make some changes to the source volume (/dev/ubuntu/vms/) either by creating files or by changing something onthe VMs themself. Should the snapshot update too?

I am unsure if I am confused about how LVM snapshots work but I thought that if I mount one and make changes to the source that the mounted snapshot would change also, but I can't get it to work. The file system mounts fine and I can see the files/folders but I can't get an update to reflect in the snapshot. The snapshot is LVM2 and I can see it is read/write.

Can anyone help?
 
Old 04-10-2013, 09:20 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
LVM snapshot is not a mirror, its (literally) a snapshot of what the src looked like at the time the snapshot was created; effectively a point-in-time backup.
http://tldp.org/HOWTO/LVM-HOWTO/snapshotintro.html
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LVM snapshot problem Normanu Linux - Server 2 03-11-2012 04:16 AM
[SOLVED] what is a LVM snapshot? aceone Red Hat 6 05-22-2010 12:08 PM
LVM Snapshot eldo Linux - Server 2 11-20-2009 04:10 AM
lvm snapshot Ammad Linux - General 1 02-18-2009 07:03 AM
About LVM Snapshot geethusari LinuxQuestions.org Member Intro 1 12-03-2007 07:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration