Disk space not recovered after account moved to different partition

BlueSteam

Well-Known Member
Feb 21, 2013
129
23
68
cPanel Access Level
Reseller Owner
Hi,

I moved an account from one partition to another using the rearrange accounts method. After this I was hoping to see the disk space recovered on the old partition but alas this is not the case. The disk space usage is still the same and when looking at the account now in ssh, there is now a symbolic link where the old account used to be pointing to the new partition and the files have all been moved to the new partition.

Also, I noticed that after the move the website was throwing 404 errors on every url so what i did was completely restore the account which naturally put it on the new partition automatically and that fixed the 404 errors but that symbolic link is still there on the old partition and the disk space is not recovered.

any ideas?

Thanks
Brett
 

BlueSteam

Well-Known Member
Feb 21, 2013
129
23
68
cPanel Access Level
Reseller Owner
UPDATE: I completely terminated the account and noticed that even after doing so, the disk space was not recovered on the old partition. It was recovered on the new partition. So I have now completely rebooted the server to see if it isnt a trash thing holding the storage. watch this space.
 

BlueSteam

Well-Known Member
Feb 21, 2013
129
23
68
cPanel Access Level
Reseller Owner
Ok, so it seems the disk usage was a false alarm. I moved another account and it has recovered the disk usage. Im not sure why I thought it was meant to be lower after the move.

However, the 404 errors after the move is definitely still happening. I moved another account and after moving the account the website is now throwing 404 errors. So I restarted apache and that didnt help.

any ideas?
 

BlueSteam

Well-Known Member
Feb 21, 2013
129
23
68
cPanel Access Level
Reseller Owner
after doing some diggin, I found the following error in the cpanel error logs:

[2016-08-12 09:27:15 +0200] warn [Fileman::listfiles] Encountered error in Fileman::listfiles: The directory /home2/bluesteam/home/bluesteam does not exist.

as you can see that cPanel thinks the files are all in /home2/account_name/home/account_name

Is this a bug in the re-arrange process???
 

BlueSteam

Well-Known Member
Feb 21, 2013
129
23
68
cPanel Access Level
Reseller Owner
I restarted apache and that didnt help.
I restarted MySQL and that didnt help. Just for the hell of it.
I restarted cPanel from the command line and that didnt help

So I rebooted the entire server and everything is fixed. What Gives??? Why would a server reboot sort it out???
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello,

Could you verify if "EXPERIMENTAL: Jail Apache Virtual Hosts using mod_ruid2 and cPanel® jailshell." is enabled under the "Security" tab in "WHM >> Tweak Settings" on this system?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello,

Internal case CPANEL-8008 fixes the following issue in cPanel version 60:

If a user has a jailed shell and the server has the configuration option "EXPERIMENTAL: Jail Apache Virtual Hosts using mod_ruid2 and cPanel® jailshell." enabled, then when rearranging that account, the /home/virtfs/ directory for that account is not updated when the account is rearranged.
In the meantime, you can temporary address the issue by rebooting the system, or with the following command:

Code:
 /scripts/clear_orphaned_virtfs_mounts --user=<username>
Thank you.
 

BlueSteam

Well-Known Member
Feb 21, 2013
129
23
68
cPanel Access Level
Reseller Owner
The command you provided does not resolve it. The ONLY way to resolve this is to reboot the server entirely.