LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-29-2010, 08:29 AM   #1
austinbravo
LQ Newbie
 
Registered: Jul 2008
Posts: 23

Rep: Reputation: 0
How to find and decrease File System space for Linux RAC servers


Hi,

We have recently built some RAC (OS:RHEL55) servers and after the Oracle guys have installed their application, somehow the directory / is using the maximum space. I contacted the Oracle team & they say that their RAC installation doesn't create any files in the / directory.

This is the o/p of '/' directory file system:

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/datavg-vol2 498M 382M 62M 88% /

Also, when I checked the file sizes, I found that the following files were taking more space:

/etc/selinux/targeted/modules/active/

-rw------ 1 root root 17M Nov1 base.linked
-rw------ 1 root root 17M Nov1 base.pp

The same above files are present in the directory:

/etc/selinux/targeted/modules/previous/

-rw------ 1 root root 17M Nov1 base.linked
-rw------ 1 root root 17M Nov1 base.pp

I don't know what these files are doing there, when I did a cat and cheked, I found the files containing this data:
nf_tre--
stem_dbusd_var_run_t...and some stuff like this

Unable to decide whether or not to remove these files.

Also, is there any way to find out what files are taking more space and whether they can be deleted or not? in order to free up some space in the / direcoty.

As there are 10 RACs that we've build, I got to do something to fix this for all of the 10 servers.

Any suggestions please!!

Thank you in advance.
 
Old 12-29-2010, 10:20 AM   #2
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

I've never seen such files created during Oracle RAC Installation. All Files created during Installation of Oracle software belongs to the specific user created as owner for the Oracle software and not to root.

The files seems to belong to selinux. Did you try
Code:
rpm  -qf filename
to check which pakets the files are part of.

Last edited by mesiol; 12-29-2010 at 10:21 AM.
 
Old 12-29-2010, 10:50 AM   #3
austinbravo
LQ Newbie
 
Registered: Jul 2008
Posts: 23

Original Poster
Rep: Reputation: 0
Hi,
Thanks for the response, I cheked whther the files are owned by any packages, but they are not! So, not geeting a cluse of why they are there..would you tell me a command to check all the files that exceed certain size for a specific file sytem (say I want to check what files in /etc/cmt are taking size beyond 5mb)

Thanks again
 
Old 12-29-2010, 11:00 AM   #4
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

1.To find files over a certain size, use "find"
Code:
EXAMPLE:
find -name "*" -size +1000k
2. Remember: Oracle isn't necessarily creating files in the "/" directory, but it is probably creating these files in the "root" filesystem. Perhaps the Oracle team was confused about your question?

You control which directories get mounted in which filesystems.

And you can also control SELinux behavior.

SUGGESTIONS:
1. Run "find" (or "du -s" and "ls -l") to identify the specific files in question, and exactly where they live.

2. Ask Oracle again about these specific files/filepaths, and what you can do about them.

Last edited by paulsm4; 12-29-2010 at 01:24 PM.
 
Old 12-29-2010, 01:08 PM   #5
austinbravo
LQ Newbie
 
Registered: Jul 2008
Posts: 23

Original Poster
Rep: Reputation: 0
That was very awesome. This is what I looking for. I would try and follow this so that I can get more information on what's happening. Would keep things posted.

Thank you again for the information
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
commands to find type,mountPoint, file system id for the filesystems in a linux suryashikha Linux - Newbie 4 01-13-2010 06:15 PM
c++ - how to find first file in directory in linux system babag Programming 4 05-23-2008 11:16 PM
file system encryption on servers Synesthesia Linux - Security 2 06-05-2006 04:03 PM
Large tar file taking huge disk space in ext3 file system pcwulf Linux - General 2 10-20-2003 07:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration