Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Dec 2005
    Posts
    9

    Default Fastest Way To Zap Multiple Accounts [Urgent]

    I recently acquired 15 servers with massive amounts of accounts
    98% unused, over 4000 per server

    I need to delete 3800 of these on each server but the problem is because they
    were unmanaged for so long, deleting 1 account via WHM or /scripts/killacct
    takes 15 minutes to remove 1 account

    due to something like mkvhostspasswd or something taking forever to rehash

    Is there any way I can get these accounts removed faster?

  2. #2
    Member
    Join Date
    Aug 2005
    Posts
    131

    Default

    Yes, with the terminate multiple accounts feature in whm, in the Multi-Account Functions section.

  3. #3
    Member
    Join Date
    Dec 2005
    Posts
    9

    Default

    That does not help, it takes 15 minutes per remove (mass terminate still does one at a time, just get to select ahead of time), the web app will run for 6 hours to remove 50 accounts and takes 99.9% of the cpu PER USER once it hits that mkvhostspasswd stage
    Last edited by bugmaster; 12-29-2005 at 03:18 AM.

  4. #4
    Member
    Join Date
    Dec 2005
    Posts
    9

    Default geez

    i started mass terminate since last post
    at this time it has only removed 3 accounts in total

  5. #5
    Member
    Join Date
    Dec 2005
    Posts
    9

    Default peeking

    just peeking at the mkvhostspasswd code, didnt get far but

    opendir(PROFTPDVHOSTS,"/etc/proftpd");
    my @NAMELESS=readdir(PROFTPDVHOSTS);
    @NAMELESS=grep(!/^\.+$/, @NAMELESS);
    closedir(PROFTPDVHOSTS);

    Could this be whats slowing it down and if i just zap all the bad accounts here prior to terminating, that will speed up the proccess?

  6. #6
    Member
    Join Date
    Dec 2005
    Posts
    9

    Default not a coder

    I'm not a coder or a engineer, or whatnot, but if you ask me this procedure is useless to be run in this predicament...... sure it might be a part of some sorta test that needs to be done when managing accounts, but in certain conditions such as rmeoving 1 account, why 1000 others have to be checked for a nameless account is beyond me, seeing how
    it just deleted the proftpd file that it really should be checking before even running this...
    thats my 2 cents... but then again, i have worked with programmers for 10 years and i know how that scene goes,

    my problem was solved with my own 10 lines of code to find and rmeove ununsed accounts... and this was indeed the bottleneck

    15 minutes now down to 2 minutes per terminate
    still slow but tolerable

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Dec 2004
    Posts
    392

    Default

    hey

    How about backing up the accounts you want,
    Then move the backup off the server and wipe it
    then reinstall the OS and then cpanel and restore the accounts you need.


    Cheers
    Andy
    UK Managed Hosting
    UK Linux Support
    The information given above is intended to be advice only.

  8. #8
    Member
    Join Date
    Dec 2005
    Posts
    9

    Default pointless

    pointless and expensive, the drives are multiple 200 gigs+ per server

    a better solution would be to learn how to program, kinda sad someone who has
    no programming knowledge and used cpanel for less than a month can code better than someone making 150k+ a year specifically on the project and a cpanel supposed expert

  9. #9
    Member
    Join Date
    Jun 2005
    Posts
    159

    Default

    Quote Originally Posted by bugmaster
    just peeking at the mkvhostspasswd code, didnt get far but

    opendir(PROFTPDVHOSTS,"/etc/proftpd");
    my @NAMELESS=readdir(PROFTPDVHOSTS);
    @NAMELESS=grep(!/^\.+$/, @NAMELESS);
    closedir(PROFTPDVHOSTS);

    Could this be whats slowing it down and if i just zap all the bad accounts here prior to terminating, that will speed up the proccess?
    Oh how I wish one day cPanel would fix this code

Similar Threads & Tags
Similar threads

  1. Replies: 3
    Last Post: 06-03-2009, 09:47 AM
  2. Multiple Shared IPs *without having to use multiple reseller accounts?
    By thedevilman in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-20-2008, 08:43 PM
  3. Fastest Way to move Accounts
    By binaer in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 12-08-2005, 11:21 PM
  4. URGENT - Accounts not showing
    By jcallery in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-05-2005, 01:39 PM
  5. Fastest way to get clients?
    By dev.null in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 11-20-2003, 12:31 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube