New DRBDmanage version 0.50.
Requires new -utils, too... Change-Id: Idf159c3de860e621ae6df9b9b4e6951ab7309031
This commit is contained in:
parent
9fc59ec9be
commit
56783dc273
@ -8,12 +8,18 @@ function pre_install_drbd_devstack {
|
|||||||
mkdir "${FILES}"
|
mkdir "${FILES}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
packages=('drbd-utils_8.9.3-1_amd64.deb' 'drbd8-utils_8.9.3-1_amd64.deb' 'drbd-dkms_9.0.0-2_all.deb' 'python-drbdmanage_0.44.1_all.deb')
|
packages=(
|
||||||
|
drbd8-utils_8.9.4-1_amd64.deb
|
||||||
|
drbd-dkms_9.0.0-2_all.deb
|
||||||
|
drbd-utils_8.9.4-1_amd64.deb
|
||||||
|
python-drbdmanage_0.50-1.1_all.deb
|
||||||
|
)
|
||||||
|
|
||||||
# get packages
|
# get packages
|
||||||
for p in "${packages[@]}"; do
|
for p in "${packages[@]}"; do
|
||||||
if [[ ! -f "${FILES}/${p}" ]]; then
|
if [[ ! -f "${FILES}/${p}" ]]; then
|
||||||
# If there are newer packages, change the download number here.
|
# If there are newer packages, change the download number here.
|
||||||
wget "http://openstack-ci-pkgs.linbit.com/packages/002/trusty/$p" -O "${FILES}/${p}"
|
wget "http://openstack-ci-pkgs.linbit.com/packages/003/trusty/$p" -O "${FILES}/${p}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
# install packages
|
# install packages
|
||||||
@ -35,17 +41,18 @@ function pre_install_drbd_devstack {
|
|||||||
function install_drbd_devstack {
|
function install_drbd_devstack {
|
||||||
# Install the service.
|
# Install the service.
|
||||||
|
|
||||||
# write /etc/drbdmanage*.conf
|
# Write DRBDmanage configuration;
|
||||||
#echo "drbdctrl-vg = $DRBD_DRBDCTRL_VG" >> /etc/drbdmanaged.conf
|
# use the single-thinpool driver for these tests.
|
||||||
#echo "volume-group = $DRBD_DATA_VG" >> /etc/drbdmanaged-lvm.conf
|
sudo sed -i "s/^drbdctrl-vg\s*=.*/drbdctrl-vg = ${DRBD_DRBDCTRL_VG}/g" /etc/drbdmanaged.cfg
|
||||||
sudo sed -i "s/^drbdctrl-vg\s*=.*/drbdctrl-vg = ${DRBD_DRBDCTRL_VG}/g" /etc/drbdmanaged.conf
|
echo "
|
||||||
sudo sed -i "s/^volume-group\s*=.*/volume-group = ${DRBD_DATA_VG}/g" /etc/drbdmanaged-lvm.conf
|
[LOCAL]
|
||||||
sudo sed -i "s/^volume-group\s*=.*/volume-group = ${DRBD_DATA_VG}/g" /etc/drbdmanaged-lvm-thinpool.conf
|
storage-plugin = drbdmanage.storage.lvm_thinlv.LvmThinLv
|
||||||
sudo sed -i "s/^volume-group\s*=.*/volume-group = ${DRBD_DATA_VG}/g" /etc/drbdmanaged-lvm-thinlv.conf
|
force=1
|
||||||
|
|
||||||
# Use the single-thinpool driver for these tests.
|
[Plugin:ThinLV]
|
||||||
# sudo sed -i "s/^storage-plugin\s*=.*/storage-plugin = drbdmanage.storage.lvm_thinpool_ng.LvmThinPoolNg/g" /etc/drbdmanaged.conf
|
volume-group = $DRBD_DATA_VG
|
||||||
sudo sed -i "s/^storage-plugin\s*=.*/storage-plugin = drbdmanage.storage.lvm_thinlv.LvmThinLv/g" /etc/drbdmanaged.conf
|
pool-name = drbdthinpool
|
||||||
|
" | sudo tee /etc/drbdmanaged.cfg
|
||||||
|
|
||||||
# allow the stack user access to drbdmanage
|
# allow the stack user access to drbdmanage
|
||||||
sudo tee /etc/dbus-1/system.d/org.drbd.drbdmanaged-stack.conf > /dev/null << "EOF"
|
sudo tee /etc/dbus-1/system.d/org.drbd.drbdmanaged-stack.conf > /dev/null << "EOF"
|
||||||
@ -173,6 +180,7 @@ function configure_drbd_devstack {
|
|||||||
sudo drbdmanage shutdown --quiet
|
sudo drbdmanage shutdown --quiet
|
||||||
|
|
||||||
sudo drbdmanage debug 'set loglevel=debug'
|
sudo drbdmanage debug 'set loglevel=debug'
|
||||||
|
sudo drbdmanage nodes
|
||||||
|
|
||||||
# FIXME: multi-node setups
|
# FIXME: multi-node setups
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user