Link to home
Start Free TrialLog in
Avatar of Member_2_4942450
Member_2_4942450

asked on

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

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
ASKER CERTIFIED SOLUTION
Avatar of Joseph Gan
Joseph Gan
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Member_2_4942450
Member_2_4942450

ASKER

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
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
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
could I also devide it ?
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.
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?
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.
how much should I have for drbd is it equal to the amount I want to back up or what how is this determin?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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 ?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
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
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.
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?
What do you meant by 300 gig for / LVM Group? This is for / or for DRBD, also you missed / (root) here.
/ = ROOT?

/ is 300 which is LVM
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 / ?
160 usr

190G       1.6G       178G       1%       /
OK, you meant 300 gig for / in LVM? This is good, but 160 gig for /usr is too big, 50G is more than enough.
I guess its too late now i though /usr/ is where the sites and crap is stored?

I am running cpanel
Sorry for the delate reply, I was in the other side of the world :)
Cool so you think the setup is good?
Yep, good enough.
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?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
"You have 300 gig LVM share with / and "DRBD"."

are you asking me a question here?

yes I do on the above