issue in moving home2 location

EzTech

Verified User
Joined
Nov 23, 2020
Messages
13
Hi,

I moved the home location from Primary HD to secondary HD and the website started to work from the home2 location whereas the emails are still in the home location (PHDD).

Kindly advise on how to move emails to home2 ( SHDD ).

Steps I did to move from PHDD to SHDD.

/etc/default/useradd

change the HOME= variable to HOME=/mnt/home2

I did as per these articles.

1) https://help.directadmin.com/item.php?id=451

2) https://help.directadmin.com/item.php?id=2133

Kindly advice.

Thanks,
RK
 
Why just not mount new disk as /home without any config changes?
for example:
mkdir hometemp
rsync -av /home/ /hometemp
stop nginx/apache/ftp/email services
rsync -av /home/ /hometemp (again fast)
umount/remount/rename old /home
mount/remount/rename/ /hometemp as /home
also put new config to /etc/fstab
start nginx/apache/ftp/email services
 
HI,

Thanks for the update.

Well, I can't do anything from scratch. All are set before and it was working fine for more than a year. All of sudden the sda1 got full and sdb was empty so now I just need the emails to be moved to sdb and work from there.

I am new to DA I can work in WHM but here it is hard to do. Kindly provide step by step information on how to move emails also to sdb.

Thanks
RK
 
Back
Top