Skip to content

Instantly share code, notes, and snippets.

Proxmox with LVM-thin and why we should use Trim/Discard

Excerpts from the Proxmox VE Administration Guide]

LVM normally allocates blocks when you create a volume. LVM thin pools instead allocates blocks when they are written. This behaviour is called thin-provisioning, because volumes can be much larger than physically available space.

8.10.2. Trim/Discard It is good practice to run fstrim (discard) regularly on VMs and containers. This releases data blocks that the filesystem isn’t using anymore. It reduces data usage and resource load. Most modern operating systems issue such discard commands to their disks regularly. You only need to ensure that the Virtual Machines enable the disk discard option.

@OAkyildiz
OAkyildiz / turtlebot2_noetic.rosinstall
Created July 28, 2020 06:52
rosinstall file for turtlebot2 packages in ROS Noetic on Ubuntu 20.04 Focal. I discarded ar_track and it's dependents to avoid updating all opencv references
repositories:
ddynamic_reconfigure:
type: git
url: https://github.com/pal-robotics/ddynamic_reconfigure
version: kinetic-devel
ecl/ecl_core:
type: git
url: https://github.com/stonier/ecl_core
version: release/0.62-noetic
ecl/ecl_lite:
@fntlnz
fntlnz / self-signed-certificate-with-custom-ca.md
Last active May 3, 2025 08:56
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@wangruohui
wangruohui / Install NVIDIA Driver and CUDA.md
Last active May 7, 2025 16:40
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@kalefranz
kalefranz / conda-repo-clone
Last active June 24, 2021 10:28
Conda Repo Clone
#!/usr/bin/env python
import hashlib
import json
import logging
import logging.handlers
import os
import shutil
import sys
import tempfile
import urllib