Solved

I have a 500 Gig Centos 0S 64 bit what is the best way to partation it I don't think the defaults did to well

Posted on 2011-02-16
29
481 Views
Last Modified: 2012-05-11
I was comparing my other server which is only 70 gigs now I have a 500 gig hd and I don't think I setup the partitions correct so I am using Gpart to adjust them here is what I have so far.

How do I adjust to fit something along the lines of how I had my old server

New Server
/dev/cciss/c0d0p1                                       99M                  43                     51                46%                 /boot
/dev/mapper/VolGroup00-LogVol00           444G                 7.4G                 414G                2%               /
/usr/tempDSK                                             485M                 13M                  447M               3%               /temp

My old server had settings like this

dev/sda1                                                  190M                       17M                                 164 mg          10%    /boot
dev/sda                                                     9.5 G                       1005M                             8.0 G             11%  /var
/dev/sda3                                                   9.5G                        5.2 G                               3.9G             58%  /usr
/dev/sda6                                                    44G                        16G                                 26G            38%  /
/usr/tmpDSK                                              485M                        13M                                448M           3%   /temp
0
Comment
Question by:sobeservices2
  • 16
  • 13
29 Comments
 
LVL 16

Accepted Solution

by:
Joseph Gan earned 500 total points
ID: 34912167
You should seperate / (root) with others, because if it filled up, the OS will stop working. Also can consider /usr, /var, /opt, /home and /temp etc.
0
 

Author Comment

by:sobeservices2
ID: 34912438
I have LVM and was told I could adjust an move partitions buy how now someone also said gpart it wasnt working for me on a 64 bit system found  some other program but I would have lost my current data makes no point then.

What am I to do I have done so much configuration now hate to go back pluss I need to have a partition or something setup for drbd
0
 

Author Comment

by:sobeservices2
ID: 34912442
I have LVM and was told I could adjust an move partitions buy how now someone also said gpart it wasnt working for me on a 64 bit system found  some other program but I would have lost my current data makes no point then.

What am I to do I have done so much configuration now hate to go back pluss I need to have a partition or something setup for drbd
0
 
LVL 16

Assisted Solution

by:Joseph Gan
Joseph Gan earned 500 total points
ID: 34912505
You can leave as it is, as the LVM can expand the partition dynamiclly when the / free space is low.
0
 

Author Comment

by:sobeservices2
ID: 34912739
could I also devide it ?
0
 
LVL 16

Expert Comment

by:Joseph Gan
ID: 34912843
No, you can't devide / partition without lossing data. One way could do is to backup all the data, then re-partition the disk, and restore the data back.
0
 

Author Comment

by:sobeservices2
ID: 34912940
back up data there isn't much data just cPanel setting and ASSP spam settings is really all I am worried about. this I guess means I should start fresh. what a disappointment.
how should I partition it then? what would the partitions be with drbd? could I use drbd with current partition setup  how do I know how much I need for drbd?
0
 
LVL 16

Expert Comment

by:Joseph Gan
ID: 34912986
With 500GB space, you could have for example of 10G for /, 20G for /usr, 20G for /var, 10G for /temp, 10G for /opt and some for /home, still have 400GB left for others such as brbd.
0
 

Author Comment

by:sobeservices2
ID: 34913004
how much should I have for drbd is it equal to the amount I want to back up or what how is this determin?
0
 
LVL 16

Assisted Solution

by:Joseph Gan
Joseph Gan earned 500 total points
ID: 34913056
By looking at both old and new servers, the maximum usage on / was 16G, that realy was not that much even including "brdb".
0
 

Author Comment

by:sobeservices2
ID: 34913075
I have I think all my usage was on /home so with drbd would I take for example I use 100 gig would I need 100 gig for drbd ?
0
 
LVL 16

Assisted Solution

by:Joseph Gan
Joseph Gan earned 500 total points
ID: 34913136
You could have 100G for "drbd" with LVM, so you can expand later when needed.
0
 

Author Comment

by:sobeservices2
ID: 34913154
humm I think I am at a dead end and need to start from scratch unless I add a hard drive for drbd
right now it's raid 1 hardware raid on my current 500 gig drives yuck
0
 

Author Comment

by:sobeservices2
ID: 34916416
This is what I did
For my 500 GIG drive
Would this work
I was thinking I could use the 200 gig somewhere or use the 70 Gig for the DRBD or maybe the 100 gig LVM PV
Please advise


5 gig boot
50 gig var
50 gig usr
200 gig /
1 gig /temp

I have an
LVM PV at 100 gig

and

70 gig free partitioned
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 16

Expert Comment

by:Joseph Gan
ID: 34919415
5G for boot is too big, in fact the boot can be under / if don't partition it. But not a big deal, everything looks good.
0
 

Author Comment

by:sobeservices2
ID: 34919476
This is what I did

1 GIG for boot
300 gig for / LVM Group
1 gig TEMP
160 GIG /usr
VAR can't remember installing something now and don't want to messs with it but I think it was around 1 gig

So you think this looks good?
I got space with LVM i guess I can adjust for DRBD?
0
 
LVL 16

Expert Comment

by:Joseph Gan
ID: 34919579
What do you meant by 300 gig for / LVM Group? This is for / or for DRBD, also you missed / (root) here.
0
 

Author Comment

by:sobeservices2
ID: 34919597
/ = ROOT?

/ is 300 which is LVM
0
 
LVL 16

Expert Comment

by:Joseph Gan
ID: 34919746
In your last comment:
1 GIG for boot
300 gig for / LVM Group
1 gig TEMP
160 GIG /usr

There was no partition for "/", is the 160 GIG /usr should be 160 GIG / ?
0
 

Author Comment

by:sobeservices2
ID: 34919766
160 usr

0
 

Author Comment

by:sobeservices2
ID: 34919768
190G       1.6G       178G       1%       /
0
 
LVL 16

Expert Comment

by:Joseph Gan
ID: 34919783
OK, you meant 300 gig for / in LVM? This is good, but 160 gig for /usr is too big, 50G is more than enough.
0
 

Author Comment

by:sobeservices2
ID: 34919807
I guess its too late now i though /usr/ is where the sites and crap is stored?

I am running cpanel
0
 
LVL 16

Expert Comment

by:Joseph Gan
ID: 34919872
Sorry for the delate reply, I was in the other side of the world :)
0
 

Author Comment

by:sobeservices2
ID: 34919891
Cool so you think the setup is good?
0
 
LVL 16

Expert Comment

by:Joseph Gan
ID: 34920055
Yep, good enough.
0
 

Author Comment

by:sobeservices2
ID: 34920102
So that LVM I can adjust

The server is for websites and email

COOL so I guess I am good to go?
How about DRBD ? space?
0
 
LVL 16

Assisted Solution

by:Joseph Gan
Joseph Gan earned 500 total points
ID: 34920187
For this configuration:
5 gig boot
50 gig var
50 gig usr
200 gig /
1 gig /temp

I have an
LVM PV at 100 gig

You have 100G LVM for "DRBD".

For your second configuration:

1 GIG for boot
300 gig for / LVM Group
1 gig TEMP
160 GIG /usr

You have 300 gig LVM share with / and "DRBD".
0
 

Author Comment

by:sobeservices2
ID: 34920280
"You have 300 gig LVM share with / and "DRBD"."

are you asking me a question here?

yes I do on the above
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now