Moving a mount drive between servers
I have a cPanel server that uses a mounted drive for the account files. Apache is failing and as I need to upgrade from CentOS7, at some point, I thought I'd take this opportunity to boot a new server and start fresh. My question is whether I can unmount the drive, mount the drive on the new server and tell cPanel to use that drive for accounts. If I then set the account to use the new drive will it overwrite the existing, matching, accounts home folder or will it recognise it exists and just use it without any issues?
Thanks
-
Hey there! I don't see why that wouldn't work. You'd just want to ensure that the accounts exist on the machine first, as moving the home directories isn't enough to restore or recreate the accounts. 0 -
I think some more context is needed. If you're adding a drive and wanting to mount /home off it it, what you need to do is: 1) mount the drive initially as something else, like /home2, 2) rsync all files from /home to /home2 3) unmount /home and /home2 4) remount the new drive as /home Alternatively, you can just mount it as /home2 and use the WHM "rearrange accounts" function to move the accounts to /home2, and leave them there. This will also update all configurations for users to use /home2, and create a symlink from /home/$user to /home2/$user 0
Please sign in to leave a comment.
Comments
2 comments