LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 11-19-2012, 10:46 PM   #1
zeljko60
LQ Newbie
 
Registered: Nov 2011
Posts: 6

Rep: Reputation: Disabled
Red Hat Enterprise Linux Server release 5.5 (Tikanga) EXT3 files


Hi

Trying to delete Oracle Database files 4.3 terrabytes worth, there is few hundred files most are around 12gb in size, and its taking a very long time , is there a logical reason for it and is there a quicker method? then rm -f *
 
Old 11-20-2012, 03:46 PM   #2
tekhead2
Member
 
Registered: Apr 2004
Distribution: slackware/FreeBSD/Vector
Posts: 291

Rep: Reputation: 52
Is this on a RAID volume? Did you mount the directory as a separate partition or is it mounted at the root of /? Are you certain that Oracle isn't trying to lock these files in anyway? They sound like huge files, which can take a long time to delete especially on a journaling file system. So if your removing a large set of large files on a striped RAID volume on a journaling files system, then yes it can take a very long time..
 
Old 11-20-2012, 03:53 PM   #3
zeljko60
LQ Newbie
 
Registered: Nov 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
There were no Oralce users on the system, and the disks are mirrored from the hardware level 0+1 or Raid 5, not 100% , it took about 5.5 hours to delete 4.3 terrabytes , is that normal ?
 
Old 11-20-2012, 03:54 PM   #4
zeljko60
LQ Newbie
 
Registered: Nov 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Ah yes forgot to mention it's not mounted on / it has it's own mount point.
 
Old 11-20-2012, 04:04 PM   #5
tekhead2
Member
 
Registered: Apr 2004
Distribution: slackware/FreeBSD/Vector
Posts: 291

Rep: Reputation: 52
Well its hard to determine that without a lot more details. The slowness your experiencing could be caused by several things. You have to take into consideration your RAID controller as well as your disk speed. It could take that long considering how large the files are. Personally I've never blanket deleted that large of a data set before, but from experience doing anything large on a RAID array seems to take forever.
 
Old 11-20-2012, 04:18 PM   #6
zeljko60
LQ Newbie
 
Registered: Nov 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Ok thanks for you reply, learning a bit more, I'm used to OPEN VMS, where it would delete that in a matter of minutes .Diffrent OS and diffrent results.I'm trying to find more about ext3 disks and what actually occurs when it deletes.
 
Old 11-20-2012, 04:29 PM   #7
tekhead2
Member
 
Registered: Apr 2004
Distribution: slackware/FreeBSD/Vector
Posts: 291

Rep: Reputation: 52
I found a good explanation from Ubuntu on the different limitations of Linux file systems, it explains in detail what happens when you delete a file from a Linux system

https://help.ubuntu.com/community/Li...stemsExplained
 
Old 11-20-2012, 04:42 PM   #8
zeljko60
LQ Newbie
 
Registered: Nov 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
tekhead2

Thanks I will check it out, hopefully it will give me a better understanding .
 
Old 12-03-2012, 09:31 AM   #9
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 2,239

Rep: Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577
One issue is updating all the free block lists... the larger the file, the longer it takes.
Another happens with lots of small files (you don't have this)... directory rebuilds take longer

IF you happen to be deleting all files on a filesystem... it is actually faster to dismount and do a mkfs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Red Hat Enterprise Linux Server release 5.7 (Tikanga) sheelnidhipandey Linux - Server 8 11-08-2012 05:22 PM
Installing openoffice 3.4 on red hat enterprise linux 5 (tikanga)server bumshotz Linux - Software 3 06-22-2012 08:30 AM
Red Hat Enterprise Linux Server release 5.5 (Tikanga) - swap dhranraj.chilla Linux - Software 7 08-23-2011 07:30 AM
[SOLVED] want to download vsftpd for Red Hat Enterprise Linux Server release 5.1 (Tikanga) rupea Linux - Newbie 5 06-08-2011 09:23 AM
Red Hat Enterprise Linux Server release 5.3 (Tikanga) htb.support Linux - Newbie 3 08-25-2010 02:05 PM


All times are GMT -5. The time now is 07:30 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration