If the root is under btrfs, then the output of 'df' is misleading as the space 
could be tied up by snapshots.  Below are commands that I used last week to 
find and free space in a root filesystem.

Command to list info about snapshots:
snapper -c root list

Command to delete a snapshot:
snapper -c root delete 2

Command to list space in a btrfs filesystem:
btrfs fi df .

Commands to list info about a single filesystem:
btrfs fi show /

Commands to display info about all btrfs filesystems:
btrfs fi show

Command to move data out of block (i.e. defrag):
btrfs balance start -dusage=50 /
Note: dusage is a percentage.  Start at 5 and increase by 5 until data gets 
moved.

Command to balance the metadata area of a btrfs filesystem (/ is for root):
btrfs balance start -m /

Command to balance the data area of a btrfs filesystem (/ is for root):
btrfs balance start -d /


I hope this helps.


Harley Linker Jr.
Sr. Systems Programmer
Ensono
e: harley.lin...@ensono.com
o: 630.944.5111

www.ensono.com

-----Original Message-----
From: Linux on 390 Port <LINUX-390@VM.MARIST.EDU> On Behalf Of Neale Ferguson
Sent: Monday, October 22, 2018 4:16 AM
To: LINUX-390@VM.MARIST.EDU
Subject: Problem running zypper upgrade

I probably don’t understand BTRFS enough to work this out, but running zipper 
upgrade fails with a no space left condition but according to df I have heaps 
of free space:


( 82/245) Installing: kernel-source-4.4.156-94.61.1.noarch 
..........................................................[error]

Installation of kernel-source-4.4.156-94.61.1.noarch failed:

Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed 
on file 
/usr/src/linux-4.4.156-94.61/Documentation/devicetree/bindings/mfd/atmel-gpbr.txt:
 cpio: rename failed - No space left on device

error: kernel-source-4.4.156-94.61.1.noarch: install failed



Abort, retry, ignore? [a/r/i] (a): A

Problem occurred during or after installation or removal of packages:

Installation aborted by user

Please see the above error message for a hint.

lneale4:~ # df -h /usr/src

Filesystem      Size  Used Avail Use% Mounted on

/dev/dasdb2      52G   23G   30G  44% /

What am I missing?

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send email to 
lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.marist.edu%2Fhtbin%2Fwlvindex%3FLINUX-390&amp;data=02%7C01%7Charley.linker%40ENSONO.COM%7C1ebaae2be79644d0728808d637ff9ea8%7Cd483ed84f7bf4078a58ffb250feccf8f%7C0%7C0%7C636757968359360480&amp;sdata=5EubMTXCPlnjrH2KCBK2WeaP6kD5W0fyna2UhI4rShU%3D&amp;reserved=0
----------------------------------------------------------------------
For more information on Linux on System z, visit
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.linuxvm.org%2F&amp;data=02%7C01%7Charley.linker%40ENSONO.COM%7C1ebaae2be79644d0728808d637ff9ea8%7Cd483ed84f7bf4078a58ffb250feccf8f%7C0%7C0%7C636757968359360480&amp;sdata=yVjP%2Fk1EUUuxKar7IVIu5HpSak54RfIx2vT60IHjdUE%3D&amp;reserved=0
© 2018 Ensono, LP. All rights reserved. Ensono is a trademark of Ensono, LP. 
The information contained in this communication is confidential, is intended 
only for the use of the recipient named above, and may be legally privileged. 
If the reader of this message is not the intended recipient, you are hereby 
notified that any dissemination, distribution or copying of this communication 
is strictly prohibited. If you have received this communication in error, 
please resend this communication to the sender and delete the original message 
or any copy of it from your computer system.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to