Re: cannot remove files: "rm" gives "no space left on device", 3.2.0-24, ubuntu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/18/2012 08:40 AM, rupert THURNER wrote:
> On Mon, Jun 18, 2012 at 7:53 AM, Goffredo Baroncelli <kreijack@xxxxxxxxx> wrote:
>> On 06/17/2012 09:54 PM, rupert THURNER wrote:
>>> displays the additional free space. that it displays 30% of metadata
>>> seems strange to me, or it counts the still existing ext4 snapshot
>>> from the conversion somehow into it?
>>>
>>> root@tv:~# btrfs filesystem df /media/388gb-data
>>> Data: total=260.59GB, used=251.51GB
>>> System: total=32.00MB, used=24.00KB
>>> Metadata: total=128.00GB, used=120.00GB
>>>
> .
>>> what would you recommend to do for "normal" usage? one should not
>>> always use the "nodatacow" option, isn't it?
>>
>> No, it shouldn't. On my system
>>
>>  ghigo@venice:~$ sudo btrfs fi df /
>>  Data: total=17.01GB, used=12.82GB
>>  System, DUP: total=40.00MB, used=4.00KB
>>  System: total=4.00MB, used=0.00
>>  Metadata, DUP: total=2.00GB, used=813.80MB
>>  Metadata: total=8.00MB, used=0.00
>>
>> So the ratio metadata:data it is about 1:20
>>
>> How many files are stored in your hard disk ? Which is a typical file
>> size ? If a lot of files are less than 4K, these are stored as metadata.
>> How big was the original ext4 filesystem ?
> 
> 370 files with ~1GB, and 10000 small. 

I am a bit confused: 370 files of about ~1GB is about a total of
300-400GB; instead you reported

>>> root@tv:~# btrfs filesystem df /media/388gb-data
>>> Data: total=260.59GB, used=251.51GB

My idea is that you converted an old ext4 filesystem (about 300-400GB of
data), and also you updated the greatest part of these files.
Updating an ext4 converted file means a lot of copy-on-write (the
original one is still on the disk and unaffected by the change, an I
think that the consumed space it is not showed), and it might justify
the high metadata usage. But this is only a my guess.

How big is the disk ? As empirical rule, all the file-systems work well
when they are used at 50%. I supposed that the disk it is used nearly 100%.

Is it doable to remove the old ext4 image ? Have you a backup ?


> they are in 1600 directories. i
> converted it from ext4 when it was nearly full, removed maybe 20 big
> files and added again 30 big files. i had the feeling that btrfs was
> able to store more big files than ext4, but i did not count the files
> before.
> 
> # du --max-depth=0 videos* | awk '{sum = sum + $1 ; print} END {print sum}'
> ..
> 364315724
> 
> root@tv:/media/388gb-data# du -sh .
> 724G	.
> 
> root@tv:/media/388gb-data# ls -l ext2_saved/
> total 381793680
> -r-------- 1 root root 417276612608 Jan  1  1970 image
> .
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux