The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Moving accounts to another server having home and home2 issues

Discussion in 'General Discussion' started by nyjimbo, Mar 27, 2012.

  1. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    We have been moving accounts from one server to another and found that some of the accounts have problems with things like frontpage and yabb.

    It seems that if an account was originally on one partition (home) and then "rearranged" to another (home2) and later on pkgacct and moved to a new server with a home2 partition, some of the things in that account still have
    "home" as the pathing. Frontpage extensions are all screwed up and if you try to uninstall yabb (perhaps other things as well) it will say something like it cannot change to the folder "/home/username/public_html/whatever".

    It seems that when the account on the old server is "rearranged" there is still some pathing pointing to "home" but on the old server there is a link like "username@" on the /home partition which links to "home2" or whatever the new rearranged location is. But if you move the account to a new server with a "home2" it does not also copy the "username@" link or whatever it is so now the accounts fail when it depends on that.

    "/home" shows something like this on the OLD server(just noting the perms and filename):

    lrwxrwxrwx --- --- --- --- username -> /home2/username

    that does not exist on the new server.

    Not sure if that makes sense, but I was wondering if anyone else experienced this and what can be done to avoid having this problem in the future as we move accounts to newer servers that may have been re-arranged years before on older servers.

    Will simply making a new link like the above on "/home" fix this ? Is there a script to do this
    or will some command line stuff do it ?
     
    #1 nyjimbo, Mar 27, 2012
    Last edited: Mar 27, 2012
  2. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    Well it seems all I had to do was go to the new server and after moving any account to it just do a

    ln -s /home2/account /home/account

    and it created the link on /home that did not get created with the move of the account to the new server. So far everything that was failing now seems to be working, but I will keep an eye on it.
     
Loading...

Share This Page