• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 521
  • Last Modified:

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
0
sobeservices2
Asked:
sobeservices2
  • 16
  • 13
5 Solutions
 
Joseph GanSystem AdminCommented:
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
 
sobeservices2Author Commented:
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
 
sobeservices2Author Commented:
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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
Joseph GanSystem AdminCommented:
You can leave as it is, as the LVM can expand the partition dynamiclly when the / free space is low.
0
 
sobeservices2Author Commented:
could I also devide it ?
0
 
Joseph GanSystem AdminCommented:
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
 
sobeservices2Author Commented:
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
 
Joseph GanSystem AdminCommented:
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
 
sobeservices2Author Commented:
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
 
Joseph GanSystem AdminCommented:
By looking at both old and new servers, the maximum usage on / was 16G, that realy was not that much even including "brdb".
0
 
sobeservices2Author Commented:
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
 
Joseph GanSystem AdminCommented:
You could have 100G for "drbd" with LVM, so you can expand later when needed.
0
 
sobeservices2Author Commented:
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
 
sobeservices2Author Commented:
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
 
Joseph GanSystem AdminCommented:
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
 
sobeservices2Author Commented:
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
 
Joseph GanSystem AdminCommented:
What do you meant by 300 gig for / LVM Group? This is for / or for DRBD, also you missed / (root) here.
0
 
sobeservices2Author Commented:
/ = ROOT?

/ is 300 which is LVM
0
 
Joseph GanSystem AdminCommented:
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
 
sobeservices2Author Commented:
160 usr

0
 
sobeservices2Author Commented:
190G       1.6G       178G       1%       /
0
 
Joseph GanSystem AdminCommented:
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
 
sobeservices2Author Commented:
I guess its too late now i though /usr/ is where the sites and crap is stored?

I am running cpanel
0
 
Joseph GanSystem AdminCommented:
Sorry for the delate reply, I was in the other side of the world :)
0
 
sobeservices2Author Commented:
Cool so you think the setup is good?
0
 
Joseph GanSystem AdminCommented:
Yep, good enough.
0
 
sobeservices2Author Commented:
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
 
Joseph GanSystem AdminCommented:
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
 
sobeservices2Author Commented:
"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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 16
  • 13
Tackle projects and never again get stuck behind a technical roadblock.
Join Now