Hallo, Johannes,

Du meintest am 24.01.11:

>> My other problem: where has the ENOSPC problem be cured? Is it a
>> kernel problem?

> Which one? And yes, ENOSPC is kernel related.

The problem:

I create 1 btrfs device with 2 TByte
I add another device with 40 GByte

I fill the btrfs "device" with 30 GByte and then run "balance".

That results in


# btrfs filesystem show
Label: none  uuid: 121ae2ed-f572-43e6-8855-cd66ad534401
        Total devices 2 FS bytes used 94.68GB
        devid    2 size 37.27GB used 37.00GB path /dev/sdf
        devid    1 size 1.82TB used 63.04GB path /dev/sde

Label: 'MM2'  uuid: ad7c0668-316c-4a79-ba00-3b505b9d99b4
        Total devices 2 FS bytes used 1.15TB
        devid    1 size 1.81TB used 591.14GB path /dev/sde2
        *** Some devices missing

Btrfs Btrfs v0.19

# btrfs filesystem df /mnt/btr
Data, RAID0: total=4.00GB, used=2.00GB
Data: total=94.01GB, used=92.58GB
System, DUP: total=8.00MB, used=16.00KB
System: total=4.00MB, used=0.00
Metadata, DUP: total=1.00GB, used=111.87MB
Metadata: total=8.00MB, used=0.00

# df -t btrfs
Filesystem    Type   1K-blocks      Used Available Use% Mounted on
/dev/sde     btrfs   1992597264  99396500 1891304076   5% /mnt/btr

# fdisk -l

# btrfs filesystem show
Label: none  uuid: 121ae2ed-f572-43e6-8855-cd66ad534401
        Total devices 2 FS bytes used 93.68GB
        devid    2 size 37.27GB used 36.12GB path /dev/sdf
        devid    1 size 1.82TB used 93.16GB path /dev/sde

Label: 'MM2'  uuid: ad7c0668-316c-4a79-ba00-3b505b9d99b4
        Total devices 2 FS bytes used 1.15TB
        devid    1 size 1.81TB used 591.14GB path /dev/sde2
        *** Some devices missing

Btrfs Btrfs v0.19

# btrfs filesystem df /mnt/btr
Data, RAID0: total=64.00GB, used=31.90GB
Data: total=63.01GB, used=61.67GB
System, DUP: total=8.00MB, used=20.00KB
System: total=4.00MB, used=0.00
Metadata, RAID1: total=128.00MB, used=104.71MB
Metadata, DUP: total=1.00GB, used=6.15MB
Metadata: total=8.00MB, used=0.00

# df -t btrfs
Filesystem    Type   1K-blocks      Used Available Use% Mounted on
/dev/sde     btrfs   1992597264  98348716 1892087652   5% /mnt/btr

# ---------------------------------------------------

Regard the difference between "df" and "btrfs filesystem df".

When I copy some more files then the system tells "no space left on ..."

Yesterday I've run a similar experiment with 40 and 8 GByte - same bad  
behaviour:


# btrfs filesystem show
Label: none  uuid: da2f178e-a364-4494-a9e5-a7762ed81d10
        Total devices 2 FS bytes used 3.83GB
        devid    1 size 7.51GB used 6.13GB path /dev/sdb
        devid    2 size 37.27GB used 6.13GB path /dev/sdc

Btrfs Btrfs v0.19

# btrfs filesystem df /mnt/btr
Data, RAID0: total=12.00GB, used=3.83GB
System, RAID1: total=8.00MB, used=4.00KB
System: total=4.00MB, used=0.00
Metadata, RAID1: total=128.00MB, used=4.47MB

# df -t btrfs
Dateisystem   Typ    1K-Blöcke   Benutzt Verfügbar Ben% Eingehängt auf
/dev/sdb     btrfs    46963224   4021964  42667804   9% /mnt/btr


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

Reply via email to