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
Next revision
Previous revision
tips:btrfs [2016/10/12 07:10] – [as root filesystem] 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 ===== 
- 
-create subvolume sub1 
-<code bash> 
-btrfs subvolume create <mnt-point-of-pool-or-subvolume>/sub1 
-</code> 
- 
  
  • tips/btrfs.1476249049.txt.gz
  • Last modified: 2016/10/12 07:10
  • by scipio