Latest available ebuild of drbd is 0.6.x, and it does not compile against 2.6.x kernels (as stated in drbd documentation). We need drbd 0.7.x for that. This also blocks any upgrade from 2.4.x to 2.6.x on machines using drbd, or blocks using drbd on 2.6.x machines... Reproducible: Always Steps to Reproduce: 1. emerge development-sources -or- gentoo-dev-sources -or- any other 2.6.x kernel 2. configure it 3. try to use drbd 0.6.x Actual Results: drbd did not compile. Expected Results: drbd 0.7 would work well
Created attachment 40930 [details] drbd-0.7.5.ebuild
can someone try this? also if someone could try this on 2.4, that would help since I don't have any 2.4 kernels to test on you'll need to copy the init and conf.d scripts to 0.7.5-*
Created attachment 41792 [details] testrun of .07.5 ebuild + init + conf files I tested this ebuild on 2.6.7-mm4 the file /etc/conf.d/drbd has wrong info (line 89 in my log) after removing the init from the ebuild everything seems to work fine loading as a module with 4 resources
I just used this ebuild to emerge drbd-0.7.5 on a Gentoo system running gentoo-sources-2.4.26-r9. The module installed fine, though I did need to use FEATURES="-sandbox" as I got access violations. The module loads and unloads fine via modprobe/rmmod. I do not have drbd actually running any drives at the moment on these two systems, but will soon.
Created attachment 48373 [details] drbd-0.7.7.ebuild Update the ebuild, now is more simple Remove deps to heartbeat, isnot necessary use inherit linux-mod use init.d and drbd.conf from original This version compile ok with kernel 2.6.10
the is a new ebuild in portage, please test it.
a little typo :) s/the/there/g
drbd-0.7.7 in the portage works fine with the 2.6.x series
In the final ebuild dont remove: # needed by drbd startup script keepdir /var/lib/drbd In 0.7.x is not necesited and add: dodoc upgrade_0.6.x_to_0.7.0.txt upgrade_0.7.0_to_0.7.1.txt
upgrade_0.6.x_to_0.7.0.txt upgrade_0.7.0_to_0.7.1.txt added in cvs. I plan to delete the old ebuild when drbd-0.7.x will be marked stable.