Btrfs: Difference between revisions

From www.ReeltoReel.nl Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
*list available devices
btrfs device scan
*list available filesystems
*list available filesystems
  btrfs filesystem show
  btrfs filesystem show
*create volume
mkfs.btrfs /dev/sdX
*'''stripe''' across devices (mirror metadata + stripe data)
mkfs.btrfs /dev/sda /dev/sdb /dev/sdc
*'''stripe''' across devices (stripe metadata + stripe data)
mkfs.btrfs -m raid0 /dev/sda /dev/sdb /dev/sdc
*'''mirror''' across devices (mirror metadata + stripe data)
mkfs.btrfs /dev/sda /dev/sdb /dev/sdc
*create subvolume
*create subvolume
  btrfs subvolume create /mnt/nonsense
  btrfs subvolume create /mnt/nonsense

Revision as of 09:33, 20 January 2012

  • list available devices
btrfs device scan
  • list available filesystems
btrfs filesystem show
  • create volume
mkfs.btrfs /dev/sdX
  • stripe across devices (mirror metadata + stripe data)
mkfs.btrfs /dev/sda /dev/sdb /dev/sdc
  • stripe across devices (stripe metadata + stripe data)
mkfs.btrfs -m raid0 /dev/sda /dev/sdb /dev/sdc
  • mirror across devices (mirror metadata + stripe data)
mkfs.btrfs /dev/sda /dev/sdb /dev/sdc
  • create subvolume
btrfs subvolume create /mnt/nonsense

where /mnt is the mountpoint of the btrfs volume

  • create snapshot
mkdir /mnt/snapshots
btrfs subvolume snapshot /mnt/nonsense /mnt/snapshots/vrijdag
  • add a new device
btrfs device add /dev/sda8 /mnt
  • balance the data
btrfs device balance /mnt