Our great sponsors
-
kvdo
A pair of kernel modules which provide pools of deduplicated and/or compressed block storage. (by tigerblue77)
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
#!/bin/bash install_dependencies() { (( ${#} > 1 )) && { apt update apt install -y "$@" } || echo "No dependencies to install" } clean_dependencies() { (( ${#} > 1 )) && { apt autoremove --purge -y "$@" } || echo "No dependencies to remove" } clone_repo() { (( ${#} == 1 )) && { TEMPDIR=$(mktemp -d "${1/*\/}.XXX") git clone "$1" "${TEMPDIR}" && \ cd "$TEMPDIR" && pwd -P } } # First part : KVDO module install_dependencies git make "linux-headers-$(uname -r)" > /dev/null 2>&1 WORK_DIR="$(clone_repo https://github.com/tigerblue77/kvdo.git)" ( cd "${WORK_DIR}" && \ make -j"$(nproc)" -C "/usr/src/linux-headers-$(uname -r)" M="${WORK_DIR}" ) > kvdo_log 2>&1 cp "${WORK_DIR}/vdo/kvdo.ko" "${WORK_DIR}/uds/uds.ko" "/lib/modules/$(uname -r)" clean_dependencies git make "linux-headers-$(uname -r)" > /dev/null 2>&1 rm -Rf "${WORK_DIR}" # Second Part: VDO Module install_dependencies git make gcc uuid-dev libz-dev libdevmapper-dev libblkid-dev > /dev/null 2>&1 WORK_DIR="$(clone_repo https://github.com/dm-vdo/vdo.git)" ( cd "${WORK_DIR}" && \ make -j"$(nproc)" && \ make -j"$(nproc)" install ) > vdo_build_log 2>&1 clean_dependencies git make gcc uuid-dev libz-dev libdevmapper-dev libblkid-dev > /dev/null 2>&1 rm -Rf "${WORK_DIR}" # Last Part depmod modprobe kvdo modprobe uds
#!/bin/bash install_dependencies() { (( ${#} > 1 )) && { apt update apt install -y "$@" } || echo "No dependencies to install" } clean_dependencies() { (( ${#} > 1 )) && { apt autoremove --purge -y "$@" } || echo "No dependencies to remove" } clone_repo() { (( ${#} == 1 )) && { TEMPDIR=$(mktemp -d "${1/*\/}.XXX") git clone "$1" "${TEMPDIR}" && \ cd "$TEMPDIR" && pwd -P } } # First part : KVDO module install_dependencies git make "linux-headers-$(uname -r)" > /dev/null 2>&1 WORK_DIR="$(clone_repo https://github.com/tigerblue77/kvdo.git)" ( cd "${WORK_DIR}" && \ make -j"$(nproc)" -C "/usr/src/linux-headers-$(uname -r)" M="${WORK_DIR}" ) > kvdo_log 2>&1 cp "${WORK_DIR}/vdo/kvdo.ko" "${WORK_DIR}/uds/uds.ko" "/lib/modules/$(uname -r)" clean_dependencies git make "linux-headers-$(uname -r)" > /dev/null 2>&1 rm -Rf "${WORK_DIR}" # Second Part: VDO Module install_dependencies git make gcc uuid-dev libz-dev libdevmapper-dev libblkid-dev > /dev/null 2>&1 WORK_DIR="$(clone_repo https://github.com/dm-vdo/vdo.git)" ( cd "${WORK_DIR}" && \ make -j"$(nproc)" && \ make -j"$(nproc)" install ) > vdo_build_log 2>&1 clean_dependencies git make gcc uuid-dev libz-dev libdevmapper-dev libblkid-dev > /dev/null 2>&1 rm -Rf "${WORK_DIR}" # Last Part depmod modprobe kvdo modprobe uds
git clone https://github.com/dm-vdo/kvdo.git $WORK_DIRECTORY && \
Related posts
- Unable to convert /home LVM logical volume to LVM VDO volume
- VDO – deduplicated and compressed block storage
- How do I keep custom kernel modules working after kernel upgrade ? (Debian 11)
- "lvextend" freezes my Debian server
- New LVM VDO logical volume inactive at startup, even with "--activate y" parameter