Public bug reported:
The script /usr/lib/drbd/snapshot-resync-target-lvm.sh shipped with drbd v8.3.7 in Lucid fails to read its command line options and falls into an infinite loop. This bug is not in present in natty, but I humbly request an SRU to Lucid. This script can be called by DRBD to create an LVM snapshot of a resource before it starts resyncing (thus becoming inconsistent). This script is present (though commented out) in the default drbd configuration file /etc/drbd.d/global_common.conf . This bug can result in drbd silently failing to resync an outdated resource. Thus, any newer data will be lost if the cluster fails over to the outdated node. This is a known problem upstream and it was fixed in later versions of DRBD. The following patch was committed upstream to address this bug : http://git.drbd.org/?p=drbd-8.3.git;a=commitdiff;h=1fd3ad953663615e946167191e1d9885af81450a Steps to reproduce: On a cluster composed of node A and node B: - on both nodes, uncomment the line "before-resync-target "/usr/lib/drbd/snapshot-resync-target-lvm.sh -p 15 -- -c 16k";" - on both nodes, configure a drbd resource called "test" - make the initial synchronization - on B, do "drbdadm disconnect test" - nn A, make "test" primary and write to it - on B, do "drbdadm connect test" => the script will kick in and fall in an endless loop - top will show it using 100% CPU. lsb_release -rd Description: Ubuntu 10.04.2 LTS Release: 10.04 apt-cache policy drbd8-utils drbd8-utils: Installé : 2:8.3.7-1ubuntu2.1 Candidat : 2:8.3.7-1ubuntu2.1 Table de version : *** 2:8.3.7-1ubuntu2.1 0 500 http://fr.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages 100 /var/lib/dpkg/status 2:8.3.7-1ubuntu2 0 500 http://fr.archive.ubuntu.com/ubuntu/ lucid/main Packages Lionel Sausin. ** Affects: drbd8 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to drbd8 in Ubuntu. https://bugs.launchpad.net/bugs/744293 Title: Infinite loop in helper LVM script for DRBD 8 in Lucid -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs