In the next three months, I will more than likely start looking into writing a script of some kind to interact with .dir-control so that I will be able to update the hashed directories to recognize spots that can be filled in previous directories. Do you think this is a feasible goal (at this point I haven't looked into how the .dir-control file works since it will be a later project for me). I don't like the solution of deleting the file and restarting over completely from scratch nor do I like the idea that after a while I will more than likely have a lot of empty directories (or directories with only a couple domains in it).
James On Mon, 14 Feb 2005 16:26:45 -0600, Ken Jones <[EMAIL PROTECTED]> wrote: > On Monday 14 February 2005 4:15 pm, Charles J. Boening wrote: > > Right. But if you remove the .dir-control file and already have an > > existing structure, are the routines smart enough to reuse the space and > > skip where the directories are "full"? Or does it just start from > > scratch in which you would reuse the directories but it would be > > additive to existing structure. So if you have 100 users in the "c" > > directory it would add 100 more. > > The second. Starts over again from scratch. > > > > > > > Charles > > > > > > > > > > > > -----Original Message----- > > From: Ken Jones [mailto:[EMAIL PROTECTED] > > Sent: Monday, February 14, 2005 11:42 AM > > To: vchkpw@inter7.com > > Subject: Re: [vchkpw] hashing directories > > > > On Monday 14 February 2005 1:16 pm, Charles J. Boening wrote: > > > If it sees an exiting one will it skip it? > > > > If it sees an existing .dir_control file then it will use the > > information contained therein. Meaning the directories will continue to > > be in the sub directorys. > > > > If you remove the .dir_control file it will automatically create a > > .dir_control file with the initial values. meaning no subdirectories > > yet. > > > > Ken Jones > > > > > -----Original Message----- > > > From: Ken Jones [mailto:[EMAIL PROTECTED] > > > Sent: Monday, February 14, 2005 7:36 AM > > > To: vchkpw@inter7.com > > > Subject: Re: [vchkpw] hashing directories > > > > > > On Sunday 13 February 2005 9:38 pm, James Whitt wrote: > > > > My question is on the removal of empty hashing directories or at > > > > least > > > > > > > > their reuse. While running through our test server which we are > > > > setting up to replace our old system, I noticed that when domains > > > > are removed, they aren't being replaced when new domains are being > > > > created. To get to the point, we now have basically 0 - N > > > > directories > > > > > > > > with no domains in them, and they are completely empty, yet when we > > > > create more domains, a new directory will be created when the last > > > > one > > > > > > > > is filled (so if P gets filled, then Q is created even though 0 - N > > > > are sitting with no domains in it). Is there an easy way to have it > > > > > > > > reuse directories that are not hitting the quota anymore instead of > > > > potentially having a lot of empty directories? > > > > > > > > James Whitt > > > > > > If you remove the ~vpopmail/domains/.dir-control file, then the > > > directory hashing will start over at the begining. > > > > > > Ken Jones >