Skip to main content

Primary links

  • Home
  • AI
  • Kubernetes
  • Incus
  • Ansible
  • Terraform
  • OpenStack
  • Virtualization
  • Linux
  • SmartHome
  • HowTo

Misc

  • Linux
  • Hardware
  • Programming
  • Databases
  • Multimedia
  • Windows

Cloud

  • OpenStack
  • cloud-config
  • nextcloud

Virtualization

  • Virtualization
  • Incus
  • Docker
  • KVM
  • Kubernetes
  • LXC
  • LXD
  • QEMU
  • VMware
  • VirtualBox
  • multipass
  • podman
  • vagrant
  • XEN

Network

  • DNS
  • Firewall
  • Linux
  • OpenvSwitch
  • SSL
  • VLAN
  • VPN
  • iPXE
  • namespaces
  • nmcli
  • tcpdump

Storage

  • CEPH
  • DRBD
  • LVM
  • S3
  • ZFS
  • btrfs

Automation / CI/CD

  • Install
  • Ansible
  • GitLab
  • LLM
  • Preseed
  • Puppet
  • Terraform
  • Ubuntu autoinstall

Monitoring / Visualisation

  • Grafana
  • Icinga
  • Prometheus
  • Monitoring
  • ELK
  • mermaid
  • filesystem
  • linux
sudo apt-get install btrfs-tools
# mkfs.btrfs /dev/sdb
sudo mkfs.btrfs -L lxc /dev/sdb1

# list volumes
btrfs filesystem show

# list subvolumes
mount /dev/sdb1 /mnt/
btrfs subvolume list /mnt/

# create subvolume
sudo btrfs subvolume create /mnt/@sub1

# get default subvolume
btrfs subvolume get-default /mnt/

# set default subvolume
btrfs subvolume set-default 299 /mnt/

# mount subvolume
mount -o subvol=new_subvol /dev/sdb1 /tmp/2

btrfs filesystem resize 64g /mnt

# enable comprsssion (mountparameter)
compress

# /etc/fstab
/dev/sda        /       btrfs   rw,autodefrag,compress=lzo,noatime,thread_pool=16       00

# directroy to subvolume?
# mv /var/lib/lxc/installserver /var/lib/lxc/installserver_tmp
# btrfs subvol create /var/lib/lxc/installserver
# time cp -a --reflink /var/lib/lxc/installserver_tmp/rootfs /var/lib/lxc/installserver

# create snapshot
sudo btrfs subvolume snapshot / /@snap1

# list snapshots
btrfs subvolume list /

# delete snapshot
btrfs subvolume delete /@snap1

Links
http://wiki.ubuntuusers.de/Installieren_auf_Btrfs-Dateisystem
http://wiki.ubuntuusers.de/Befehle_Btrfs-Dateisystem

Profiles GitHub StackOverflow LinkedIn Xing
Contact Imprint
© panticz 2026

Cookie-Einstellungen

Diese Website nutzt eingebettete Inhalte von Drittanbietern (z.B. YouTube, SoundCloud). Beim Laden dieser Inhalte werden Daten an die jeweiligen Anbieter übermittelt. Datenverarbeitungserklärung