[vchkpw] another dumb question!

2004-05-04 Thread Paul Theodoropoulos
instead of a mass migration and upgrade as i'd originally contemplated, 
i've simply added a new disk array to my systems to add more space. i've 
moved many existing domains from the original filer to the new one, simply 
dropping a symlink in place at the original location - and everything works 
perfectly, which is great.

however, some of my biggest domains are the ones for customers who don't 
have their own domain. i'm probably not going to migrate those to the new 
filer, as the downtime while the data transfers would be too long. instead, 
i'd like to symlink the new numbered subdirectories of those domains to the 
new filer, so future growth will go there. my question is, can one 
'pre-create' the numbered subdirectories, and will vpopmail use them 
properly, or does vpopmail have to create them itself for them to work?

Paul Theodoropoulos
http://www.anastrophe.com



Re: [vchkpw] another dumb question!

2004-05-04 Thread Rick Romero
On Tue, 2004-05-04 at 10:59, Paul Theodoropoulos wrote:
 instead of a mass migration and upgrade as i'd originally contemplated, 
 i've simply added a new disk array to my systems to add more space. i've 
 moved many existing domains from the original filer to the new one, simply 
 dropping a symlink in place at the original location - and everything works 
 perfectly, which is great.
 
 however, some of my biggest domains are the ones for customers who don't 
 have their own domain. i'm probably not going to migrate those to the new 
 filer, as the downtime while the data transfers would be too long. instead, 
 i'd like to symlink the new numbered subdirectories of those domains to the 
 new filer, so future growth will go there. my question is, can one 
 'pre-create' the numbered subdirectories, and will vpopmail use them 
 properly, or does vpopmail have to create them itself for them to work?

Can you rsync two directories?

Then you wouldn't really have the downtime...

 Paul Theodoropoulos
 http://www.anastrophe.com




Re: [vchkpw] another dumb question!

2004-05-04 Thread Paul Theodoropoulos
At 09:05 AM 5/4/2004, Rick Romero wrote:
Can you rsync two directories?

Then you wouldn't really have the downtime...
i've never used rsync, have never had a need so never looked into it.

rsync can work while a file system is being actively and aggressively 
modified? e.g. user X is checking email every 30 seconds via pop3, their 
account receives several new messages per minute - customer checks for new 
mail while rsync is running, the pop session moves new messages from 
Maildir/new to Maildir/cur - rsync will understand that, even if it happens 
while rsync is syncing that part of the filesystem? there's no danger of 
winding up with duplicate copies in new and cur?

yeah, i guess these aren't vpopmail questions.

but anyway, that's not specifically the issue i was asking about. i 
actually don't want to move the largest domains to the new filer - by 
leaving most of their data where it is, i can balance load better across 
more spindles, as opposed to moving all data to the new filer.

Paul Theodoropoulos
http://www.anastrophe.com



Re: [vchkpw] another dumb question!

2004-05-04 Thread Rick Romero
On Tue, 2004-05-04 at 11:17, Paul Theodoropoulos wrote:
 At 09:05 AM 5/4/2004, Rick Romero wrote:
 Can you rsync two directories?
 
 Then you wouldn't really have the downtime...
 
 i've never used rsync, have never had a need so never looked into it.
 
 rsync can work while a file system is being actively and aggressively 
 modified? e.g. user X is checking email every 30 seconds via pop3, their 
 account receives several new messages per minute - customer checks for new 
 mail while rsync is running, the pop session moves new messages from 
 Maildir/new to Maildir/cur - rsync will understand that, even if it happens 
 while rsync is syncing that part of the filesystem? there's no danger of 
 winding up with duplicate copies in new and cur?

There's a delete option when you're running a synch.  You can delete
from source or destination.  So if you set delete on destination, the
destination should always match the source when it's done.

 yeah, i guess these aren't vpopmail questions.
shrug :)

 but anyway, that's not specifically the issue i was asking about. i 
 actually don't want to move the largest domains to the new filer - by 
 leaving most of their data where it is, i can balance load better across 
 more spindles, as opposed to moving all data to the new filer.

Ohh. for some reason I was thinking single drive - RAID..

Yeah, then whatever ;)

Rick

 
 Paul Theodoropoulos
 http://www.anastrophe.com




Re: [vchkpw] another dumb question!

2004-05-04 Thread Nick Harring
Paul Theodoropoulos wrote:

instead of a mass migration and upgrade as i'd originally 
contemplated, i've simply added a new disk array to my systems to add 
more space. i've moved many existing domains from the original filer 
to the new one, simply dropping a symlink in place at the original 
location - and everything works perfectly, which is great.

however, some of my biggest domains are the ones for customers who 
don't have their own domain. i'm probably not going to migrate those 
to the new filer, as the downtime while the data transfers would be 
too long. instead, i'd like to symlink the new numbered subdirectories 
of those domains to the new filer, so future growth will go there. my 
question is, can one 'pre-create' the numbered subdirectories, and 
will vpopmail use them properly, or does vpopmail have to create them 
itself for them to work?
In the past I've precreated these directories (actually had to once to 
make adding users work, still never figured that out) and they just get 
used. I believe that the vpopmail code checks the existence before 
trying to create, and if it exists it just uses it.

Paul Theodoropoulos
http://www.anastrophe.com
Hope that helps,
Nick


Re: [vchkpw] another dumb question!

2004-05-04 Thread Paul Theodoropoulos
At 11:26 AM 5/4/2004, you wrote:
In the past I've precreated these directories (actually had to once to 
make adding users work, still never figured that out) and they just get 
used. I believe that the vpopmail code checks the existence before trying 
to create, and if it exists it just uses it.
cool, thanks kindly.

Paul Theodoropoulos
http://www.anastrophe.com



Re: [vchkpw] another dumb question!

2004-05-04 Thread Paul Theodoropoulos
At 05:15 PM 5/4/2004, Paul Theodoropoulos wrote:
At 11:26 AM 5/4/2004, you wrote:
In the past I've precreated these directories (actually had to once to 
make adding users work, still never figured that out) and they just get 
used. I believe that the vpopmail code checks the existence before trying 
to create, and if it exists it just uses it.
cool, thanks kindly.
well, i just discovered something weird while starting to add some symlinks 
for these premade directories - very inconsistent usage of the numbered 
dirs - for example:

domain1.com/0  - 90 addresses
domain1.com/1  - 0 addresses
domain1.com/2  - 104 addresses
domain2.com/0  - 5 addresses
domain2.com/1  - 1 address
domain2.com/2  - 1 address
domain2.com/3  - 38 addresses
makes no sense. known bug? this is vpopmail v.5.3.18.

Paul Theodoropoulos
http://www.anastrophe.com