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
2
votes
1 answer

ceph df showing available space which doesn't match ceph partition size

I just noticed a backfillfull osd warning in our ceph cluster and there is something really strange in how ceph osd df is showing available space. If I try to look at ceph' storage partition with df -h # df -h | grep ceph /dev/mapper/cl-var_lib_ceph…
Nicko Glayre
  • 1,315
  • 1
  • 10
  • 22
2
votes
1 answer

df shows double the actual size on FreeBSD when run via cron

I have written a bash script that collects data from a server and sends it to a log file that is being monitored by a splunkforwarder. The server runs FreeBSD and has a ZPool that is shared via Samba. So of course one of the things I'd like splunk…
Felix
  • 23
  • 3
2
votes
3 answers

Use 'df -h' to check % remaining disk space of a specific folder

I am using 'df -h' command to get disk space details in my directory and it gives me response as below : Now I want to be able to do this check automatically through some batch or script - so I am wondering, if I will be able to check disk space…
dynamicJos
  • 129
  • 3
  • 14
2
votes
1 answer

Execute linux command in java and display output to html table

I have jsp code df -h for display disk information on the website. How can I show the output to html with table? Below the code: String[] disk; String line; String process; Process p; BufferedReader input; p = Runtime.getRuntime().exec("df…
hrace009
  • 37
  • 9
2
votes
1 answer

How to use parameter in conf file for disk usage?

I have a disk script like this: #!/bin/bash filesys=( / ) [ -f "$(pwd)/filesys.conf" ] && filesys=($(<$(pwd)/filesys.conf)) date=$(date +"%d\/%m\/%Y") df -P "${filesys[@]}" | sed -ne 's/^.* \([0-9]\+\)% \(.*\)$/'$date', \2, \1%/p' > disk.log I…
onur
  • 5,647
  • 3
  • 23
  • 46
2
votes
0 answers

How to understand docker container disk space usage?

My host disk space usage is like this: # df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/rhel-root 50G 31G 20G 61% / devtmpfs 5.8G 0 5.8G 0% /dev tmpfs 5.8G 84K 5.8G 1%…
Nan Xiao
  • 16,671
  • 18
  • 103
  • 164
2
votes
1 answer

BASH 'df' command showing the same numbers for all directories?

I'm trying to get the disk usage of everything within certain directories, which I've been attempting to do with commands like this: df -h -k /var/www/html/exampledirectory1 df -h -k /var/www/html/exampledirectory2 df -h -k…
Thorium
  • 191
  • 1
  • 14
1
vote
0 answers

Command to get Inodes usage without having to create temporary files first

I used to use this command and it needs to create temporary file first, so it doesn’t work when inodes is full and will throw an error: cannot create temporary file in '/tmp': Disk quota exceeded find . -printf "%h\n" | cut -d/ -f-2 | sort | uniq -c…
1
vote
0 answers

df -ah wrong output - How to correct?

Hello all, I am unsure why my output for /dev/mapper/vg_splat-lv_log is at 84%. I used this formula to calculate (Used/Size)x100. Therefore (270/340)x100 = 79%. Has anyone else experienced this? Can this be fixed? Any help would be much…
1
vote
1 answer

Docker does not see all disks - No space left on device

If i run df -h inside the Dockerfile of an image I want to build, it sees: Filesystem Size Used Avail Use% Mounted on overlay 118G 112G 0 100% / tmpfs 64M 0 64M 0% /dev tmpfs 16G 0 16G 0%…
ALU
  • 353
  • 2
  • 4
  • 18
1
vote
1 answer

If there is any script or command that can check which of the NFS mounts are having problems and which aren't?

I have recently been having problems running df -h, where it just hangs? I tried running dmesg and getting the following snipped output: [163075.079660] nfs: server 10.52.88.225 not responding, timed out [163255.559732] nfs: server 10.52.88.225 not…
Manish Narang
  • 87
  • 1
  • 1
  • 10
1
vote
0 answers

df showing wrong disk usage despite the directory is empty

When I check the size of used space on my disk on a linux centos 7.4 for directory /logs. I get as bellow (33M used) with df but with du I get 0: $ df -h /logs Filesystem Size Used Avail Use% Mounted on /dev/vdb1 …
kawther
  • 184
  • 2
  • 3
  • 16
1
vote
3 answers

List Volumes with DF, Grep, Awk | Bash Shell

Trying to print all entries which start with /Volumes/, this to list mounted volumes on mac. See Updates. IFS=$'\n' read -r -d '' -a volumes < <( df | egrep -o '/Volumes/.*' ) echo "${volumes}" Update 1: This worked, but prints a space before…
Adrian
  • 33
  • 7
1
vote
1 answer

Why is df command showing incorrect size?

I am using a 64 MB QSPI formatted in some UBI partitions. df is an applet of busybox 1.27.2 Actually, ~ # df -h Filesystem Size Used Available Use% Mounted on /dev/ubi0_0 3.1T 1.9T 1.2T 63% / /dev/ubi1_0 …
alain
  • 165
  • 8
1
vote
3 answers

Capture specific value from df -h --total using PHP

How can i populate a variable holding the total value from below content extracted after running df -h --total on centos. Note: the result is not from command line but from a php file. How do i only capture the percentage value in the last line…
Omari Victor Omosa
  • 2,814
  • 2
  • 24
  • 46