What you lack is the DRBD feature to "auto-promote" one node at startup : http://www.drbd.org/users-guide-9.0/s-recent-changes-auto-promote.html This is a new feature in the current beta DRBD. Ubuntu shouldn't bother at least until DRBD 9.0 hits the mainline kernel.
-- You received this bug notification because you are a member of Ubuntu High Availability Team, which is subscribed to drbd8 in Ubuntu. https://bugs.launchpad.net/bugs/443321 Title: drbd devices not automatically mounted via /etc/fstab even witn _netdev Status in “drbd8” package in Ubuntu: Triaged Bug description: Both in jaunty-desktop(i386/amd64) and jaunty-server the drbd subsystem is started by '/etc/rc2.d/S70drbd' script which does not interact well with the network-device-based filesystems being mounted by '/etc/network/if-up.d/mountnfs' after network devices have all come up (a typical system will reach '/etc/rc2.d/S70drbd start' much before than network will be up). I'm not sure if this is really a "solid" solution but since calling '/etc/init.d/drbd start' again after it has already been called seems quite benign, I have just added the script '/etc/network/if-up.d/drbd-start' (note the naming alphabetically _before_ 'mountnfs' in that directory) with the contents: ----- #! /bin/sh /etc/init.d/drbd start ----- and I have labeled my drbd mounts in /etc/fstab with the '_netdev' option: ----- /dev/drbd1 /home ext3 _netdev,relatime 0 2 /dev/drbd2 /local ext3 _netdev,relatime 0 3 ----- This causes the "if-up" system (regardless whether it is NetworkManager-originated or due to interfaces listed in /etc/network/interfaces) to first bring up drbd devices and then mount the network-dependent drbd devices. Works beautifully for me, in the simple situation where I don't want to use an HA manager to shift the primary/secondary roles around, I just want my "main" computer to be primary and mount the devices by default and the "secondary" to skip all mounting. ProblemType: Bug Architecture: amd64 DistroRelease: Ubuntu 9.04 Package: drbd8-utils 2:8.3.0-1ubuntu1 ProcEnviron: LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: drbd8 Uname: Linux 2.6.28-15-generic x86_64 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/drbd8/+bug/443321/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~ubuntu-ha Post to : [email protected] Unsubscribe : https://launchpad.net/~ubuntu-ha More help : https://help.launchpad.net/ListHelp

