Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
btrfs: No space left on device when copying a large file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
randalla
n00b
n00b


Joined: 14 Oct 2008
Posts: 73
Location: Seattle, WA

PostPosted: Tue Apr 15, 2014 6:38 pm    Post subject: btrfs: No space left on device when copying a large file Reply with quote

I'm attempting to use btrfs with compression on a ~400GiB drive. The drive itself is a hardware RAID5, and has nothing on it. All I've done is simply run mkfs.btrfs on it, and mounted it. When I copy over a particular directory that contains a file that is 1.99GiB, it fails with a message saying "No space left on device". By the time this happens, I'm only using about 6GiB of space on the drive, and it's always this file. It's very perplexing to say the least.

Current test is simply:

Code:
# umount /v_archive
# mkfs.btrfs -f -L v_archive /dev/sdb1
# mount /v_archive
# cp -R /path/to/dir /v_archive/
cp: error writing ‘/v_archive/dir/history.dat’: No space left on device
cp: failed to extend ‘/v_archive/dir/history.dat’: No space left on device


The /etc/fstab string is:
Code:
/dev/sdb1   /v_archive   btrfs   noatime,compress=lzo,autodefrag   0 0


Here's some info from btrfs:

Code:
# btrfs fi df /v_archive/
Data, single: total=6.01GiB, used=3.53GiB
System, DUP: total=8.00MiB, used=16.00KiB
System, single: total=4.00MiB, used=0.00
Metadata, DUP: total=1.00GiB, used=27.22MiB
Metadata, single: total=8.00MiB, used=0.00

# df -h /v_archive
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdb1       409G  3.6G  403G   1% /v_archive

# btrfs fi show /v_archive
Label: v_archive  uuid: 36b49163-6e03-4999-b393-6a5d8150f1e7
        Total devices 1 FS bytes used 3.56GiB
        devid    1 size 408.37GiB used 8.04GiB path /dev/sdb1

Btrfs v3.12


Server info:
Code:
# uname -a
Linux localhost 3.10.25-gentoo #2 SMP Fri Feb 28 11:35:24 PST 2014 x86_64 Intel(R) Xeon(R) CPU E5345 @ 2.33GHz GenuineIntel GNU/Linux


Note: the server is kept up to date weekly, though I'm a little outdated on my kernel right now.

Does anyone have any advice? If I put this in the wrong forum, I do apologize.
Back to top
View user's profile Send private message
freke
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2003
Posts: 136

PostPosted: Thu Apr 17, 2014 7:58 pm    Post subject: Reply with quote

Seems like btrfs have troubles with big files - stumbled across this in another part of the forum...

Solved his problem by limiting the transferspeed it seems.
Back to top
View user's profile Send private message
randalla
n00b
n00b


Joined: 14 Oct 2008
Posts: 73
Location: Seattle, WA

PostPosted: Fri Apr 18, 2014 12:29 am    Post subject: Reply with quote

freke wrote:
Seems like btrfs have troubles with big files - stumbled across this in another part of the forum...

Solved his problem by limiting the transferspeed it seems.


Ugh, that's nasty. My hope with btrfs was to hot copy the data files on the ocfs2 volume to the compressed btrfs volume. I guess I will have to look at something else for the file system that supports compression.

Thanks for the heads up, though.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum