Differences between revisions 3 and 4
Revision 3 as of 2015-05-24 16:12:25
Size: 707
Editor: PieterSmit
Comment:
Revision 4 as of 2015-05-25 05:39:34
Size: 987
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
   {{{
   chatter +C /path
   * this disables cow(fragmentation) and also crc calculations on the files.
     {{{
     chatter +C /path
     }}}
    
 * defrag with
   * {{{
   btrfs filesystem defragment /path/file
Line 11: Line 17:
   * or faster for large files
     {{{
     cp --reflink=never vbox.vdi vbox.new.vdi ; rm vbox.vdi ; }}}

BTRFS filesystem

  • If you have virtual images on a btrfs, cow(copy on write) will cause a lot of fragmentation, turn it of for the directory of file with
    • this disables cow(fragmentation) and also crc calculations on the files.
      •      chatter +C /path
  • defrag with
    •    btrfs filesystem defragment /path/file
    • or faster for large files
      •      cp --reflink=never vbox.vdi vbox.new.vdi ; rm vbox.vdi ;      
  • Create raid array, raid1 all data mirrored once.
    • # mkfs.btrfs -m raid1 -d raid1 -L root /dev/disk/by-label/root1 /dev/disk/by-label/root2 /dev/disk/by-lab

el/root3 /dev/disk/by-label/root4

  • Mount options, add compress
  • subvolumes
    • mount option subvol=homevol

HP Server Raid tools

...

linux/btrfs (last edited 2022-02-07 05:52:27 by PieterSmit)