strange problem, Duplicate /Home dir
Hello
i have server running CentOS with cpanel and recently i installed a backup script to backup account and the script back's up the account in /home dir but i noticed that there are no backups created because there are 2 home dir Code:
root@server [/]# ls -al and when i do #cd to the home dir this is what i get Code:
root@server [/home]# ls -al do you guys know what this might be and how can i solve it additional info: server uses Software RAID, if that helps . thank you |
Looks like one of your home directories has a space appended to the name, ie "home" vs "home ". In "home" there's a simlink called onmymood which points to "home /onmymood" (the "home " with the space). I'm not sure why the system is set up like this, who did the install? It should be easy enough to merge the two folders and just keep the regular one (without the space).
|
we got the server from datacenter partitioned
and then we installed cpanel and other required softwares we dont know who caused this but can you tell me how to merge them thx |
First I would call up the people who set up the system and make sure that there's not some special reason they did it that way.
For example, I noticed a "lost+found" directory in /home/. This is typically found in the highest level of a separate filesystem, implying that "/home/" actually lives on a separate disc on your system than everything else (including "/home /"). What is the output of "df -h"? |
here is the output of df command
Code:
root@server [~]# df -h but look at the output of this command Code:
root@server [/home/onmymood]# du -ch | grep total |
Yes, because the onmymood in "/home/" is just a symlink pointing to "/home /onmymood" (the "/home /" with the space). So that 615G actually lives on "/home /", not "/home/", so it shows up under the usage for "/".
You now need to decide whether you want the 615GB being used by onmymood's home directory to be located on the 1TB /dev/sda3 partition (where it sits now), or the 1.7TB /dev/sda5 partition (with the rest of /home/). Same goes for anything else you have in /home/, do you want it on the 1TB /dev/sda3, or the 1.7TB /dev/sda5? Whether or not you merge your two "home" directories and where you put the result will depend on how you want your system to be configured when it's all said and done. |
so the "/home /" is a folder inside "/"
and "/home/" is the original home partition ? so can we do something like Code:
mv -R /home\/onmymood /home/onmymood |
You're mostly right
"/home /" is a folder inside "/", which lives on /dev/sda3 "/home/" is the normal home folder, and it lives on its very own partition at /dev/sda5 (which is a separate 1.7TB partition on the same 3TB disc as /) Code:
rm /home/onmymood |
All times are GMT -5. The time now is 04:14 PM. |