Filesystem / (root) run ouf of space


 
Thread Tools Search this Thread
Operating Systems Linux Filesystem / (root) run ouf of space
# 1  
Old 03-07-2016
Filesystem / (root) run ouf of space

Good evening, I've got a question, in our production system there is an application called Intermediate which ftp service is the core to to send back and forth from/to diferent destinations

Gradually FS / was ruuning out space and we took a long time to figure out what precesses were eating up this FS /

our SA found a folder called /dcs/data13 taking up 5.4 GB of space located 0n FS / (root)

to checku up /dcs/data13 is not a FS but a folder mounted in FS /,

I've got a couple of questions:

1 why i cant see the path when execute the command df -h
2 why the application let me create /dcs/data13 asuming it was a path? it shoud have yield an error if filesytem /dcs/data13 didnt exist
3 is true if FS / get 100 % full is probably the server shut itself down ?

I appreciate your help in advanved, here is the scrren of FS mounted

Code:
df -h
Filesystem                              Size  Used Avail Use% Mounted on
/dev/sdfm2                              9.9G  8.9G  555M  95% /
tmpfs                                    48G   12K   48G   1% /dev/shm
/dev/sdfm1                              241M   36M  193M  16% /boot
/dev/mapper/vg_promeddb01-lv_home       8.9G  7.1G  1.4G  84% /home
/dev/mapper/vg_promeddb01-lv_opt        5.0G  1.2G  3.6G  25% /opt/dcs
/dev/mapper/vg_promeddb01-lv_opt_dcs    9.9G  6.5G  2.9G  70% /opt/dcs_7.0
/dev/mapper/vg_promeddb01-lv_tmp         20G   14G  5.7G  70% /tmp
/dev/mapper/vg_promeddb01-lv_usr        5.0G  1.9G  2.9G  40% /usr
/dev/mapper/vg_promeddb01-lv_var        6.0G  2.0G  3.7G  36% /var
/dev/mapper/vg_promeddb01-lv_var_dcs    9.9G  291M  9.1G   4% /var/dcs_7.0
/dev/mapper/vg_promeddb01-lv_usr_openv  9.9G  6.7G  2.8G  72% /usr/openv
tmpfs                                   4.0K     0  4.0K   0% /dev/vx
/dev/vx/dsk/vgreport/report              20G  7.4G   13G  38% /reportes
/dev/vx/dsk/data05_dg/data05_vol       1000G  734G  250G  75% /dcs/data05
/dev/vx/dsk/data04_dg/data04_vol        999G  767G  219G  78% /dcs/data04
/dev/vx/dsk/appl01_dg/appl01_vol        499G  265G  220G  55% /dcs/appl01
/dev/vx/dsk/data03_dg/data03_vol       1000G  832G  159G  84% /dcs/data03
/dev/vx/dsk/data01_dg/data01_vol       1000G  764G  222G  78% 
/dev/vx/dsk/data10_dg/data10_vol       1000G  772G  215G  79% /dcs/data10


Last edited by jim mcnamara; 03-08-2016 at 12:10 AM..
# 2  
Old 03-08-2016
du shows paths

Code:
 find / -type d | xargs du | sort -n | tail -20

This will run a while, but will show you a path for each directory, it chops off the list with the 20 largest directories. By largest I mean how much space the directory uses, this includes subdirectories. So with one subdirectory using lots of space each of the parent directories of the biggie will also show up in the list. Hence look for more than just one, I guessed 20, so one of them will likely be the bad guy directory itself.

If you are having problems with processes silently using space, consider implementing quotas on file systems you need to protect. Also, consider NOT having "ordinary applications" access to writable directories on the / FS. Put the directories somewhere else.

Last edited by jim mcnamara; 03-08-2016 at 12:23 AM..
# 3  
Old 03-08-2016
You must restrict find to the file system
Code:
find / -xdev ...

Or restrict du
Code:
cd /
du -kx

---------- Post updated at 08:23 AM ---------- Previous update was at 08:14 AM ----------

A folder mounted on /dcs/data13 is another file system.
The df shows all currently mounted file systems. I suspect that /dcs/data13 is not permanently mounted via fstab, but on-demand via automounter.
# 4  
Old 03-11-2016
Thanks a lot for your help but i face this error with this FS.

Code:
find /dcs/data08 -type d | xargs du | sort -n | tail -10

This is the error:
xargs: xargs.c:450: main: Assertion `bc_ctl.arg_max <= (131072-2048)' failed.

this is the OS
Code:
uname -a
Linux promedcon02 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 10 22:19:54 EST 2013 x86_64 GNU/Linux]

Thanks for your help in advanced

Last edited by vbe; 03-11-2016 at 06:16 PM.. Reason: the code tag was missing,as /code was there I think you wrote in the tag...
# 5  
Old 03-11-2016
1 - df will show up only mounted FS...

2 -
Quote:
why the application let me create /dcs/data13 asuming it was a path? it shoud have yield an error if filesytem /dcs/data13 didnt exist
Why??? If it were a file system /dcs/data13 would be a mount point no? So it needs to exist for the FS can be mounted, yet if the FS is not mounted then its just a directory and what is stopping you to write in it?...
# 6  
Old 03-12-2016
Good morning, this command works in hp-ux but in linux do not work:

[find /dcs/data08 -type d | xargs du | sort -n | tail -10][/CODE]

This is the error:
xargs: xargs.c:450: main: Assertion `bc_ctl.arg_max <= (131072-2048)' failed.

dont kno w if is the version or there is anothe optioin replacing xargs ?

Thanks in advanced
# 7  
Old 03-12-2016
I think but do not know for sure: you exceeded some limit, likely the number of arguments
- in other words du is finding zillions of files. du -s gives a summary
This will work in that case:
Code:
find /dcs/data08 | -type d |
while read dname
do
  du -s $dname
done | sort -n

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Linux

root filesystem goes readonly

I see this when tried to create a dir using root fstab entries are pretty normal tried to remount with rw but it is still the same block device /dev/sda2 is write-protected ---------- Post updated at 04:57 PM ---------- Previous update was at 03:51 PM ---------- fstab entry ... (4 Replies)
Discussion started by: robo
4 Replies

2. Solaris

Resizing the Root Filesystem

Is it possible to increase the root filesystem size without reboot ?? (4 Replies)
Discussion started by: gowthamakanthan
4 Replies

3. Shell Programming and Scripting

Calculate total space, total used space and total free space in filesystem names matching keyword

Good afternoon! Im new at scripting and Im trying to write a script to calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies

4. UNIX for Dummies Questions & Answers

Root filesystem filling up!

Hi all. New to the forum and new to Unix admin... / filesystem filled up and I can't find where the large files are. Any help will be apppreciated: # df -k Filesystem kbytes used avail capacity Mounted on /dev/dsk/c1t0d0s0 8063580 7941745 41200 100% / /proc ... (4 Replies)
Discussion started by: jamie_collins
4 Replies

5. UNIX for Dummies Questions & Answers

How to allow access to some commands having root privleges to be run bu non root user

hi i am new to unix and i have abig task. i have to \run particular commands having root privileges from a non root user. i know sudo is one of the way but i need sum other approach kindly help Thanks (5 Replies)
Discussion started by: suryashikha
5 Replies

6. Solaris

Root Filesystem

Hi, Can we install root file system on other than 0th slice???? (5 Replies)
Discussion started by: tirupathiraju_t
5 Replies

7. UNIX for Advanced & Expert Users

Mounted Root Filesystem

In my Solaris 10 based server, I have noticed the following mounts when a use DF -K /dev/dsk/c0t0d0s0 5062414 3213876 1797914 65% / / 5062414 3213876 1797914 65% /net/se420 I understand the first mount because it appears in my vfstab file and is the mount of root that I would expect.... (1 Reply)
Discussion started by: jimthompson
1 Replies

8. Filesystems, Disks and Memory

RUN OUT SPACE (Root)

Dear Buddies, Plz Help me out ,,,,,, the Unix Servers i m working on ,,,Somes times run out of space in root ,,,due the generation of a file named STA ....which causes the system to crash ,,,,, plz hlp me !!!!!!!!!!!!!!!!!!!!!! how to find out the file ....generation causes ...... ... (6 Replies)
Discussion started by: scorpiyanz
6 Replies

9. UNIX for Dummies Questions & Answers

Run non-root script as root with non-root environment

All, I want to run a non-root script as the root user with non-root environment variables with crontab. The non-root user would have environment variables for database access such as Oracle or Sybase. The root user does not have the Oracle or Sybase enviroment variables. I thought you could do... (2 Replies)
Discussion started by: bubba112557
2 Replies
Login or Register to Ask a Question