- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Removed a file and space not returned. Never seen ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2005 05:19 PM
11-02-2005 05:19 PM
How come the space didn't come back? What?
Before
/dev/vg02/psindx01 24576000 24154006 408808 98% /u02
-rw-rw---- 1 oinstall 10066337792 Nov 2 15:37 /u02/oradata/prd88/psindex.dbf
-rw-rw---- 1 oinstall 629153792 Nov 2 15:44 /u02/oradata/prd88/psindex1.dbf
-rw-rw---- 1 oinstall 686825472 Nov 2 15:44 /u02/oradata/prd88/psindex2.dbf
-rw-rw---- 1 oinstall 734011392 Nov 2 14:32 /u02/oradata/prd88/psindex5.dbf
-rw-rw---- 1 oinstall 896540672 Nov 2 15:46 /u02/oradata/prd88/psindex3.dbf
-rw-rw---- 1 oinstall 943726592 Nov 2 15:37 /u02/oradata/prd88/psindex4.dbf
After
/dev/vg02/psindx01 24576000 24154006 408808 98% /u02
-rw-rw---- 1 oinstall 629153792 Nov 2 15:44 /u02/oradata/prd88/psindex1.dbf
-rw-rw---- 1 oinstall 686825472 Nov 2 15:44 /u02/oradata/prd88/psindex2.dbf
-rw-rw---- 1 oinstall 734011392 Nov 2 14:32 /u02/oradata/prd88/psindex5.dbf
-rw-rw---- 1 oinstall 896540672 Nov 2 15:46 /u02/oradata/prd88/psindex3.dbf
-rw-rw---- 1 oinstall 943726592 Nov 2 15:37 /u02/oradata/prd88/psindex4.dbf
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2005 05:27 PM
11-02-2005 05:27 PM
Re: Removed a file and space not returned. Never seen this before.
-Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2005 05:28 PM
11-02-2005 05:28 PM
Re: Removed a file and space not returned. Never seen this before.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2005 05:34 PM
11-02-2005 05:34 PM
Re: Removed a file and space not returned. Never seen this before.
The index was dropped at the Oracle level and the file was removed at the OS level. The space remained. I've done this before and never had to bounce Oracle.
nmhhrprd(/)# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 143360 98004 42652 70% /
/dev/vg00/lvol1 251285 35897 190259 16% /stand
/dev/vg00/lvol8 1024000 577091 424729 58% /var
/dev/vg00/lvol7 1433600 1233234 189229 87% /usr
/dev/vg00/lvol4 65536 4741 57377 8% /tmp
/dev/vg00/lvol6 5632000 5451614 169120 97% /opt
/dev/vg00/lvol5 20480 1275 18065 7% /home
nmhptprd.nmh.org:/hrarch
4096000 2720 3837520 0% /hrarch
/dev/vg06/pstemp01 6144000 4559410 1485558 75% /u06
/dev/vg04/psredo01 6144000 2053362 3835040 35% /u04
/dev/vg03/pssys01 9216000 7266747 1827554 80% /u03
/dev/vg02/psindx01 24576000 24154006 408808 98% /u02
/dev/vg01/psdata01 28672000 26509860 2128392 93% /u01
/dev/vg06/psstage 18432000 10810170 7383818 59% /stage
/dev/vg07/psarch01 12288000 3566662 8448894 30% /u07
/dev/vg07/pshome 5120000 4611048 497050 90% /home1
/dev/vg03/wstage 12288000 4842733 6979989 41% /wstage
/dev/vg02/psredo03 4096000 1232441 2684591 31% /u99
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2005 05:46 PM
11-02-2005 05:46 PM
Re: Removed a file and space not returned. Never seen this before.
I have seen this behaviour where the data deleted take some time to reflect in free space with FC array. But the data in the case was around 1 TB and took around 5-6 minutes to reflect.
Another option is that the oracle process might be using the file and will not release it untill restarted.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2005 05:47 PM
11-02-2005 05:47 PM
Re: Removed a file and space not returned. Never seen this before.
lsof +aL1 /mount_point
Not the file that has link count less than 1.You will have to stop the process that was using it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2005 05:50 PM
11-02-2005 05:50 PM
SolutionHowever the OS cannot delete a file that is in use by a process so the underlying inode for the file still exists and is still holding the disk blocks used by the inode.
The only way to reclaim the space is for the process that has the inode open to be stopped. In this case it looks like an Oracle process of some description might have the file/inode open.
The quickest/easiest way to reclaim the space is to reboot but that's not always the easiest thing to arrange.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2005 07:52 PM
11-02-2005 07:52 PM
Re: Removed a file and space not returned. Never seen this before.
Look at the last 2 posts from RAV and jorgensen.
You have removed i file that is used by a program. Restart the program and you have your space back.
grtz. mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2005 11:56 PM
11-02-2005 11:56 PM
Re: Removed a file and space not returned. Never seen this before.
In addition to lsof, uli can also be used. Look for it attached to Bruno's post on
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=42677
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2005 02:08 AM
11-03-2005 02:08 AM
Re: Removed a file and space not returned. Never seen this before.
You definitely should have asked your Database Administrator to "drop" the file first before you removed it.
Or maybe you just removed something you should not be removing?
If the Oracle is still running, it is not yet too late: if your DBA would not have wanted you to remove that file, he/she can still fix the situation. The Oracle is hanging on to the file, so the OS does not actually remove the file just yet.
If the Oracle database is stopped now, the index file will really be gone. If there were active database indexes in that file, your DBA might not like you. You may have just slowed his/her database to a crawl by breaking the database indexes. :-(
The DBA can re-create the indexes, but the re-creation will take some time and processing power.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2005 02:13 AM
11-03-2005 02:13 AM
Re: Removed a file and space not returned. Never seen this before.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2005 02:39 AM
11-03-2005 02:39 AM
Re: Removed a file and space not returned. Never seen this before.
To add to Clay's comments, the concept of creating and immediately unlinking a file is actually common. You have the benefit of the file with "automatic" removal whenever (or however) the program terminates without adding epilog code.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2005 02:52 AM
11-03-2005 02:52 AM
Re: Removed a file and space not returned. Never seen this before.
Many of you stated the same thing - that stopping Oracle would release the space - but added some additional info and commands that will be helpful in the future.
I come away from this with a solution and increased knowledge.
Thanks again.