RND GROUP LIMITED HomeCapabilitiesAbout usContact us

How to configure autofs to mount a DRBD mount with High Availability (HA)

January 18th, 2007

 

  1. Add the following configuration to the /etc/auto.master configuration file

 

/drbd-arrays       /etc/auto.drbd –timeout=10

 

Note modify the /drbd-arrays (to the parent directory for your arrays)

 

  1. Add the following configuration to the /etc/auto.drbd configuration file

 

drbd0     -fstype=ext3     :/dev/drbd0

 

Note modify the drbd0 (to the name of the array you wish mounted in the directory from step 1.  If the file system format isn’t ext3 modify the –fstype= parameter.  If the block device isn’t /dev/drbd0 then modify that to reflect the correct location

 

  1. Restart the autofs service

 

    1. service autofs restart

 

  1. Ensure that the autofs service is configured to run on boot for the respective run levels

 

    1. chkconfig –level 2345 autofs on

 

Notes

 

  • If you run into problems check /var/log/messages
  • Remember that you can only mount the drbd device on one node at a time (the primary node)