PDA

View Full Version : HDD partition question



neorder
04-05-2004, 08:18 PM
i just got a new server with this partition, i have a few questions no sure about it.

Filesystem 1M-blocks Used Available Use% Mounted on
/dev/hda2 7876 133 7343 2% /
/dev/hda1 76 13 60 17% /boot
/dev/hda8 48381 33 45892 1% /home
none 252 0 252 0% /dev/shm
/dev/hda7 1012 33 928 4% /tmp
/dev/hda6 7876 1144 6332 16% /usr
/dev/hda5 7876 86 7390 2% /var


1. i did asked them to setup /dev/shm to 2G, but here only shows 252M? is there a way that i can modify it's capacity?

2. i have both / and /home partition, how do i use both of them in DA, or is there a way that i can combine them? or how do i tell DA which partition to setup new account?

3. what does /usr and /var to do with DA?

thanks.

neorder
04-05-2004, 08:38 PM
another question for my server.

my /proc/version shows

Linux version 2.4.24 (root@xeon.andrewc.org) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #2 SMP Tue Feb 10 01:00:24 PST 2004

is this redhat 9? where do i see it? from verion 2.4.24 or 3.2.2-5?

neorder
04-05-2004, 08:45 PM
okay, i found my redhat version by running

cat /etc/redhat-release

another question, do i update my kernel before install DA? i have 2.4.24, there is stable version of v2.6, should i go ahead and upgrade?

neorder
04-05-2004, 09:05 PM
admin, please help me move this post to support section.thx.

neorder
04-05-2004, 09:44 PM
more to continue, i've not installed DA yet, i now found php, mysql, httpd, sendmail are installed already.

Do i need to clear them up before i install DA? and How?

ProWebUK
04-05-2004, 09:53 PM
You can repartion using parted or fdisk, although i recommend doing this from boot rather than changing active partitions around.



"2. i have both / and /home partition,"


if you had no /home, / would be used like:

/*any directories that dont exist as partitions*
/home/
/any/other/dirs/that/dont/have/a/partition/

with /home partion it simply uses / the same way it was above with no /home, just /home is taken ou, so you get:


(/)
/*any directories that dont exist as partitions*
/any/other/dirs/that/dont/have/a/partition/

(/home)
/home/



"3. what does /usr and /var to do with DA?"


These are general system folders, you dont NEED them as partitions although theres nothing wrong with them being there... /var conations all your mysql databases and email aswell as othjer data. /usr contains lots of important data including the directadmin binary



"another question, do i update my kernel before install DA? i have 2.4.24, there is stable version of v2.6, should i go ahead and upgrade?"


Doesnt matter if you do it before or after, you can either go to 2.4.25 or the latest 2.6

Chris

neorder
04-05-2004, 11:22 PM
yeah, thanks, ProwebUK.

btw, do you notice my harddisk's block size is 1M-blocks , is it wired? i through 1k should be normal. 1M will make me lost lots of space eventually, am i right?

and i know how to change swap size, and swapon, but do i do the same to "/dev/shm"? why not just name it swap?

i mean when i run fdisk, the hex code for swap is 82, right?
if it's not named swap, i then need to mount it as /dev/shm, will that do the trick?

thanks.

DirectAdmin Support
04-06-2004, 12:16 AM
1 Meg blocks!? ow. All files would use at least 1 meg of disk space, but fragmentation wouldn't be an issue because the files would be in huge chunks anyway :) The only thing I've ever heard of using blocks that big is a TiVo because of the Mpegs being so huge.

John

neorder
04-06-2004, 12:45 AM
yeah, indeed it's 1M-blocks.

i opt to 1k or 4k per block, which do you recommand?

and how about the swap issue?