Deleting a file is a two stage process. The original user thread unlinks the file from the directory and reduces the link count. If the count is zero and the file is not open, then it gets queued for the background deletion thread. The background thread then deletes the blocks and frees the space. If there is a snapshot, the data blocks may be captured and not actually freed. After a crash, the recovery code looks for files that were being deleted and restarts the deletion if necessary. -Wayne gpfsug-discuss-bounces@spectrumscale.org wrote on 02/18/2020 06:05:41 AM:
From: TURNER Aaron <aaron.turner@ed.ac.uk> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 02/18/2020 06:05 AM Subject: [EXTERNAL] Re: [gpfsug-discuss] Odd behaviour with regards to reported free space Sent by: gpfsug-discuss-bounces@spectrumscale.org
Dear Jonathan,
This is what I had assumed was the case. Since the system ended up with an enforced reboot before we had time for further investigation I wasn't able to confirm this.
I can be very confusing for end users, especially when what is holding onto the file is some random zombie process on another node that died last month.
Yes, that's very likely to have been the case.
Regards
Aaron Turner
-----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss- bounces@spectrumscale.org> On Behalf Of Jonathan Buzzard Sent: 18 February 2020 10:50 To: gpfsug-discuss@spectrumscale.org Subject: Re: [gpfsug-discuss] Odd behaviour with regards to reportedfree space
On Tue, 2020-02-18 at 09:28 +0000, TURNER Aaron wrote:
Dear All,
This has happened more than once with both 4.2.3 and 5.0. The instances may not be related.
In the first instance, usage was high (over 90%) and so users were encouraged to delete files. One user deleted a considerable number of files equal to around 10% of the total storage. Reported usage did not fall. There were not obviously any waiters. Has anyone seen anything similar?
I have seen similar behaviour a number of times.
I my experience it is because a process somewhere has an open file handle on one or more files/directories. So you can delete the file and it goes from a directory listing; it's no long visible when you do ls.
However the file has not actually gone, and will continue to count towards total file system usage, user/group/fileset quota's etc.
Once the errant process is found and killed magically the space becomes free.
I can be very confusing for end users, especially when what is holding onto the file is some random zombie process on another node that died last month.
JAB.
-- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?
u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&d=DwICAg&c=jf_iaSHvJObTbx-
siA1ZOg&r=GtPIT10cORUM6qwFnTVtIiDUFmESkxW3I0wu8GDxmgc&m=QkF9KAzl1dxqONkEkh7ZLNsDYktsFHJCkI2oGi6qyHk&s=_Z-
E_VtMDAiXmR8oSZym4G9OIzxRhcs5rJxMEjxK1RI&e= The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?
u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&d=DwICAg&c=jf_iaSHvJObTbx-
siA1ZOg&r=GtPIT10cORUM6qwFnTVtIiDUFmESkxW3I0wu8GDxmgc&m=QkF9KAzl1dxqONkEkh7ZLNsDYktsFHJCkI2oGi6qyHk&s=_Z-
E_VtMDAiXmR8oSZym4G9OIzxRhcs5rJxMEjxK1RI&e=
