Questions tagged [linux-disk-free]

NOT FOR USE WITH DATAFRAMES. Use [dataframe] for such questions. df (abbreviation for disk free) is a Unix and Linux command. The df command reports the amount of available disk space being used by file systems.

df (abbreviation for disk free) is a Unix and Linux command. The df command reports the amount of available disk space being used by file systems.

Manpage for df.

85 questions
1
vote
1 answer

OpenEdge 10.2A - prodict/load_df.p - Load New Objects Online, Ignoring Errors, Gives Warning

I'm trying to load new objects using load_df.p and I do NOT want to see any messages. But even if I give "ignore any errors and commit the loading of the .df" parameter as yes it gives a warning. RUN prodict/load_df.p ("c:\temp\delta.df,yes,NEW…
aza
  • 115
  • 13
1
vote
1 answer

Partition's size in df -h is totally different than the size in /proc/partitions

I'm using buildroot to build a custom linux system for my raspi A+. Using genimage, I've created two partitions on a 1 GB sdcard. The first partion is the boot partition. It's vfat and it is 32 MB. The second partition is ext4, it is the rootfs and…
slaadvak
  • 4,611
  • 1
  • 24
  • 34
1
vote
1 answer

How to explain the fact that "du -sh /" result on root folder is less than "df -h" result ? And how to fix the gap?

I have few docker containers. I'm facing storage issues. When I do the following command the host (NOT in a docker container)in order to measure the size of all file du -sh / I can see that the total size is 50% of total storage. And when I do…
Youssouf Maiga
  • 6,701
  • 7
  • 26
  • 42
1
vote
1 answer

collectd's df plugin reporting wrong free space in /home

I'm using Librato's collectd, version 5.5, in machines running Ubuntu 16.04 to collect usage metrics. However, in one of my clusters, I cannot make df plugin report all space available for / and /home. As you can see, these mount points are in…
Matheus Portela
  • 2,420
  • 1
  • 21
  • 32
1
vote
2 answers

Spark/Scala: Impossible to make an RDD to DF conversion

I am a new programmer of scala(2.11) and spark (1.6.0) who is trying to convert an RDD to a DF without spark-csv package (for practicing but also because of some technical issues). After reading the starter guide of Spark and all the related posts…
Meltrenis
  • 11
  • 3
1
vote
2 answers

Linux server does not display disk usage correctly

The issue that I have is that df -h displays certain usage on a CentOS-based server, however du does not detect as much disk usage. In this particular case, I have: [root@localhost /]# df -h Filesystem Size Used Avail Use% Mounted…
1
vote
1 answer

PHP Disk Used Space - Dependency

I'm using php to try and work out the total, available & used space on a disk. This is the code I'm running : $total = (disk_total_space("/")/1024); $available = (disk_free_space("/")/1024); $used = ($total - $available); echo "$total\n\n"; echo…
JeffVader
  • 702
  • 2
  • 17
  • 33
1
vote
2 answers

df and du are reporting different amounts of filesystem used

I have a centos system that is reporting more disk usage using df than it is using du. I've read that this can happen when a file handle has not been closed. However, I've restarted the system multiple times and lsof does not reveal any stranded…
Kylos
  • 1,888
  • 14
  • 24
0
votes
1 answer

How to find the sum of df total capacity in bash cell

I wrote a script to calculate the sum of the df total capacity in Linux' Bash shell. Is there a way to calculate it without creating a file? #!/bin/bash if [ -f /tmp/df_test.txt ] then rm tmp/df_test.txt echo "Remove files." else …
김태웅
  • 15
  • 2
0
votes
1 answer

df -h giving fake data?

when i'm writing df -h in my instance i'm getting this data: Filesystem Size Used Avail Use% Mounted on devtmpfs 7.7G 0 7.7G 0% /dev tmpfs 7.7G 0 7.7G 0% /dev/shm tmpfs 7.7G 408K 7.7G 1% /run tmpfs …
Bernana
  • 245
  • 1
  • 12
0
votes
1 answer

Understanding df output inside GKE container

I’m trying out ephemeral storage for the first time. I have a node with a single 375G local SSD disk (GKE), and a 100G standard boot disk. For the ephemeral storage, I use emptyDir, mount the volume at /workdir, and set my request/limit at 20G. …
0
votes
1 answer

Cut command in AIX

We would like to automate the disk cleanup process by using a shell script on an AIX 7. We need to write a shell script to clean disk according to disk percentage Sample output of df -Pg user:host:/:>df -Pg Filesystem GB blocks Used…
caggri
  • 5
  • 5
0
votes
0 answers

find name of nfs server with python

I'm hoping to figure out a way to do find the name of the nfs server a particular file/directory is coming from within python, not using an external command. Here's what I have so far which seems too brittle. First, the shell command by itself: $…
keithpjolley
  • 2,089
  • 1
  • 17
  • 20
0
votes
1 answer

Why is my ceph cluster value(964G) of raw used in global secion far higher than that(244G) of used in pools sectio

Why is my ceph cluster value(964G) of raw used in global section far higher than that(244G) of used in pools section [en@ceph01 ~]$ sudo ceph df GLOBAL: SIZE AVAIL RAW USED %RAW USED 6.00TiB 5.06TiB 964GiB …
0
votes
1 answer

how to get hdd's free space

I want to get free hdd's size in a remote system with ssh. I found this ways: 1-do it via command line: hdd's totalsize - sum of partitions size on that hdd + sum of free spaces on all partitions on that hdd; There are some problems with this way.…
fa7eme
  • 73
  • 10