Skip to content

Commit

Permalink
Use built-in DRBD module instead of building it manually Azure#153
Browse files Browse the repository at this point in the history
  • Loading branch information
enoadmin committed Nov 5, 2018
1 parent 898446d commit b518938
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions scripts/setup_nfs_ha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,9 @@ EOF

function setup_drbd_module_and_tools
{
# We currently have to build the DRBD kernel module, as it's not included
# in the default linux-azure kernels or in any Azure extra packages.
# We should use the packaged DRBD module once Azure starts releasing
# extra modules packages that include DRBD module.

pushd /tmp
git clone http://github.com/LINBIT/drbd-9.0
git clone http://github.com/LINBIT/drbd-utils
cd drbd-9.0
make && make install
modprobe drbd
cd ../drbd-utils
./autogen.sh
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc
make tools && make install-tools
cd ..
rm -rf drbd-9.0 drbd-utils
popd
# Insall drbd-utils and load the module
apt install drbd-utils
modprobe drbdd
}

function setup_drbd_with_disk
Expand Down

0 comments on commit b518938

Please sign in to comment.