Differences between version 2 and predecessor to the previous major change of SambaShadowCopyHowto.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 2 | Last edited on Thursday, April 27, 2006 2:19:39 pm | by CraigBox | Revert |
Older page: | version 1 | Last edited on Thursday, April 27, 2006 12:10:26 pm | by CraigBox | Revert |
@@ -1,8 +1,9 @@
!What are shadow copies?
[Shadow copies of shared folders|http://www.microsoft.com/windowsserver2003/techinfo/overview/scr.mspx] are point-in-time snapshots of a shared folder that are exposed to Windows 2000+ users by way of the "Previous Versions" tab on a shared file.
+<<<<<<< Your version
The shadow copies client is built into Windows 2003 and Windows XP SP1 and above, and [available for download for Windows 2000|http://www.microsoft.com/technet/downloads/winsrvr/shadowcopyclient.mspx].
!Can I run a 'shadow copy server' on Linux?
@@ -18,9 +19,31 @@
* [Samba] 3.0.3 or higher
* A kernel that supports [LVM] and [XFS]
-[LVM] provides a method for taking a snapshot of a volume; it is these snapshots that will be shared and provided to Windows clients as shadow copies. [XFS] supports freezing a file system, buffering writes to it until it is thawed again. To be sure of
the integrity of your
snapshot, you need to do this
. It seems like it
's possible
to do this
on [Ext3
] file systems
, but
without a similar method for freezing
, you could lose data
.
+[LVM] provides a method for taking a snapshot of a volume; it is these snapshots that will be shared and provided to Windows clients as shadow copies. [XFS] supports freezing a file system, buffering writes to it until it is thawed again. Many filesystems in
the kernel support [waiting until the filesystem is consistent before taking a
snapshot|http://www.tldp.org/HOWTO/LVM-HOWTO/snapshotintro.html] - be sure yours does before choosing something other than XFS.
+
+!Steps
+
+1. Join a Windows domain
, if
you need to. I followed [this howto|http://www.ubuntuforums.org/showthread.php?t=91510], which should be rolled into our wiki, which is a huge mess of conflicting information about joining Windows domains that really needs some Aristotle love.
+
+2. Set up a Samba share to somewhere inside your LVM volume.
+
+3. If "lsmod | grep dm" doesn
't report dm_snapshot, add "dm_snapshot"
to /etc/modules.
+
+4. If you're
on Debian or Ubuntu, check /etc/udev/udev.rules or /etc/udev/rules.d/20-names.rules for a line such as:
+
+<verbatim>
+KERNEL=="dm-
[-9
]*"
, NAME="dm/%n"
+</verbatim>
+
+udev doesn't like the creation of devices
without it having
a say
, so change it to
+
+<verbatim>
+KERNEL=="dm-[-9]*", OPTIONS+="ignore_device"
+</verbatim>
+
+Source: [udev: LVM snapshots don't work|http://bugs
.debian.org/cgi-bin/bugreport.cgi?bug=343671#msg20]
!Links
* [How to use the Shadow Copy client|http://www.petri.co.il/how_to_use_the_shadow_copy_client.htm]