On Tue, Jan 22, 2013 at 12:27:39PM +0530, ana kish wrote:
> Is it ok to go with VM?

If you go with a VM, I would advise not to put the repositories onto
a virtual disk image, but on an iscsi disk or SAN that is connected
to the VM via network.

I've seen a bad case of repository corruption where the repositories
on a virtual disk were broken after the host system of the VM had
unexpectedly lost power. Upon reboot revision files in the VM were there
but they contained corrupt 512 byte blocks (disk sector size). So the
virtual disk could not properly save data to the physical disk in this
case. Network disks are better designed to handle failure cases like this.

If you must use a virtual disk in the VM to host the repositories,
make sure you have a backup procedure in place that copies revision
data off the virtual disk as soon as possible (e.g. run 'svnadmin dump
--incremental' from the post-commit hook and copy the resulting dump
file to another machine).

Reply via email to