0

All,

I need to get the list of mount points that reached 100% of allocated disk space.

I did the following to get the mount point details in my server and its works fine by giving the details of all mount points.

df -k

But when I need to list down the mount points reached 100% disk allocation, i am stuck.

Please advise.

Sabari Ram
  • 69
  • 2
  • 3
  • 11

1 Answers1

2

What about this?:

df -h | grep "100%" | awk '{ print $5 }'

rubenafo
  • 509
  • 1
  • 7
  • 23
  • got the following error` df: illegal option -- h usage : df [-F FStype] [-V] [-egiklnvsfb] [-t|-P] [-o specific_options] [special | directory ...] ` – Sabari Ram Apr 29 '14 at 07:25
  • `df -k | sort -n -k4` will give you a sorted list with highest % used mount-points at the bottom, which might also help. – mjsqu Apr 29 '14 at 08:31
  • You need to tell us what operating system you are using and post some sample `df -k` output. – Brad Lanam Apr 29 '14 at 14:44
  • All, I just achieved it by using following command: `df -P | grep "100%"` which is derived from @figurebelow 's answer. Thanks all for your valuable suggestion and answers. – Sabari Ram May 05 '14 at 02:54