How to configure autofs to mount a DRBD mount with High Availability (HA)
January 18th, 2007
- 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)
- 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
- Restart the autofs service
- service autofs restart
- Ensure that the autofs service is configured to run on boot for the respective run levels
- 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)
