Portal Home > Knowledgebase > Articles Database > Linux Partioning Question


Linux Partioning Question




Posted by xorion, 09-20-2013, 01:48 AM
Hi experts, Bought a new IBM x3250 server with 4TB (RAID 1) hard drive, going to install CentOS (latest) with this. I'm planning to use it as a web and email server, installing DirectAdmin and php applications, it will have over 200 users on it. Each user has 2GB of data. For the partitioning, how should I partition my HDD? I usually allow auto allocation. Please advise.

Posted by serve-you, 09-20-2013, 08:55 AM
DA has some partitioning guidelines in their install docs. You can keep it simple, or do a more complex schema to segregate things a bit more. Whatever you choose, make sure that you use LVM, so that you can resize later if needed.

Posted by BestServerSupport, 09-20-2013, 10:56 AM
Just keep in mind that you keep your /home partition as much bigger as possible since all your users data are going to be stored there. in the meantime, if you have larger databases then also keep /var partition bit bigger.

Posted by WebHostDog, 09-20-2013, 11:25 AM
With 2 hard drives and raid-1 just make one 500MB /boot and the rest under / and safe the troubles.

Posted by xorion, 09-21-2013, 12:04 AM
Many thanks for the great advices. Is there a guide on CentOS (latest) to build these partitions?

Posted by mayur879, 09-23-2013, 05:40 AM
you can use concept of LVM in that you can reduce & extend the partition sizes. or you can use quota management.

Posted by xorion, 09-23-2013, 06:46 AM
After i put in the CD of CentOS latest. it only asked me to "use all the space" and started installing.. i didn't get to choose LVM. By this option, is this LVM?

Posted by serve-you, 09-23-2013, 01:51 PM
I believe that LVM is used by default now in centos installs. Check the output of lvs, pvs, & vgs.

Posted by xorion, 09-23-2013, 02:17 PM
cools thx. what do you mean by "Check the output of lvs, pvs, & vgs"

Posted by serve-you, 09-23-2013, 02:58 PM
Type those commands in your shell. You should see some lvm volumes/partitions/groups if they are setup.

Posted by xorion, 09-23-2013, 10:09 PM
thanks, its lvm # lvs LV VG Attr LSize Pool Origin Data% Move Log Cpy%Sync Convert lv_home vg_sg -wi-ao--- 407.83g lv_root vg_sg -wi-ao--- 50.00g lv_swap vg_sg -wi-ao--- 7.44g # pvs PV VG Fmt Attr PSize PFree /dev/sda2 vg_sg lvm2 a-- 465.27g 0 # vgs VG #PV #LV #SN Attr VSize VFree vg_sg 1 3 0 wz--n- 465.27g 0

Posted by jamesbond879, 09-24-2013, 06:53 AM
you can use concept of LVM in that you can reduce & extend the partition sizes. or you can use quota management.

Posted by ram123456, 09-24-2013, 07:32 AM
in centos you can use lvm concept which can beeter you try to understand.or else you can use raid concept there might be your data also saved or recovered data usin raid concept



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
CWHNETWORKS Overloaded (Views: 640)