Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117885082
drbd.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
826 B
Referenced Files
None
Subscribers
None
drbd.sh
View Options
#!/bin/bash
set
-e
dnf -y install epel-release
dnf config-manager --set-enabled crb
dnf -y install
\
kernel
\
kernel-devel
\
make
\
patch
\
unzip
\
tar
dnf -y install
\
drbd
\
drbd-bash-completion
\
drbd-selinux
\
drbd-utils
dnf -y install
\
"dnf-command(versionlock)"
DRBD_VERSION
=
"9.2.14"
curl -Lo drbd-
${
DRBD_VERSION
}
.tar.gz https://linbit.gateway.scarf.sh//downloads/drbd/9/drbd-
${
DRBD_VERSION
}
.tar.gz
tar xzf drbd-
${
DRBD_VERSION
}
.tar.gz
pushd
drbd-
${
DRBD_VERSION
}
/
make
KDIR
=
"/usr/src/kernels/
$(
rpm -q kernel-devel
|
sed
's/kernel-devel-//'
)
"
make install
popd
rm -rf drbd-
${
DRBD_VERSION
}
.tar.gz
rm -rf drbd-
${
DRBD_VERSION
}
dnf -y remove
\
kernel-devel
echo
"drbd"
> /etc/modules-load.d/drbd.conf
chmod
644
/etc/modules-load.d/drbd.conf
dnf versionlock add kernel
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Mon, Apr 6, 1:49 AM (6 d, 17 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18831886
Default Alt Text
drbd.sh (826 B)
Attached To
Mode
R114 kolab-infrastructure
Attached
Detach File
Event Timeline