# # Sample configuration file for drbdlinks # If passed an option of 1, SELinux features will be used. If 0, they # will not. The default is to auto-detect if SELinux is enabled. If # enabled, created links will be added to the SELinux context using # chcon -h -u -r -t , where the values plugged # in this command are pulled from the original file. #selinux(1) # If passed an option of 1, syslog will be restarted if any links are # changed. If 0, syslog is not restarted after links are changed. #restartsyslog(1) # If passed an option of 1, "mount -o bind" is used instead of symbolic # links. If 0, symbolic links are used. This only applies to link() # calls made after this call, and until usebindmount() is called with a # different value. In other words, usebindmount can be called with 1 and # then several link()s created that use bind mounts, then with 0 and other # link()s which will be symlinks. usebindmount(1) # One mountpoint must be listed. This is the location where the DRBD # drive is mounted. mountpoint('/share') # Multiple "link" lines may be listed, one for each link that needs to be # set up into the above shared mountpoint. If "link()" is passed one # argument, it is assumed that it is linked into that name under the # mountpoint above. Otherwise, you can specify a second argument which is # the location of the file on the shared partition. # # For example, if mountpoint is "/share" and you call "link('/etc/httpd')", # it is equivalent to calling "link('/etc/httpd', '/share/etc/httpd')". link( '/var/lib/mysql', '/share/mysql' ) link( '/etc/my.cnf', '/share/mysql/my.cnf' ) link( '/home/dw/warehouse', '/share/warehouse/files' ) link( '/home/dw/SHARED', '/share/warehouse/other' )