You are viewing limited content. For full access, please sign in.

Question

Question

Empty Space on Hard Drive after file is deleted from Laserfiche

asked on May 4, 2015

A client asked me this question and have never had this asked in 13 years for selling Laserfiche:

When you delete a file in Laserfiche, is the physical space on the hard drive immediately available for utilization for a new file to be written there?

Client says that all document management systems have this issue, that you must defrag the Hard Drive before this empty space (he called it White Space) is usable. 

Thanks, 

Jeff

 

0 0

Replies

replied on May 4, 2015 Show version history

Hi Jeff,

Defragmenting rearranges used and unused space into contiguous blocks but it doesn't free space. In the case of systems like Laserfiche, a request to delete or recycle documents will not be carried out immediately, even though the system reports to the user the file has been deleted.

On a side note, a chkdsk function could free up space by repairing the file system and since some defragmentation software will run a chkdsk (or something similar) to repair potential errors before running the defragmentation algorithm, you may gain space (and it may seem like the defrag freed up space). Running a defrag may improve performance but not on SSDs, in fact it will reduce their life span.

1 0
replied on May 4, 2015 Show version history

The deletion will only take place once it is purged from the recycle bin.  If it remains in the recycle bin, the document is not removed from the hard drive.

0 0
replied on May 4, 2015 Show version history

When you delete a file in Laserfiche, is the physical space on the hard drive immediately available for utilization for a new file to be written there?

The file on the volume isn't deleted immediately, it's done as a background job by the Laserfiche server.  As soon as the file is deleted the space it used to take up is available to store other data.

you must defrag the Hard Drive before this empty space (he called it White Space) is usable

This is not true.  A defragmentation process rearranges the way a disk's storage is used so that the blocks that hold the data for a particular file are brought closer together, and blocks that are not currently allocated to a file are all together.  The main purpose of this is to reduce the amount of seeking that a disk head has to do to read the data of a particular file - it's more efficient to read consecutive blocks than it is to seek around the disk.  Since it's just moving things around, there isn't any more usable space after the process than before.

SSDs work differently from spindle disks and essentially don't seek, which is why you don't defrag them.  Defragging requires low-level access to the disk, so you can't do it on systems like a SAN - at least not the same way you can on an attached hard drive.  If you have one of those, consult the documentation.

0 0
replied on May 5, 2015

Good question. So from what I am reading, when a document is deleted and purged from the recycle bin, then that space is now available on the hard drive. Here is my question. What if it is a fixed size volume that is no longer being used? So lets say volume year 2010. The volume is fixed in size and no longer used because we are now in 2015. If a document gets purged from Laserfiche does that space become available? 

0 0
replied on May 5, 2015

That space is freed on the volume, and in some circumstances it could be used to store another document.  In your case though you probably would not allow users to create documents on an old volume or to migrate them there.

0 0
replied on March 1, 2016

Hello everybody,

 

do you have any specific time delay for the deletion of the physical file from the disk?

I'm running out of space in the server and need to free space. I deleted from the Repository a lot of useless documents (also purged the Recycle bin), but the available space on disk is not immediately reflected. How long it takes?

I need this info to plan the scanning of new files in the same drive.

Thanks and regards,

 

Ignacio PdeA

BMB sal

0 0
replied on June 9, 2017

I'd also like to know a time frame for this and if anything can be done to speed it up. Deleted close to 400 GB's of files and purged them yesterday and still have not recovered any space on the actual hard drive yet. 

0 0
replied on June 10, 2017 Show version history

Check the maintenance schedule in the repository settings (admin console). Once the documents are purged from the repository, the entries and files seem to be flagged then removed later on during the maintenance window.

If you deleted 400GB worth of documents, odds are pretty good that the maintenance window wasn't long enough to delete everything in one round. The default maintenance window when you create a repository is only 1AM to 3AM.

When deleting a large number of documents, I've expanded the maintenance window to "speed up" the process, but letting it run close to business hours has the potential to cause performance issues by consuming a lot of resources (similar "cleanup" will processes also run on the database). 

Otherwise, I would just keep an eye on it over a couple of days to look for big changes in available drive space.

0 0
replied on June 12, 2017

The details of how the delete thread works are explained here and here.

2 0
You are not allowed to follow up in this post.

Sign in to reply to this post.