Solution to unreleased disk space after linux Files are deleted

Source: Internet
Author: User

Today, an ORACLE tablespace file is deleted, indicating that it is deleted from ORACLE according to the standard, but the physical file is sent to rm-rf,

The result shows that the directory size is reduced, but when you look at the partition information, the space still occupies so much space.

Later, I checked the solution on the Internet as follows:

Execute the command: lsof | grep the file name of the operating system you want to delete

The following information is displayed:

Oracle 12713 oracle 12u REG 22260228096, 1 19234817/data/oracle/.../pcds01.dbf (deleted)
Oracle 14899 oracle 22uW REG 253,1 22260228096 19234817/data/oracle/.../pcds01.dbf (deleted)
Oracle 14901 oracle 25u REG 253,1 22260228096 19234817/data/oracle/.../pcds01.dbf (deleted)
Oracle 14903 oracle 23u REG 253,1 22260228096 19234817/data/oracle/.../pcds01.dbf (deleted)
Oracle 14905 oracle 19u REG 22260228096, 1 19234817/data/oracle/.../pcds01.dbf (deleted)


The operating system is cleaning up the deletion,

Kill all (delete) States. Note that some processes of the oracle database should not be kill, and the space will be released after three minutes. use of the attached lsof command:


Actually, we only need to use ps ax | grep 12713

Check all processes and find

[Root @ beta1 beta1] # ps ax | grep 14899
14899? Ss 4: 55 ora_dbw0_pcds
16392 pts/6 S + grep 14899

In this case, the process then: kill-9 14899


Run df-h to check whether the space is released,


If ps ax | grep lists:

12713? Ss 0: 55 oraclepcds (DESCRIPTION = (LOCAL = YES) (ADDRESS = (PROTOCOL = beq )))

It cannot be deleted. This is an ORACLE process.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.