Results 1 to 6 of 6
Thread: Disc space problem
-
01-10-2008, 12:48 PM #1Newbie
- Join Date
- Jan 2008
- Posts
- 14
Disc space problem
quote]i use virtualmin on my server as control panel. i have two hard drive in my server. the first drive have 2 partition (35G and 30GB) .The others have one (70 GB). My main partititon that system run, is full %90. So mysql and my system freeze.
Drive 1
First partiton: 35 GB (completely full)
Second partiton: 30 GB (using %2)
Drive 2:
Third partiton: 70 GB (using %2)
1. Is the fullness of the disc space, effects the mysql server?
2. To decrease the use of main partition, is it possible to move /home directory or mail directory to other drive. If is it possible how can do this?
-
01-10-2008, 07:02 PM #2Junior Guru Wannabe
- Join Date
- Jan 2008
- Location
- Atlanta, Ga, USA
- Posts
- 44
I've seen mysql run without issues up into the 99% used disk space.
Here's a simple guide to moving /home to a different partition:
http://www.go2linux.org/how-to-move-...ther-partitionLearn what happens after you click send with DMARC reports from Fraudmarc
Email utilities: SPF check your DNS record
-
01-10-2008, 11:19 PM #3Newbie
- Join Date
- Oct 2005
- Posts
- 15
-
01-11-2008, 01:23 AM #4Junior Guru
- Join Date
- Jul 2004
- Location
- Athens, Greece
- Posts
- 209
The provided guide seems pretty good but it's not for FreeBSD, but Linux, so I wouldn't recommend to use the exact steps as it won't work.
There are several ways to do that, I will try to show you probably the easier one (not necessarily the most appropriate one). Assuming that:
- You have your Drive2 mounted as /hdd2
- Your homedir is /home (if you are not sure: "ls -ld /usr/home /home" as it may be /usr/home, depending O/S setup)
# Create home directory in /hdd2
mkdir /hdd2/home
# Set default home permissions (or 711 if you want to restrict listing):
chmod 755 /hdd2/home
# Copy hdd1's home to hdd2's home
cp -Rp /home /hdd2/
# Rename hdd1's home to oldhome
mv /home /oldhome
# Create symbolic link from /home to /hdd2/home
ln -s /hdd2/home /home
That should do the job and once you're sure that everything is fully functional on your new homedir, you may delete /oldhome to free up space on your first drive.
Thank you.SharkTECH Internet Services
http://www.sharktech.net
DDOS Firewalled Dedicated Servers
Managed Services / IRC Allowed
-
01-11-2008, 01:44 AM #5Junior Guru Wannabe
- Join Date
- Jan 2008
- Location
- Atlanta, Ga, USA
- Posts
- 44
Learn what happens after you click send with DMARC reports from Fraudmarc
Email utilities: SPF check your DNS record
-
01-11-2008, 08:48 AM #6New Member
- Join Date
- Nov 2007
- Posts
- 3
Big thanks for this info