I have multiple OpenSuSE 11.2 systems. With some files being on one system I would like to have another computer to have the files as well. Is there a way to have the files copied to the other system automatically? FTP is one way but it is too cumbersome. I am thinking of something like disk or directory mirroring. Does OpenSuSE have something like that?
If it was real time mirroring that would be better. I.e if a write to one file on one system is done, then this would be done on the other system with the same directory/file.
On Mon, 2010-03-08 at 20:06 +0000, svetter88 wrote:
> I have multiple OpenSuSE 11.2 systems. With some files being on one
> system I would like to have another computer to have the files as well.
> Is there a way to have the files copied to the other system
> automatically? FTP is one way but it is too cumbersome. I am thinking
> of something like disk or directory mirroring. Does OpenSuSE have
> something like that?
>
> If it was real time mirroring that would be better. I.e if a write to
> one file on one system is done, then this would be done on the other
> system with the same directory/file.
>
>
The ONLY way to truly do this is with a cluster aware filesystem.
(e.g. ocfs) This isn’t so much of a mirror though… just two
live systems accessing the same filesystem at the same time.
You might be able to use drbd which does do a block device
style mirror… it’s just that you really can’t have the block
device live as a filesystem on both hosts (and there the usual
issues with regards to integrity of such a setup).
Other solutions would be to use rsync in batch … so it won’t
be up to date… but sync’d up regularly.
Some filesystems (e.g. smb/samba) have some hooks that can be
used to trigger an operation… which MIGHT be forced to
do something like what you want.
I would the least intrusive and “foolproof” solution would be
doing the periodic rsync.
Is this for your personal files or were you thinking of keeping the system configurations in sync? If the former, perhaps you should think about storing your files on a NAS. If the latter, you might want to look at something like puppet, which uses rsync to keep systems synchronised.