View previous topic :: View next topic |
Author |
Message |
Doctor Feelgood Arrrrghh!
Joined: 07 Apr 2003 Posts: 20349 Location: New Jersey
|
Posted: Mon, 11 Apr 2005 12:58:54 Post Subject: Odd Linux Partioning?!? |
|
|
On the site's current server, we have two 80GB hard drives... sda has just about every partition and file for running the site, and sdc is one big partition with a folder for nightly backups and another folder where mySQL runs, which is symlinked back to the main drive.
New server was setup and the partioning is a bit odd to me... Two 73GB hard drives in this one, with the following partitions...
/dev/sda6 26G 1.7G 23G 7% /
/dev/sda1 198M 25M 163M 14% /boot
/dev/sda3 487M 8.1M 454M 2% /tmp
/dev/sdb1 50G 245M 47G 1% /home
/dev/sda2 15G 264M 14G 2% /var
/dev/sda5 26G 33M 25G 1% /backup
Just seems confusing to me...
So... /home is the only thing on the second drive? And where is the balance of that drive's space? Don't tell me 23GB disappears during formatting.
And... does it look like I can accomplish what I want with this setup? Backing up site files to the /backup folder is ok, and leaving mySQL in /var/lib at least has them on a drive separate from the front end... But not separate from the OS, etc...
|
|
Back to top |
|
|
Little Bruin
Boo Boo
Joined: 07 Apr 2003
Posts: 667
Location: Pic-A-Nic Basket |
|
|
IceNine *The Freshest*
Joined: 08 Sep 2003 Posts: 1459 Location: Bel Air
|
Posted: Mon, 11 Apr 2005 13:10:47 Post Subject: |
|
|
Who/what setup your parititions? Plus, I thought this was supposed to be in an array...? Also, how big are your backups? _________________
A letter to a soldier |
|
Back to top |
|
|
Doctor Feelgood Arrrrghh!
Joined: 07 Apr 2003 Posts: 20349 Location: New Jersey
|
|
Back to top |
|
|
IceNine *The Freshest*
Joined: 08 Sep 2003 Posts: 1459 Location: Bel Air
|
Posted: Mon, 11 Apr 2005 13:20:25 Post Subject: |
|
|
It's just a bit odd to me. The only reason I can think they would put /home on its own drive is that your WWW files and data are there. But then why not /var on the same drive? If that drive fails you keep the /home files, but you'll have to restore your MySQL db from your backup :/
Jeez that's a big backup. Is it mostly files or db or...? _________________
A letter to a soldier |
|
Back to top |
|
|
Doctor Feelgood Arrrrghh!
Joined: 07 Apr 2003 Posts: 20349 Location: New Jersey
|
|
Back to top |
|
|
IceNine *The Freshest*
Joined: 08 Sep 2003 Posts: 1459 Location: Bel Air
|
Posted: Mon, 11 Apr 2005 13:28:45 Post Subject: |
|
|
You should be able to fdisk sbd and create a new partition on the extra space. You could mount it somewhere, but I'm not sure what you'd want to do with it.
Unfortunately, this is the only thing I can think to do without possible loss of data or having to re-do what is done. ThePMG or Dud3! might be able to help further. _________________
A letter to a soldier |
|
Back to top |
|
|
Doctor Feelgood Arrrrghh!
Joined: 07 Apr 2003 Posts: 20349 Location: New Jersey
|
Posted: Mon, 11 Apr 2005 13:38:51 Post Subject: |
|
|
Well, other than the OS and server software, there is no data. I want to get it right up front, before I start using it.
I just want to understand this, and use it as best possible. And I want all the disk space I should have...
At this point, could I move "/home" onto to sda, eliminate '/ " and "/backup", and create one or two partitions on sdb? |
|
Back to top |
|
|
Little Bruin
Boo Boo
Joined: 07 Apr 2003
Posts: 667
Location: Pic-A-Nic Basket |
|
|
IceNine *The Freshest*
Joined: 08 Sep 2003 Posts: 1459 Location: Bel Air
|
Posted: Mon, 11 Apr 2005 13:43:13 Post Subject: |
|
|
NO NO NO! Do NOT EVER eliminate the / folder. That means all your binaries will be gone. That serves as a root dir for everything else you need
You could probably move /home, but what is in there? Also do you only login as root? _________________
A letter to a soldier |
|
Back to top |
|
|
Doctor Feelgood Arrrrghh!
Joined: 07 Apr 2003 Posts: 20349 Location: New Jersey
|
Posted: Mon, 11 Apr 2005 13:54:42 Post Subject: |
|
|
Oh yeah...
Just hadn't seen / that big in my structure before...
This is what we currently have on the live server:
/dev/hda6 1012M 33M 928M 4% /tmp
/dev/hda1 46M 14M 30M 33% /boot
/dev/hdc1 74G 1.8G 68G 3% /disk2
/dev/hda5 53G 1.2G 49G 3% /home
/dev/hda7 1012M 282M 679M 30% /
/dev/hda3 6.9G 396M 6.2G 6% /var
/dev/hda2 9.9G 3.0G 6.5G 32% /usr
And it has worked well so far. I was hoping to see the same setup on the new server... So, there is my confusion.
This is what is in /home on the new server:
./ aquota.user* cpapachebuild/ lost+found/ quota.user*
../ .cpan/ cpins/ ltsv-2468/ |
|
Back to top |
|
|
IceNine *The Freshest*
Joined: 08 Sep 2003 Posts: 1459 Location: Bel Air
|
Posted: Mon, 11 Apr 2005 14:06:17 Post Subject: |
|
|
Does cPanel run as its own user? I'm really not familiar with that app.
I noticed that the current server gave /usr its own partition. That's not really a big deal I suppose as it doesn't need much more room after initial install. Can you redo the new partitioning scheme yourself or will you have to talk to the guys at the datacenter? _________________
A letter to a soldier |
|
Back to top |
|
|
|