Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #200575

btrfs and deduplication

From Markus Raps <m.raps@rapsplace.de>
Newsgroups linux.debian.user
Subject btrfs and deduplication
Date 2018-09-25 10:20 +0200
Message-ID <wBQJz-8lp-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi there,

currently iam trying to get deduplication working in debian/btrfs

#so i created a btrfs filesystem

mkfs.btrfs /dev/vdb1
mkdir /mnt/btrfs
mount /dev/vdb1 /mnt/btrfs

# create some random file
dd if=/dev/urandom of=/mnt/btrfs/img bs=1M count=1024
for i in {1..30}; do cp /mnt/btrfs/img /mnt/btrfs/img$i; done

# dedup this stuff
jdupes -S -B -r /mnt/btrfs/
Examining 31 files, 1 dirs (in 1 specified)
Deduplication done (30 files processed)

raps-debian btrfs # btrfs fi df /mnt/btrfs/
Data, single: total=31.50GiB, used=30.96GiB
System, DUP: total=32.00MiB, used=16.00KiB
Metadata, DUP: total=222.94MiB, used=33.69MiB
GlobalReserve, single: total=33.56MiB, used=0.00B

raps-debian btrfs # btrfs fi usage /mnt/btrfs/
Overall:
     Device size:                  32.00GiB
     Device allocated:             32.00GiB
     Device unallocated:            1.04MiB
     Device missing:                  0.00B
     Used:                         31.03GiB
     Free (estimated):            549.41MiB      (min: 549.41MiB)
     Data ratio:                       1.00
     Metadata ratio:                   2.00
     Global reserve:               33.56MiB      (used: 0.00B)

Data,single: Size:31.50GiB, Used:30.96GiB
    /dev/vdb1      31.50GiB

Metadata,DUP: Size:222.94MiB, Used:33.69MiB
    /dev/vdb1     445.88MiB

System,DUP: Size:32.00MiB, Used:16.00KiB
    /dev/vdb1      64.00MiB

Unallocated:
    /dev/vdb1       1.04MiB
raps-debian btrfs #



hm ... hasn't worked.
wrong tool ? did i missed something
or have i completely misunderstood deduplication?


Greetings
Markus

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

btrfs and deduplication Markus Raps <m.raps@rapsplace.de> - 2018-09-25 10:20 +0200
  Re: btrfs and deduplication Anders Andersson <pipatron@gmail.com> - 2018-09-26 00:50 +0200
    Re: btrfs and deduplication Markus Raps <m.raps@rapsplace.de> - 2018-09-26 11:40 +0200

csiph-web