From: Tomasz Chmielewski <mangoo@wpkg.org>
To: linux-btrfs@vger.kernel.org
Subject: how can I copy files bigger than ~32 GB when using compress-force?
Date: Mon, 04 Oct 2010 22:26:26 +0200 [thread overview]
Message-ID: <4CAA3872.3080106@wpkg.org> (raw)
I'm trying to copy a ~220 GB file from a ext4 to btrfs filesystem with
336 GB free space on it. System is running 2.6.36-rc6.
File size on a ext4 filesystem:
# ls -l srv1-backup.qcow2
-rw-r--r-- 1 root root 219564146688 2010-09-26 21:56 srv1-backup.qcow2
Unfortunately it fails when only about 32 GB is copied (with
compress-force mount option enabled).
Copying to btrfs mount point stops, no reads or writes from any
filesystem, after file copied to btrfs is around 32 GB:
$ ls -l /mnt/btrfs/srv1-backup.qcow2
-rw-r--r-- 1 root root 32328482816 2010-10-04 21:49
/mnt/btrfs/srv1-backup.qcow2
This is 100% reproducible, when it gets to ~32 GB (varies by +/- 2 GB),
cp can't be interrupted, killed and the only way to get this "fixed"
seem to be rebooting the machine.
_Sometimes_, cp quits after waiting for longer with "no space left".
To reproduce:
Let's create a btrfs filesystem:
# mkfs.btrfs /dev/sdb4
WARNING! - Btrfs Btrfs v0.19 IS EXPERIMENTAL
WARNING! - see http://btrfs.wiki.kernel.org before using
fs created label (null) on /dev/sdb4
nodesize 4096 leafsize 4096 sectorsize 4096 size 335.72GB
Btrfs Btrfs v0.19
# mount -o noatime,compress-force /dev/sdb4 /mnt/btrfs/
# df -h /mnt/btrfs
Filesystem Size Used Avail Use% Mounted on
/dev/sdb4 336G 56K 336G 1% /mnt/btrfs
# cp -v srv1-backup.qcow2 /mnt/btrfs/
`srv1-backup.qcow2' -> `/mnt/btrfs/srv1-backup.qcow2'
It always hands for me after copying ~32 GB, or quits with "no space left".
--
Tomasz Chmielewski
http://wpkg.org
next reply other threads:[~2010-10-04 20:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-04 20:26 Tomasz Chmielewski [this message]
2010-10-04 20:37 ` how can I copy files bigger than ~32 GB when using compress-force? Chris Mason
-- strict thread matches above, loose matches on Subject: below --
2010-10-04 21:42 Tomasz Chmielewski
2010-10-04 22:28 ` Chris Mason
2010-10-05 4:12 ` Chester
2010-10-05 6:16 ` Tomasz Chmielewski
2010-10-12 11:12 ` Tomasz Chmielewski
2010-10-12 15:01 ` Tomasz Chmielewski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CAA3872.3080106@wpkg.org \
--to=mangoo@wpkg.org \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).