Hi List,

I am attempting to extract a tar archive into a btrfs filesystem and more often 
than not tar will fail with “No space left on device” error. I say “more often 
than not” because sometimes the extraction completes successfully even though I 
am following the same steps.

# mkfs.btrfs -f -s 65536 -n 65536 -d single -m dup /dev/system/turner_lv
# mount -v -o rw,relatime,space_cache /dev/system/turner_lv /turner
# cd /turner
# tar -xpf ~/turner.tar --selinux --xattrs --xattrs-include=*

Here is the error message for the latest attempt. Note that filename in the “no 
space” message from tar is not consistent in that it could fail on a different 
file on a separate attempt.

tar: ./lib/firmware/keyspan/usa18x.fw: Cannot open: No space left on device
tar: ./lib/firmware/nvidia/gm200/gr/sw_ctx.bin: Cannot open: No space left on 
device
tar: ./lib/modules/4.4.73-7-default/kernel/drivers/md/faulty.ko: Cannot open: 
No space left on device
tar: ./lib/modules/4.4.73-7-default/kernel/net/dns_resolver/dns_resolver.ko: 
Cannot open: No space left on device
tar: ./lib/modules/4.4.73-7-default/kernel/net/ipv4/ip_gre.ko;5cc1f748: Cannot 
open: No space left on device
tar: Exiting with failure status due to previous errors

The tar archive contains about 566M when extracted and the btrfs filesystem is 
5G in size.

A few other tidbits that I have noticed:
- this behavior is only so far found on ppc64le. I have performed the same 
steps on x86-64 without issue.
- when I slow down the write speed I have more successes 
(https://www.spinics.net/lists/linux-btrfs/msg83384.html)
- the btrfs filesystem is created on a LVM logical volume, whose volume group 
is using a device-mapper multipath device as the physical volume. note that I 
have replicated this same issue by removing LVM and multipath.

# uname -a
Linux mpath6pwr8 4.4.73-7-default #1 SMP Fri Jul 21 13:26:40 UTC 2017 (6beeafd) 
ppc64le ppc64le ppc64le GNU/Linux

# cat /etc/os-release 
NAME="SLES"
VERSION="12-SP3"
VERSION_ID="12.3"
PRETTY_NAME="SUSE Linux Enterprise Server 12 SP3"
ID="sles"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles_sap:12:sp3”

# btrfs --version
btrfs-progs v4.5.3+20160729

# mkfs.btrfs --version
mkfs.btrfs, part of btrfs-progs v4.5.3+20160729

# tar --version
tar (GNU tar) 1.27.1

# btrfs fi show
Label: none  uuid: 5895b3f8-6d36-4d37-aabd-0cbdbca62144
        Total devices 1 FS bytes used 544.62MiB
        devid    1 size 5.00GiB used 1.32GiB path /dev/mapper/system-root

Label: none  uuid: 8e71ab0d-0ef7-4b21-af05-c792ad0ac28d
        Total devices 1 FS bytes used 9.76GiB
        devid    1 size 15.00GiB used 12.02GiB path /dev/mapper/system-usr_lv

Label: none  uuid: bf684abc-34db-4033-872f-c7cb46139263
        Total devices 1 FS bytes used 1.56MiB
        devid    1 size 5.00GiB used 536.00MiB path /dev/mapper/system-home_lv

Label: none  uuid: cb0e6369-4579-4145-9c0e-a94f0fdffcc5
        Total devices 1 FS bytes used 406.56MiB
        devid    1 size 2.00GiB used 852.75MiB path /dev/mapper/system-root_lv

Label: none  uuid: ba3219c3-f5f4-438c-86c6-80ac2fa2454d
        Total devices 1 FS bytes used 92.31MiB
        devid    1 size 5.00GiB used 1.02GiB path /dev/mapper/system-tmp_lv

Label: none  uuid: 43418ec3-4a96-4fe9-9646-f6d2e976f85d
        Total devices 1 FS bytes used 212.12MiB
        devid    1 size 5.00GiB used 1.02GiB path /dev/mapper/system-var_lv

Label: none  uuid: 8917ac61-6d5a-40c7-8605-7c48990baf8a
        Total devices 1 FS bytes used 19.19MiB
        devid    1 size 5.00GiB used 1.02GiB path /dev/mapper/system-opt_lv

Label: none  uuid: 4b47b636-785a-4498-af16-8496deee26ac
        Total devices 1 FS bytes used 543.75MiB
        devid    1 size 5.00GiB used 1.52GiB path /dev/mapper/system-turner_lv

# btrfs fi df /turner
Data, single: total=1.01GiB, used=538.69MiB
System, DUP: total=8.00MiB, used=64.00KiB
Metadata, DUP: total=256.00MiB, used=5.00MiB
GlobalReserve, single: total=16.00MiB, used=0.00B

# btrfs fi usage /turner
Overall:
    Device size:                   5.00GiB
    Device allocated:              1.52GiB
    Device unallocated:            3.48GiB
    Device missing:                  0.00B
    Used:                        548.81MiB
    Free (estimated):              3.96GiB      (min: 2.22GiB)
    Data ratio:                       1.00
    Metadata ratio:                   2.00
    Global reserve:               16.00MiB      (used: 0.00B)

Data,single: Size:1.01GiB, Used:538.69MiB
   /dev/mapper/system-turner_lv    1.01GiB

Metadata,DUP: Size:256.00MiB, Used:5.00MiB
   /dev/mapper/system-turner_lv  512.00MiB

System,DUP: Size:8.00MiB, Used:64.00KiB
   /dev/mapper/system-turner_lv   16.00MiB

Unallocated:
   /dev/mapper/system-turner_lv    3.48GiB



Attachment: dmesg.out
Description: Binary data

Reply via email to