tips:btrfs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tips:btrfs [2016/10/12 07:33] – [subvolumes] scipiotips:btrfs [2021/10/13 19:51] (current) – removed scipio
Line 1: Line 1:
-====== BTRFS ====== 
  
- 
-====== BTRFS  ====== 
- 
-===== with libvirt ===== 
- 
-<code bash> 
-btrfs subvolume create /var/lib/libvirt/images/ 
-chown libvirt-qemu:kvm images 
-chattr +C /var/lib/libvirt/images 
-</code> 
- 
-===== as root filesystem ===== 
- 
- 
-create root subvolume 
-<code> 
-mount /dev/sda1 /tmp/btrfs 
-btrfs subvolume set-default 5 /tmp/btrfs 
-cd /tmp/btrfs 
-btrfs subvolume create @ 
-</code> 
- 
-add " rootflags=subvol=@ " to grub kernel options 
- 
-if update-grub fail check [[http://edoceo.com/notabene/grub-probe-error-cannot-find-device-for-root|this]] 
- 
-===== subvolumes ===== 
- 
-<code bash> 
-btrfs subvolume list -p / 
-</code> 
- 
-create subvolume sub1 
-<code bash> 
-btrfs subvolume create <mnt-point-of-pool-or-subvolume>/sub1 
-</code> 
- 
-take snapshot (thas is another subvolume) 
-<code> 
-btrfs subvolume snapshot <subvolume> <snap-path> 
-</code> 
- 
-delete subvolume or snapshot 
-<code bash> 
-btrfs subvolume delete <path> 
-</code> 
  • tips/btrfs.1476250424.txt.gz
  • Last modified: 2016/10/12 07:33
  • by scipio