Bug 931571

Summary: no space left on device when upgrading
Product: [openSUSE] openSUSE Distribution Reporter: Forgotten User SpTvqxsYZX <forgotten_SpTvqxsYZX>
Component: BasesystemAssignee: David Sterba <dsterba>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P2 - High CC: aschnell, bwiedemann, chcao, dsterba, forgotten_eE2c9JI9lH, jeffm, kolAflash, ma, mge, sebix+novell.com
Version: 13.2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Screenshot from openSUSE 13.2 installation with the switch to disable snapshotting

Description Forgotten User SpTvqxsYZX 2015-05-19 23:44:31 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0
Build Identifier: 

When upgrading, I get a no space left on device, but df -h says that there is over 10GB left on /.

Reproducible: Always



Expected Results:  
$ df -h
Filesystem           Size  Used Avail Use% Mounted on
/dev/sda1             30G   17G   14G  55% /
devtmpfs             7.9G     0  7.9G   0% /dev
tmpfs                7.9G   41M  7.8G   1% /dev/shm
tmpfs                7.9G  2.4M  7.9G   1% /run
tmpfs                7.9G     0  7.9G   0% /sys/fs/cgroup
/dev/sda4             96M   22M   75M  23% /boot/efi
/dev/sda1             30G   17G   14G  55% /var/log
/dev/sda1             30G   17G   14G  55% /var/lib/pgsql
/dev/sda1             30G   17G   14G  55% /var/lib/named
/dev/sda6            179G  118G   61G  67% /mnt/win7
/dev/sdb1            784G  608G  137G  82% /home
/dev/sda1             30G   17G   14G  55% /opt
/dev/sda1             30G   17G   14G  55% /.snapshots
/dev/sda1             30G   17G   14G  55% /var/tmp
/dev/sda1             30G   17G   14G  55% /var/spool
/dev/sda1             30G   17G   14G  55% /var/opt
/dev/sda1             30G   17G   14G  55% /var/lib/mailman
/dev/sda1             30G   17G   14G  55% /var/crash
/dev/sda1             30G   17G   14G  55% /usr/local
/dev/sda1             30G   17G   14G  55% /tmp
/dev/sda1             30G   17G   14G  55% /srv
/dev/sda1             30G   17G   14G  55% /boot/grub2/x86_64-efi
/dev/sda1             30G   17G   14G  55% /boot/grub2/i386-pc
//192.168.0.6/media   32G  9.3G   23G  30% /mnt/data


$ sudo zypper -v ref;sudo zypper -v dup
Verbosity: 1
Initializing Target
Specified repositories: 
Checking whether to refresh metadata for KDE:Applications
Retrieving: repomd.xml ..........................................................................[done]
Retrieving: repomd.xml ..........................................................................[done]
Retrieving: repomd.xml.asc ......................................................................[done]
Retrieving: repomd.xml.key ......................................................................[done]
Retrieving: repomd.xml ..........................................................................[done]
  Repository:       KDE:Applications                            
  Key Name:         KDE OBS Project <KDE@build.opensuse.org>    
  Key Fingerprint:  4E8E6DE2 961F3083 EAC50086 27C07017 6F88BB2F
  Key Created:      Sun 31 Aug 2014 08:06:11 AM MDT             
  Key Expires:      Tue 08 Nov 2016 07:06:11 AM MST             
  Rpm Name:         gpg-pubkey-6f88bb2f-54032bd3                
Retrieving: d59ea70ca9e07bfaa6fdbf3c11c801933af567b1eb27f892e8de6bb05a5bb362-primar[done (394.2 KiB/s)]
Retrieving repository 'KDE:Applications' metadata ...............................................[done]
Building repository 'KDE:Applications' cache ....................................................[done]
Checking whether to refresh metadata for KDE:Unstable:Extra
Retrieving: repomd.xml ..........................................................................[done]
Retrieving: repomd.xml ..........................................................................[done]
Retrieving: repomd.xml.asc ......................................................................[done]
Retrieving: repomd.xml.key ......................................................................[done]
Retrieving: repomd.xml ..........................................................................[done]
  Repository:       KDE:Unstable:Extra                                        
  Key Name:         KDE:Unstable OBS Project <KDE:Unstable@build.opensuse.org>
  Key Fingerprint:  4A3E0756 26347342 E1A3F257 2E85BAEE 9EBD09C4              
  Key Created:      Wed 05 Nov 2014 12:09:28 AM MST                           
  Key Expires:      Fri 13 Jan 2017 12:09:28 AM MST                           
  Rpm Name:         gpg-pubkey-9ebd09c4-5459cd28                              
Retrieving: 8ae8dea79c3af21b007333c62631c48bf65226284bc57bd410ed97dd7de249a1-primary.xml.gz .....[done]
Retrieving repository 'KDE:Unstable:Extra' metadata .............................................[done]
Building repository 'KDE:Unstable:Extra' cache ..................................................[done]
Checking whether to refresh metadata for nVidia Graphics Drivers
Retrieving: repomd.xml ..........................................................................[done]
Repository 'nVidia Graphics Drivers' is up to date.
Checking whether to refresh metadata for openSUSE BuildService - Wine CVS Builds
Retrieving: repomd.xml ..........................................................................[done]
Repository 'openSUSE BuildService - Wine CVS Builds' is up to date.
Checking whether to refresh metadata for Packman Repository
Retrieving: repomd.xml ..........................................................................[done]
Repository 'Packman Repository' is up to date.
Checking whether to refresh metadata for games:tools
Retrieving: repomd.xml ..........................................................................[done]
Repository 'games:tools' is up to date.
Checking whether to refresh metadata for google-chrome
Retrieving: repomd.xml ..........................................................................[done]
Repository 'google-chrome' is up to date.
Skipping disabled repository 'home:Kieltux:nvidia'
Checking whether to refresh metadata for home:dnh
Retrieving: repomd.xml ..........................................................................[done]
Repository 'home:dnh' is up to date.
Checking whether to refresh metadata for kdefw5
Retrieving: repomd.xml ..........................................................................[done]
Repository 'kdefw5' is up to date.
Skipping disabled repository 'openSUSE-13.2-0'
Checking whether to refresh metadata for openSUSE:13.2:Update
Retrieving: repomd.xml ..........................................................................[done]
Repository 'openSUSE:13.2:Update' is up to date.
Checking whether to refresh metadata for qt5
Retrieving: repomd.xml ..........................................................................[done]
Repository 'qt5' is up to date.
Skipping disabled repository 'openSUSE-13.2-Debug'
Skipping disabled repository 'openSUSE-13.2-Update-Debug'
Skipping disabled repository 'openSUSE-13.2-Update-Debug-Non-Oss'
Checking whether to refresh metadata for openSUSE-13.2-Non-Oss
Retrieving: content .............................................................................[done]
Retrieving: media ...............................................................................[done]
Repository 'openSUSE-13.2-Non-Oss' is up to date.
Checking whether to refresh metadata for openSUSE-13.2-Oss
Retrieving: content .............................................................................[done]
Retrieving: media ...............................................................................[done]
Repository 'openSUSE-13.2-Oss' is up to date.
Skipping disabled repository 'openSUSE-13.2-Source'
Checking whether to refresh metadata for openSUSE-13.2-Update
Retrieving: repomd.xml ..........................................................................[done]
Repository 'openSUSE-13.2-Update' is up to date.
Checking whether to refresh metadata for openSUSE-13.2-Update-Non-Oss
Retrieving: repomd.xml ..........................................................................[done]
Retrieving: repomd.xml ..........................................................................[done]
Retrieving: repomd.xml.asc ......................................................................[done]
Retrieving: repomd.xml.key ......................................................................[done]
Retrieving: repomd.xml ..........................................................................[done]
  Repository:       openSUSE-13.2-Update-Non-Oss                        
  Key Name:         openSUSE Project Signing Key <opensuse@opensuse.org>
  Key Fingerprint:  22C07BA5 34178CD0 2EFE22AA B88B2FD4 3DBDC284        
  Key Created:      Mon 05 May 2014 02:37:40 AM MDT                     
  Key Expires:      Thu 02 May 2024 02:37:40 AM MDT                     
  Rpm Name:         gpg-pubkey-3dbdc284-53674dd4                        
Retrieving: de3acac822ef474d29a29e3f03f5d776c7ffd2d28aa84aa9925ed2eab4827835-app-icon[done (5.6 KiB/s)]
Retrieving: e51d18afe450b81437d673e540ed82eecfcc21ca28527f5cd371c330fb058045-updateinfo.xml.gz ..[done]
Retrieving: 93d699313c7214a37526dac5fc44b0b3b0404c5ef32c7ba385cfdcf7bf1e2159-primary.xml.gz .....[done]
Retrieving: f563afa432d4773eee2ea928ea6e63b8653c8c482ceccffc2e59f9294d50531f-suseda[done (176.6 KiB/s)]
Retrieving: b1a5d8538cd7c0b982676a6fd6bf315edf032a54778b15d32648d678f2b1419e-deltainfo.xml.gz ...[done]
Retrieving repository 'openSUSE-13.2-Update-Non-Oss' metadata ...................................[done]
Building repository 'openSUSE-13.2-Update-Non-Oss' cache ........................................[done]
All repositories have been refreshed.
Verbosity: 1
Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command.
Initializing Target
Checking whether to refresh metadata for KDE:Applications
Checking whether to refresh metadata for KDE:Unstable:Extra
Checking whether to refresh metadata for nVidia Graphics Drivers
Checking whether to refresh metadata for openSUSE BuildService - Wine CVS Builds
Checking whether to refresh metadata for Packman Repository
Checking whether to refresh metadata for games:tools
Checking whether to refresh metadata for google-chrome
Checking whether to refresh metadata for home:dnh
Checking whether to refresh metadata for kdefw5
Checking whether to refresh metadata for openSUSE:13.2:Update
Checking whether to refresh metadata for qt5
Checking whether to refresh metadata for openSUSE-13.2-Non-Oss
Checking whether to refresh metadata for openSUSE-13.2-Oss
Checking whether to refresh metadata for openSUSE-13.2-Update
Checking whether to refresh metadata for openSUSE-13.2-Update-Non-Oss
Loading repository data...
Reading installed packages...
Computing distribution upgrade...
Force resolution: No
Computing upgrade...

The following 4 applications are going to be REMOVED:
  Dolphin    
  Konqueror  
  KWrite     
  Marble     


The following 29 packages are going to be upgraded:
  dolphin                         15.04.1-1.3 -> 15.04.1-1.4                
  flash-player                    11.2.202.457-2.48.1 -> 11.2.202.460-2.51.1
  flash-player-kde4               11.2.202.457-2.48.1 -> 11.2.202.460-2.51.1
  kate-plugins                    15.04.1-1.2 -> 15.04.1-1.3                
  kcalc                           15.04.1-1.2 -> 15.04.1-1.3                
  kcron                           15.04.1-1.2 -> 15.04.1-1.3                
  kdeartwork4-screensaver         15.04.1-1.5 -> 15.04.1-1.6                
  kdeartwork4-wallpapers          15.04.1-1.5 -> 15.04.1-1.6                
  kdeartwork4-wallpapers-weather  15.04.1-1.5 -> 15.04.1-1.6                
  kdebase4-libkonq                15.04.1-1.3 -> 15.04.1-1.4                
  kdebase4-nsplugin               15.04.1-1.3 -> 15.04.1-1.4                
  kdebase4-runtime                15.04.1-1.2 -> 15.04.1-1.3                
  kde-l10n-ar                     15.04.1-3.1 -> 15.04.1-3.2                
  kdepasswd                       15.04.1-1.3 -> 15.04.1-1.4                
  kdialog                         15.04.1-1.3 -> 15.04.1-1.4                
  keditbookmarks                  15.04.1-1.3 -> 15.04.1-1.4                
  konqueror                       15.04.1-1.3 -> 15.04.1-1.4                
  konqueror-plugins               15.04.1-1.3 -> 15.04.1-1.4                
  kwrite                          15.04.1-1.2 -> 15.04.1-1.3                
  libastro1                       15.04.1-1.2 -> 15.04.1-1.3                
  libkgeomap                      15.04.1-3.1 -> 15.04.1-4.1                
  libkgeomap2                     15.04.1-3.1 -> 15.04.1-4.1                
  libkmahjongg                    15.04.1-1.2 -> 15.04.1-1.3                
  libkonq5                        15.04.1-1.3 -> 15.04.1-1.4                
  libmarblewidget21               15.04.1-1.2 -> 15.04.1-1.3                
  marble                          15.04.1-1.2 -> 15.04.1-1.3                
  marble-data                     15.04.1-1.2 -> 15.04.1-1.3                
  marble-doc                      15.04.1-1.2 -> 15.04.1-1.3                
  plasmoid-folderview             15.04.1-1.3 -> 15.04.1-1.4                


29 packages to upgrade.
Overall download size: 130.1 MiB. Already cached: 0 B  After the operation, additional 7.9 KiB will be 
used.
Continue? [y/n/? shows all options] (y): y
(Use arrows or pgUp/pgDown keys to scroll the text by lines or pages.)

In order to install 'flash-player', you must agree to terms of the following license agreement:

ADOBE SYSTEMS INCORPORATED
Personal Computer Software License Agreement

1. WARRANTY DISCLAIMER, BINDING AGREEMENT AND ADDITIONAL TERMS AND
AGREEMENTS.
1.1 WARRANTY DISCLAIMER. THE SOFTWARE AND OTHER INFORMATION IS
DELIVERED TO YOU “AS IS” AND WITH ALL FAULTS. ADOBE, ITS SUPPLIERS AND
CERTIFICATION AUTHORITIES DO NOT AND CANNOT WARRANT THE PERFORMANCE
OR RESULTS YOU MAY OBTAIN BY USING THE SOFTWARE, CERTIFICATE AUTHORITY
SERVICES OR OTHER THIRD PARTY OFFERINGS. EXCEPT TO THE EXTENT ANY
WARRANTY, CONDITION, REPRESENTATION OR TERM CANNOT OR MAY NOT BE
EXCLUDED OR LIMITED BY LAW APPLICABLE TO YOU IN YOUR JURISDICTION,
ADOBE AND ITS SUPPLIERS AND CERTIFICATION AUTHORITIES MAKE NO
WARRANTIES CONDITIONS, REPRESENTATIONS, OR TERMS (EXPRESS OR IMPLIED
WHETHER BY STATUTE, COMMON LAW, CUSTOM, USAGE OR OTHERWISE) AS TO ANY
MATTER INCLUDING WITHOUT LIMITATION NONINFRINGEMENT OF THIRD PARTY
RIGHTS, MERCHANTABILITY, INTEGRATION, SATISFACTORY QUALITY, OR FITNESS
FOR ANY PARTICULAR PURPOSE. THE PROVISIONS OF SECTIONS 1.1 AND 10 SHALL
Do you agree with the terms of the license? [yes/no] (no): yes
committing
Retrieving package kate-plugins-15.04.1-1.3.x86_64               (1/29), 658.1 KiB (  4.9 MiB unpacked)
Retrieving: kate-plugins-15.04.1-1.3.x86_64.rpm ...................................[done (374.0 KiB/s)]
Retrieving package kcalc-15.04.1-1.3.x86_64                      (2/29), 167.2 KiB (546.3 KiB unpacked)
Retrieving: kcalc-15.04.1-1.3.x86_64.rpm ..........................................[done (194.6 KiB/s)]
Retrieving package kcron-15.04.1-1.3.x86_64                      (3/29), 235.9 KiB (456.9 KiB unpacked)
Retrieving: kcron-15.04.1-1.3.x86_64.rpm ..........................................[done (519.9 KiB/s)]
Retrieving package kde-l10n-ar-15.04.1-3.2.noarch                (4/29),   2.1 MiB (  5.7 MiB unpacked)
Retrieving: kde-l10n-ar-15.04.1-3.2.noarch.rpm ....................................[done (613.3 KiB/s)]
Retrieving package kdeartwork4-wallpapers-15.04.1-1.6.noarch     (5/29),  77.0 MiB ( 77.5 MiB unpacked)
Retrieving: kdeartwork4-wallpapers-15.04.1-1.6.noarch.rpm .........................[done (863.9 KiB/s)]
Retrieving package kdebase4-runtime-15.04.1-1.3.x86_64           (6/29),   8.6 MiB ( 20.6 MiB unpacked)
Retrieving: kdebase4-runtime-15.04.1-1.3.x86_64.rpm ...............................[done (837.4 KiB/s)]
Retrieving package libastro1-15.04.1-1.3.x86_64                  (7/29), 109.1 KiB (246.4 KiB unpacked)
Retrieving: libastro1-15.04.1-1.3.x86_64.rpm ......................................[done (156.4 KiB/s)]
Retrieving package libkmahjongg-15.04.1-1.3.x86_64               (8/29),   1.6 MiB (  6.4 MiB unpacked)
Retrieving: libkmahjongg-15.04.1-1.3.x86_64.rpm ...................................[done (758.9 KiB/s)]
Retrieving package libkonq5-15.04.1-1.4.x86_64                   (9/29),  94.2 KiB (264.2 KiB unpacked)
Retrieving: libkonq5-15.04.1-1.4.x86_64.rpm .....................................................[done]
Retrieving package kwrite-15.04.1-1.3.x86_64                    (10/29),  76.2 KiB (193.7 KiB unpacked)
Retrieving: kwrite-15.04.1-1.3.x86_64.rpm .......................................................[done]
Retrieving package kdeartwork4-wallpapers-weather-15.04.1-1.6.noarch
                                                                (11/29),   8.3 MiB (  8.4 MiB unpacked)
Retrieving: kdeartwork4-wallpapers-weather-15.04.1-1.6.noarch.rpm .................[done (816.6 KiB/s)]
Retrieving package keditbookmarks-15.04.1-1.4.x86_64            (12/29), 131.7 KiB (444.6 KiB unpacked)
Retrieving: keditbookmarks-15.04.1-1.4.x86_64.rpm ...............................................[done]
Retrieving package kdialog-15.04.1-1.4.x86_64                   (13/29),  61.2 KiB (135.7 KiB unpacked)
Retrieving: kdialog-15.04.1-1.4.x86_64.rpm ........................................[done (198.3 KiB/s)]
Retrieving package kdebase4-nsplugin-15.04.1-1.4.x86_64         (14/29), 132.7 KiB (405.6 KiB unpacked)
Retrieving: kdebase4-nsplugin-15.04.1-1.4.x86_64.rpm ............................................[done]
Retrieving package kdeartwork4-screensaver-15.04.1-1.6.x86_64   (15/29), 630.7 KiB (  3.6 MiB unpacked)
Retrieving: kdeartwork4-screensaver-15.04.1-1.6.x86_64.rpm ........................[done (702.3 KiB/s)]
Retrieving package libmarblewidget21-15.04.1-1.3.x86_64         (16/29),   1.4 MiB (  4.6 MiB unpacked)
Retrieving: libmarblewidget21-15.04.1-1.3.x86_64.rpm ..............................[done (834.1 KiB/s)]
Retrieving package plasmoid-folderview-15.04.1-1.4.x86_64       (17/29), 177.5 KiB (556.7 KiB unpacked)
Retrieving: plasmoid-folderview-15.04.1-1.4.x86_64.rpm ............................[done (438.1 KiB/s)]
Retrieving package kdepasswd-15.04.1-1.4.x86_64                 (18/29), 197.8 KiB (322.6 KiB unpacked)
Retrieving: kdepasswd-15.04.1-1.4.x86_64.rpm ....................................................[done]
Retrieving package kdebase4-libkonq-15.04.1-1.4.x86_64          (19/29),  87.9 KiB (243.6 KiB unpacked)
Retrieving: kdebase4-libkonq-15.04.1-1.4.x86_64.rpm .............................................[done]
Retrieving package marble-15.04.1-1.3.x86_64                    (20/29),   1.5 MiB (  5.9 MiB unpacked)
Retrieving: marble-15.04.1-1.3.x86_64.rpm .........................................[done (944.8 KiB/s)]
Retrieving package libkgeomap-15.04.1-4.1.x86_64                (21/29),  28.4 KiB ( 52.6 KiB unpacked)
Retrieving: libkgeomap-15.04.1-4.1.x86_64.rpm ...................................................[done]
Retrieving package konqueror-plugins-15.04.1-1.4.x86_64         (22/29), 486.4 KiB (  1.8 MiB unpacked)
Retrieving: konqueror-plugins-15.04.1-1.4.x86_64.rpm ..............................[done (285.4 KiB/s)]
Retrieving package dolphin-15.04.1-1.4.x86_64                   (23/29),   1.1 MiB (  2.9 MiB unpacked)
Retrieving: dolphin-15.04.1-1.4.x86_64.rpm ........................................[done (584.6 KiB/s)]
Retrieving package marble-data-15.04.1-1.3.noarch               (24/29),  13.4 MiB ( 22.5 MiB unpacked)
Retrieving: marble-data-15.04.1-1.3.noarch.rpm ....................................[done (694.0 KiB/s)]
Retrieving package libkgeomap2-15.04.1-4.1.x86_64               (25/29), 117.2 KiB (397.3 KiB unpacked)
Retrieving: libkgeomap2-15.04.1-4.1.x86_64.rpm ..................................................[done]
Retrieving package konqueror-15.04.1-1.4.x86_64                 (26/29),   1.3 MiB (  4.1 MiB unpacked)
Retrieving: konqueror-15.04.1-1.4.x86_64.rpm ......................................[done (597.2 KiB/s)]
Retrieving package marble-doc-15.04.1-1.3.noarch                (27/29),   3.0 MiB (  3.1 MiB unpacked)
Retrieving: marble-doc-15.04.1-1.3.noarch.rpm .....................................[done (616.2 KiB/s)]
Retrieving package flash-player-11.2.202.460-2.51.1.x86_64      (28/29),   7.3 MiB ( 20.9 MiB unpacked)
Retrieving delta: ./x86_64/flash-player-11.2.202.457_11.2.202.460-2.48.1_2.51.1.x86_64.drpm, 307.3 KiB
Retrieving: flash-player-11.2.202.457_11.2.202.460-2.48.1_2.51.1.x86_64.drpm ......[done (307.2 KiB/s)]
Applying delta: ./flash-player-11.2.202.457_11.2.202.460-2.48.1_2.51.1.x86_64.drpm ..............[done]
Retrieving package flash-player-kde4-11.2.202.460-2.51.1.x86_64 (29/29), 155.5 KiB (560.8 KiB unpacked)
Retrieving delta: ./x86_64/flash-player-kde4-11.2.202.457_11.2.202.460-2.48.1_2.51.1.x86_64.drpm, 26.0 KiB
Retrieving: flash-player-kde4-11.2.202.457_11.2.202.460-2.48.1_2.51.1.x86_64.drpm ...............[done]
Applying delta: ./flash-player-kde4-11.2.202.457_11.2.202.460-2.48.1_2.51.1.x86_64.drpm .........[done]
Checking for file conflicts: ....................................................................[done]
( 1/29) Installing: kate-plugins-15.04.1-1.3 ....................................................[done]
( 2/29) Installing: kcalc-15.04.1-1.3 ...........................................................[done]
( 3/29) Installing: kcron-15.04.1-1.3 ...........................................................[done]
( 4/29) Installing: kde-l10n-ar-15.04.1-3.2 .....................................................[done]
( 5/29) Installing: kdeartwork4-wallpapers-15.04.1-1.6 .........................................[error]
Installation of kdeartwork4-wallpapers-15.04.1-1.6 failed:
Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /usr/share/wallpapers/Curls_on_Green/contents/images/1920x1200.jpg: cpio: rename failed - No space left on device
error: kdeartwork4-wallpapers-15.04.1-1.6.noarch: install failed
error: kdeartwork4-wallpapers-15.04.1-1.5.noarch: erase skipped


Abort, retry, ignore? [a/r/i] (a)
Comment 1 Bernhard Wiedemann 2015-05-20 14:00:13 UTC
likely btrfs+snapper-related

try
btrfs filesystem df /

and if you want the cure-all:
for s in /.snapshots/*/snapshot ; do btrfs subvolume delete $s ; done
Comment 3 Bernhard Wiedemann 2015-05-20 20:47:12 UTC
*** Bug 931725 has been marked as a duplicate of this bug. ***
Comment 4 Forgotten User SpTvqxsYZX 2015-05-20 21:08:50 UTC
$ btrfs filesystem df /
Data, single: total=20.01GiB, used=8.48GiB
System, single: total=4.00MiB, used=16.00KiB
Metadata, single: total=1.01GiB, used=320.94MiB
GlobalReserve, single: total=112.00MiB, used=0.00B

the df information seems wrong as well. It says the total for data single is 20GB, when root partition is 30GB.
Comment 5 Forgotten User SpTvqxsYZX 2015-05-20 21:09:44 UTC
That was after I removed all but two of the snapper snapshots.
Comment 6 Arvin Schnell 2015-05-21 08:53:18 UTC
Setting P0 is not allowed for users.
Comment 7 Forgotten User SpTvqxsYZX 2015-05-22 01:05:09 UTC
Only after running btrfs fi balance /mountpoint -dusage=50 after the snapshots command did some of the missing data appear to come back.
Comment 8 Arvin Schnell 2015-06-01 13:28:39 UTC
Btrfs deletes snapshot asynchronously, so after the delete command (both
btrfs and snapper) you still have to wait to get the disk space back (or use btrfs commands that wait for the cleanup to have finished). That might
explain why the disk space appeared after the balance command.

If really a balance command is needed it looks like a kernel problem to me.
Comment 9 Forgotten User eE2c9JI9lH 2015-06-02 11:38:28 UTC
I had the same problem on a production server with opensuse 13.2. I solved it deleting several snapshots, but server was down till I found the problem. I suggest to reduce the number of old snapshots stored by default. 10 snapshots are too much space consuming. Maybe 2 or 3 would be enough.
Comment 10 Matthias Eckermann 2015-06-02 11:46:56 UTC
(In reply to Juan Antonio Solis from comment #9)
> I had the same problem on a production server with opensuse 13.2. I solved
> it deleting several snapshots, but server was down till I found the problem.
> I suggest to reduce the number of old snapshots stored by default. 10
> snapshots are too much space consuming. Maybe 2 or 3 would be enough.

In my experience, keeping 20-30 snapshots is no problem, if your
disk size follows our recommendation (at least 16 GiB for "/"),
and if you are doing regular semi-cummulative updates (i.e. weekly).

I agree though that for Factory or for smaller "/" partitions
the world looks differently.

In addition, I strongly suggest to install the "btrfsmaintenance"
package and tweak it to your needs and environment: that way you
get balancing and scrubbing regularily, and you can really enjoy(!:-)
using btrfs, ... MgE
Comment 11 Forgotten User SpTvqxsYZX 2015-06-02 18:19:52 UTC
>In my experience, keeping 20-30 snapshots is no problem, if your
disk size follows our recommendation (at least 16 GiB for "/"),

/ has over 30GB and my system was basically hosed from only 20 snapshots in a couple of weeks.

>and you can really enjoy(!:-)
using btrfs,

It is hard to enjoy btrfs given how opensuse implements it, with system breaking bugs like this one from a new install. If btrfsmaintenance will get rid of snapshots before they cause the system to stop working from lack of free data, then why wouldn't opensuse people put that in by default?
Comment 12 Forgotten User eE2c9JI9lH 2015-06-02 22:54:47 UTC
First of all, thank you for your answer and suggestions.
My root partition has 40 Gb and the btrfsmaintenance was installed, although I had not done any changes in any configuration tool. I will try to study more about btrfs. It seems it is useful for a server which is maintained and updated in an unattended way through cron. 

But I think this is a very serious bug. If anyone does not tweak and do "regular semi-cummulative updates" (I still have to find out how to do it) on his desktop or laptop computer, will it run out of space in some months?

I have installed opensuse 13.2 on some computers of friends and colleagues of mine, and now I am afraid they will suffer this problem soon. On my own personal computer I did an upgrade from 13.1 and my root partition is still ext4, so I cannot check how btrfs works on a laptop computer with KDE.

Let's keep opensuse as a linux for open minds, not only for geeks ;-)

Thank you for your effort!
Comment 13 Matthias Eckermann 2015-06-03 10:06:35 UTC
While thinking about this and checking on my system (which is
SUSE Linux Enterprise 12, but the difference should be minimal),
I realized that there might be one additional issue on typical
one-user machines (compared to servers): the cleanup process
(/etc/cron.daily/suse.de-snapper) is not started often enough,
thus the limits defined in /etc/snapper/configs/root are not
enforced early enough.

@Arvin: shouldn't we trigger the snapshot cleanup also on an
hourly basis (instead of daily)?
Comment 14 Matthias Eckermann 2015-06-03 10:12:02 UTC
One more question: should we reconsider the default limits for "/" ??

They should be rather low and people may enhance them, if there
is a real need for them.

For example, I have this:

# grep -Ev "^#|^$" /etc/snapper/configs/root
SUBVOLUME="/"
FSTYPE="btrfs"
ALLOW_USERS=""
ALLOW_GROUPS=""
SYNC_ACL="no"
BACKGROUND_COMPARISON="yes"
NUMBER_CLEANUP="yes"
NUMBER_MIN_AGE="1800"
NUMBER_LIMIT="8"
NUMBER_LIMIT_IMPORTANT="8"
TIMELINE_CREATE="no"
TIMELINE_CLEANUP="yes"
TIMELINE_MIN_AGE="1800"
TIMELINE_LIMIT_HOURLY="0"
TIMELINE_LIMIT_DAILY="0"
TIMELINE_LIMIT_MONTHLY="0"
TIMELINE_LIMIT_YEARLY="0"
EMPTY_PRE_POST_CLEANUP="yes"
EMPTY_PRE_POST_MIN_AGE="1800"
Comment 15 Arvin Schnell 2015-06-03 10:30:46 UTC
Instead of downsizing snapper to a state where we can just not install it
any longer we should fix our base tools:

1. 'df' does not work for btrfs.

2. the output of 'btrfs fi df' is incomprehensibly.

3. 'zypper' does not take into account that on btrfs with snapshots
   overwriting files does not give back the disk space of the old file. So it
   should not report "additional 7.9 KiB will be used" when likely several
   hundreds MiB will be used. (AFAIK this was fixed by now.)
Comment 16 Forgotten User SpTvqxsYZX 2015-06-03 19:08:15 UTC
What is snapper cleanup is called after every install/upgrade action, and then if there is less than, say 5GB left on the device, it will start removing old snapshots and then doing the balance/dusage command to free up the space? And make whether or not snapper is installed on the system an option at installation? Along with fixing btrfs show fi and df.
Comment 17 Matthias Eckermann 2015-06-04 07:53:52 UTC
(In reply to ill lume from comment #16)

> What is snapper cleanup is called after every install/upgrade action,

As a default, this seems a bit too heavy to me, but as an option it sounds
useful, indeed. We actually have the framework already, cf.:
        /usr/lib/zypp/plugins/commit/btrfs-defrag-plugin.py
(package "btrfsmaintainance").

> and then if there is less than, say 5GB left on the device, it will start
> removing old snapshots and then doing the balance/dusage command to free up
> the space?

Free-space-based decisions are being worked on; it needs btrfs subvolume
quotas and snapper working together.

> And make whether or not snapper is installed on the system an
> option at installation?

This is already there in SUSE Linux Enterprise 12 and also
openSUSE 13.2 (screenshot attached).
Comment 18 Matthias Eckermann 2015-06-04 07:56:58 UTC
Created attachment 636673 [details]
Screenshot from openSUSE 13.2 installation with the switch to disable snapshotting
Comment 19 Forgotten User eE2c9JI9lH 2015-06-04 10:00:03 UTC
Since my server failure I am discovering all the benefits Snapper has, and it is an amazing tool. I admit that I should have studied it before installing it, but as almost everybody in the IT world, I have much work and not so much time and I had not done it yet. When I did the 13.2 fresh installation and saw that the suggested partition system was btrfs, I thought that if opensuse was suggesting it, it was because it had been thoroughly tested (I would not have thought the same with ubuntu, seriously) and was safe to install, so I accepted the default offered configuration.

If I did this way, probably most standard users that install opensuse in their desktops would do the same and will accept opensuse installator proposals even unknowing what they means and expecting that the default configuration will work fine. I installed opensuse to friends of mine who does not want to know anything about snapshots or anything beyond how to browse Internet, using office, managing photos, etc.

So the system should be able to manage the space automatically and to adapt the number of snapshots stored to the actual space remaining. As Matthias said, maybe a low number of snapshots stored could be enough for desktop computers. And IT people will be able to configure their servers if they need more (IT people who study more than I do, I am afraid)

Or even maybe an opensuse server version and a desktop one? It is the only thing I liked from Ubuntu (I do not know if they still have it).

P.D: Sorry for writing so much, but maybe it is worthy for you to know some users experience.
Comment 20 Takashi Iwai 2015-06-15 12:43:42 UTC
Changed the component, as it's no direct kernel bug.
Comment 21 Chenzi Cao 2015-06-18 08:27:16 UTC
Hi David, I'm not quite sure whether it is right to assign it to you, please feel free to reassign, thank you!
Comment 22 kolA flash 2015-10-24 01:28:56 UTC
I guess the cleanest solution for this would be a possibility, to set a maximum disk-usage.
Think of setting a limit of xxx MB or yyy % of disk-space for snapshots. I guess the technical problem for this would be how to check this limit dynamically.

E.g. someone deletes some large, no longer needed files to free enough space for storing other large files at the same time. So at that moment it has to be realised that old snapshots have to be deleted.

I think this is pretty much the behaviour needed for a usual enduser (who maybe doesn't know anything about snapshots). So such a limit should be set by default (e.g. 10% of disk-space).
An experienced user who's counting on snapshots can always disable this limit and use the already existing ways to limit snapshots and keep an eye on the free space himself.

Btw.
Maybe related/duplicate?
https://bugzilla.opensuse.org/show_bug.cgi?id=930893
Comment 23 Matthias Eckermann 2015-10-24 02:19:09 UTC
(In reply to kolA flash from comment #22)
> I guess the cleanest solution for this would be a possibility, to set a
> maximum disk-usage.
> Think of setting a limit of xxx MB or yyy % of disk-space for snapshots.

Yes,indeed. See my comment#17 above:
this is called "subvolume quota", and it is being worked on.

> I guess the technical problem for this would be how to check this limit
> dynamically.

Well, snapper could just do it, when creating or removing snapshots, ...
Comment 24 kolA flash 2015-10-24 10:59:02 UTC
(In reply to Matthias Eckermann from comment #23)
> (In reply to kolA flash from comment #22)
> > [...]
> > I guess the technical problem for this would be how to check this limit
> > dynamically.
> 
> Well, snapper could just do it, when creating or removing snapshots, ...

But what happens if the user's deleting files? Won't the snapshots implicitly grow at that moment, without snapper being currently active?

I guess that's a problem. And if the users deleting some GB files to free necessary space for other GB files he copies onto disk in the next moment, it won't be enough to check the snapshots hourly.
I don't have a lot experience with quotas, but maybe they are a possible solution for this...
Comment 25 Matthias Eckermann 2015-10-24 12:58:01 UTC
(In reply to kolA flash from comment #24)
> (In reply to Matthias Eckermann from comment #23)
> > (In reply to kolA flash from comment #22)
> > > [...]
> > > I guess the technical problem for this would be how to check this limit
> > > dynamically.
> > 
> > Well, snapper could just do it, when creating or removing snapshots, ...
> 
> But what happens if the user's deleting files? Won't the snapshots
> implicitly grow at that moment, without snapper being currently active?

Well, I would put it this way: when deleting a file which is CoWed
(Copy-on-Write-ed), the total space required in the "pool"
(this is the whole btrfs partition) will not be reduced, because
references to the blocks are still held.

Important: this is only relevant for files which are CoWed (i.e.
either snapshotted or copied as a RefLink). For "normal" files
which are just single, a delete is a delete.

> I guess that's a problem. And if the users deleting some GB files to free
> necessary space for other GB files he copies onto disk in the next moment,
> it won't be enough to check the snapshots hourly.

As said, files which are not CoWed, are not affected, however
if you are discussing a CoWed file, then the space indeed is
not freed, when you delete the file itself, but once you are
calling "snapper rm ..." -- and then we are back in good shape,
because snapper can take control.

Admittedly that's kind of "surprising" behaviour for people who
come from "normal" unix filesystems. But for people having worked
with CoW-filesystems before, it's kind of "business as usual":)

That "surprising" factor is btw. one of the reasons, why for SUSE Linux
Enterprise 12 we have chosen to use xfs as the default for DATA and
btrfs for the OS: Administrators who know the specifics of CoW filesystems
can do a lot with it (snapshotting of data, deduplication, ...), and are
supported, those who don't know yet have a more relaxed life with xfs,
but they can't enjoy the benefits of btrfs either.

I am personally using btrfs for "/" for more than 5 years now, and for
"/home" for about 4 (including snapshots for /home using pam_snapper).

> I don't have a lot experience with quotas, but maybe they are a possible
> solution for this...

Well, proper quota monitoring will definitely help, going forward.
Comment 26 Andreas Stieger 2016-02-18 20:41:44 UTC
*** Bug 967147 has been marked as a duplicate of this bug. ***
Comment 27 Tomáš Chvátal 2018-04-12 14:04:45 UTC
This version of openSUSE changed to end-of-life (EOL [1]) status. As such
it is no longer maintained, which means that it will not receive any
further security or bug fix updates.
As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
openSUSE, or consider the bug still valid, please feel free to reopen this
bug against that version, or open a new ticket.

Thank you for reporting this bug and we are sorry it could not be fixed
during the lifetime of the release.

[1] https://en.opensuse.org/Lifetime
Comment 28 Forgotten User SpTvqxsYZX 2018-04-15 17:36:02 UTC
So just ignore the bug without fixing it and hope it goes away?
Comment 29 Tomáš Chvátal 2018-04-16 08:45:43 UTC
As the comment told you "please feel free to reopen this
bug against that version, or open a new ticket."
Do not keep it opened against EOLed product and just carry on, this is machine parsing so it closed all bugs opened against products we no longer support. Just change version to wherever you reproduce it.