* [linux-lvm] LVM2 snapshot contents on a reboot
@ 2006-11-22 14:21 Vasan V S
2006-11-22 15:23 ` Peter Rockai
0 siblings, 1 reply; 3+ messages in thread
From: Vasan V S @ 2006-11-22 14:21 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 1052 bytes --]
Hi all,
We are using the latest version of LVM2 and creating a snapshot LV (This is
a fresh snapshot LV and we are not attempting to migrate from LVM1).
However, on rebooting the server, we find the snapshot contents are getting
synced up with the original source volume contents completely. Any changes
that has been made in the source volume after the snapshot volume has been
taken is getting reflected in the snapshot volume as well after the reboot.
The following are the commands that we are using:
For the creation of snapshot:
lvcreate -s -L <snap size> -n <snapshot Name> -p <R-W permission> <original
volume>
For deleting the snapshot:
lvremove -f <snap shot node entry>
However, if the server (running Linux 2.6.15.4) is not rebooted, the
snapshot contents are correctly shown even if there has been any changes on
the source volume.
Should we do anything specific at the time of the server shutdown to ensure
that the snapshot contents should not be getting synced with the source
volume on start up?
Please advice.
Thanks
vasan
[-- Attachment #2: Type: text/html, Size: 1261 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] LVM2 snapshot contents on a reboot
2006-11-22 14:21 Vasan V S
@ 2006-11-22 15:23 ` Peter Rockai
0 siblings, 0 replies; 3+ messages in thread
From: Peter Rockai @ 2006-11-22 15:23 UTC (permalink / raw)
To: linux-lvm
On Wed, Nov 22, 2006 at 07:51:33PM +0530, Vasan V S wrote:
[snip]
> For the creation of snapshot:
>
> lvcreate -s -L <snap size> -n <snapshot Name> -p <R-W permission> <original
> volume>
>
> For deleting the snapshot:
>
> lvremove -f <snap shot node entry>
Why/when are you removing the snapshot?
> However, if the server (running Linux 2.6.15.4) is not rebooted, the
> snapshot contents are correctly shown even if there has been any changes on
> the source volume.
As expected.
> Should we do anything specific at the time of the server shutdown to ensure
> that the snapshot contents should not be getting synced with the source
> volume on start up?
No, you just create the snapshot once and leave it be, it'll stay
around until you lvremove it.
Yours, Peter.
--
Peter Rockai | me()mornfall!net | prockai()redhat!com
http://blog.mornfall.net | http://web.mornfall.net
"In My Egotistical Opinion, most people's C programs should be
indented six feet downward and covered with dirt."
-- Blair P. Houghton on the subject of C program indentation
^ permalink raw reply [flat|nested] 3+ messages in thread
* [linux-lvm] LVM2 snapshot contents on a reboot
@ 2007-02-15 9:23 Vasan
0 siblings, 0 replies; 3+ messages in thread
From: Vasan @ 2007-02-15 9:23 UTC (permalink / raw)
To: linux-lvm
Hi all,
We are using the latest version of LVM2 and creating a snapshot LV
(This is a fresh snapshot LV and we are not attempting to migrate from
LVM1). However, on rebooting the server, we find the snapshot contents
are getting synced up with the original source volume contents
completely. Any changes that has been made in the source volume after
the snapshot volume has been taken is getting reflected in the
snapshot volume as well after the reboot.
The following are the commands that we are using:
For the creation of snapshot:
lvcreate -s -L <snap size> -n <snapshot Name> -p <R-W permission>
<original volume>
However, if the server (running Linux 2.6.15.4) is not rebooted, the
snapshot contents are correctly shown even if there has been any
changes on the source volume.
Should we do anything specific at the time of the server shutdown to
ensure that the snapshot contents should not be getting synced with
the source volume on start up?
The following are the versions that we are using from a LVM perspective:
-bash-3.00# lvs --version
LVM version: 2.02.13 (2006-10-27)
Library version: 1.02.10 (2006-09-19)
Driver version: 4.4.0
Please advice.
Thanks
Srini
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-02-15 9:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-15 9:23 [linux-lvm] LVM2 snapshot contents on a reboot Vasan
-- strict thread matches above, loose matches on Subject: below --
2006-11-22 14:21 Vasan V S
2006-11-22 15:23 ` Peter Rockai
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).