Remounting partitions, out of disk space.

Solokron

Well-Known Member
Aug 8, 2003
852
2
168
Seattle
cPanel Access Level
DataCenter Provider
I have run into an interesting issue on a server. I am aware there may be different fixes. I wonder what you have used to correct this successfully?

I have the / partition around 9GBs which is not sufficient for local backups or even temporary space for remote backups. /home partition was set to fill the rest of the hard disks space.

What I would like to do is remount the /home/ partition as / and move its contents to a new directory named /home/ on the new mount.

Anyone successfully perform this? What was used, RAM drive, simple remounting via fstab, transfer to new server, partition software?

Thank you.
 
Last edited:

thewebhosting

Well-Known Member
May 9, 2008
1,199
1
68
What we have done is purchased a new drive and created a mount point /backup in it. After that we have configured backup in /backup directory.

I will not take risk of remounting /home since it holds my customers user directories.
 

PlatinumServerM

Well-Known Member
PartnerNOC
Jul 10, 2005
400
3
168
New Jersey, USA
cPanel Access Level
Root Administrator

Solokron

Well-Known Member
Aug 8, 2003
852
2
168
Seattle
cPanel Access Level
DataCenter Provider
Server already full with 2x 1TB drives in RAID 1. New drive is not an option.
 

SB-Nick

Well-Known Member
Aug 26, 2008
175
9
68
cPanel Access Level
Root Administrator
Since you are running RAID1, why you dont just create a symlink on / partition pointing to a 2nd disk folder?
 

Solokron

Well-Known Member
Aug 8, 2003
852
2
168
Seattle
cPanel Access Level
DataCenter Provider
That was the first thing I considered actually. /home/backup/ but cPanel has always recommended against having the backup in home. I am wondering if I would run into a backup loop as it archives all the contents of /home/.

Since you are running RAID1, why you dont just create a symlink on / partition pointing to a 2nd disk folder?
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
That was the first thing I considered actually. /home/backup/ but cPanel has always recommended against having the backup in home. I am wondering if I would run into a backup loop as it archives all the contents of /home/.
The main problem this generates is all the backups you generate get counted towards your users' disk quotas.
 

SB-Nick

Well-Known Member
Aug 26, 2008
175
9
68
cPanel Access Level
Root Administrator
I did not say inside /home/backup but outside /home.

That was the first thing I considered actually. /home/backup/ but cPanel has always recommended against having the backup in home. I am wondering if I would run into a backup loop as it archives all the contents of /home/.
 

Solokron

Well-Known Member
Aug 8, 2003
852
2
168
Seattle
cPanel Access Level
DataCenter Provider
The partition set to fill the rest of the drive is set for /home.



I did not say inside /home/backup but outside /home.
 

SB-Nick

Well-Known Member
Aug 26, 2008
175
9
68
cPanel Access Level
Root Administrator
There is no other way then.

You only have two options,
1) Setup /home/backup
2) Remove disk2 from the RAID and use it for backup.
 

Solokron

Well-Known Member
Aug 8, 2003
852
2
168
Seattle
cPanel Access Level
DataCenter Provider
Nonsense, I am quite confident there is a way this can be done.

There is no other way then.

You only have two options,
1) Setup /home/backup
2) Remove disk2 from the RAID and use it for backup.
 

SB-Nick

Well-Known Member
Aug 26, 2008
175
9
68
cPanel Access Level
Root Administrator
I should say, there is no *easy* way.
You still can resize your current partitions but that's way beyond from what I could recommend for a production server.
 

Solokron

Well-Known Member
Aug 8, 2003
852
2
168
Seattle
cPanel Access Level
DataCenter Provider
Well of course, if it was easy I woudn't have asked the question :) I may ultimately just dump the contents onto another server with the proper partition scheme setup and run an rsync via SSH. I am aware of the old rsync lines required for cPanel and accounts:

rsync -vrplogDtH /usr/local/apache/conf
rsync -vrplogDtH /var/named
rsync -vrplogDtH /home/*
rsync -vrplogDtH /usr/local/cpanel
rsync -vrplogDtH /var/lib/mysql
rsync -vrplogDtH /var/cpanel
rsync -vrplogDtH /usr/share/ssl
rsync -vrplogDtH /var/ssl
rsync -vrplogDtH /usr/local/cpanel/3rdparty/mailman
rsync -vrplogDtH /var/log/bandwidth
rsync -vrplogDtH /usr/local/frontpage
rsync -vrplogDtH /var/spool/cron
rsync -vrplogDtH /root/.my.cnf
rsync -vrplogDtH /etc/httpd/conf/httpd.conf

Is there anything new required for the newer versions? Is there an easier cleaner method maybe?

I am not the most confident in cPanel/WHM transfers. We have done them far too many times and there is always something it misses.
 

Solokron

Well-Known Member
Aug 8, 2003
852
2
168
Seattle
cPanel Access Level
DataCenter Provider
Does anyone have any input on this?

Thank you.
 

Solokron

Well-Known Member
Aug 8, 2003
852
2
168
Seattle
cPanel Access Level
DataCenter Provider
Thread starter Similar threads Forum Replies Date
L Account Administration 2