LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-01-2014, 10:54 AM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Rep: Reputation: Disabled
Recommend partitioning for Centos basic server with only me as the user


When creating a new Centos basic server, I do the following:
  • Select all space
  • Review and modify partitioning layout
  • Remove lv_home partition and put associated memory in root

Is this a mistake and should I leave lv_home in place?
 
Old 04-01-2014, 11:00 AM   #2
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Nothing wrong with that for a home desktop system. I've got some systems that use LVM and have a bazillion different mountpoints. Others, like my home desktop, are much simpler. If you have a large disk on your home desktop, there really is no need to do a bunch of partitioning and use LVM. Doesn't hurt, doesn't help. So make your choice. Sometimes simpler is better. Depends on your situation. Most one-user home desktop systems work perfectly well with "simpler".
 
Old 04-01-2014, 06:04 PM   #3
craigs21
LQ Newbie
 
Registered: Jul 2007
Location: Sunnyvale, SiliVali, CA
Distribution: slak + FC
Posts: 1

Rep: Reputation: 0
I'm old school and never bothered to explore all the good things LVM can do. All of my home systems are set up with manual hard partitions. A /boot and / on the root disk. A /u on the second disk. If I need to I can mount the disks on another system and save the data. Or I can just drop them in and reboot another mobo. Oh, I forgot to mention I set up a swap on each disk equal to physical memory.
 
Old 04-01-2014, 07:01 PM   #4
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Basically, if you have to ask whether you need to partition or use LVM, then the answer is "No, you do not." In other words, if you can't describe why you want to, then you don't need to. Simple as that.
 
Old 04-01-2014, 07:17 PM   #5
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by haertig View Post
Basically, if you have to ask whether you need to partition or use LVM, then the answer is "No, you do not." In other words, if you can't describe why you want to, then you don't need to. Simple as that.
Thanks craigs21 and haertig,

I don't disagree, but whenever I go away from the "default" install, I thought I better ask.
 
Old 04-02-2014, 03:03 AM   #6
rexus
LQ Newbie
 
Registered: Apr 2010
Posts: 10

Rep: Reputation: 0
Hi NotionCommotion,

Although this is for your own RnD, don't you think it would be nicer if you make it as if you're setting up for business purposes?
That's just my opinion so at least we can learn how to do a best practice in a lab environment.
At the end of the day, we're just preparing for the big day right?

This is what I normally do with my VM servers in my home lab:
The physical volume I normally give to each VM installation is around 22 GB.
boot partition has to be non-lvm partition
Code:
/boot  /dev/sda1      200 MB
The rest goes to the physical volume.
for the volume group, I use up the rest of the space I have from the physical volume.
Code:
PV          VG       PSize
/dev/sda2   vg_os    22 GB

FS     VG      LV         LSize
/      vg_os   lv_root    2 GB
/tmp   vg_os   lv_tmp     4 GB
/usr   vg_os   lv_usr     6 GB
/var   vg_os   lv_var     6 GB
swap   vg_os   lv_swap    4 GB
That's what I roughly do in each of my new VMs.
That just made sense for me in the long run if I want to re-size one of the mount point.
I hope this helps.

Cheers...
 
Old 04-02-2014, 03:12 AM   #7
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,474

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
If it's for a "personal" server then unless there's a compelling reason not to I'd use the suggested / default partitioning scheme.
 
Old 04-05-2014, 03:17 AM   #8
Sayajin
LQ Newbie
 
Registered: Nov 2013
Posts: 12

Rep: Reputation: Disabled
2 ways i have found best.
Code:
/boot ext3 1000MB
swap  swap 4000MB (lvm)
/     ext4 100GB (lvm)
or if you will be filling up home & opt with stuff then you could...
Code:
/boot ext3 1000MB
swap  swap 4000MB (lvm)
/     ext4 100GB (lvm)
/home ext4 100GB (lvm)
- then log into single user mode, move /opt & /var to /home & create symlinks, dont forget to disable selinux.

Last edited by Sayajin; 04-05-2014 at 03:25 AM. Reason: premature postulation
 
Old 04-05-2014, 05:21 AM   #9
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

Rep: Reputation: 153Reputation: 153
It doesn't matter how the partitions are done or what type of file-system they are formatted with. If all you do is generic system administration or like writing programs/scripts and even running servers like apache and similar, it doesn't matter. A simple /boot and / are enough, and if you want to be little more creative, you can add /home.

It only matters, if disk and space management is part of your system administration or for whatever the nature of work you do. Like for example, software developers often mess up with OS/database/configs, so they need snapshot facility, which is provided by LVM, so they go for it. For large corporation, where data is of at-most important, they have lot of options like raids, lvms, zfs, xfs to name a few. If you want to get specialty in those areas, you can experiment with difference types of partitions, file-systems etc.

Last edited by Madhu Desai; 04-05-2014 at 05:37 AM. Reason: Typo error: Its / not /root.
 
Old 04-05-2014, 05:27 AM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by Sayajin View Post
2 ways i have found best.
Why?


Quote:
Originally Posted by Sayajin View Post
then log into single user mode, move /opt & /var to /home & create symlinks,
Why?


Quote:
Originally Posted by Sayajin View Post
dont forget to disable selinux.
Until you explain why I disagree, especially for machines in a server role.


Quote:
Originally Posted by NotionCommotion
Recommend partitioning for Centos basic server
While you ask pertinent questions they do not quite link up with the "server" part in your thread title IMO. The difference between machines in a server or a desktop role is the first usually run unattended for prolonged periods of time and depending on their server role (should) require more forethought and different precautions when compared to "do whatever you want" desktops. (Example: if you've never experienced server failure due to "/var" contents filling up "/" then you do not know which precautions to take and why. To be clear: that's both a planning and a monitoring issue). Like RHEL CentOS recommends that, unless you have a reason for doing otherwise, you should at least create the following partitions: swap, /boot/, and / (root). I suggest you read the CentOS installation and admin documentation, especially the "Introduction to Disk Partitions", "Managing Disk Storage" and the notes in the "Advice on Partitions" sections.
 
Old 04-05-2014, 10:32 AM   #11
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Quote:
Originally Posted by Sayajin View Post
2 ways i have found best.
Code:
/boot ext3 1000MB...
That is a huge /boot partition. Why? 50Mb is probably OK for most folks, possibly 100Mb would be better if those folks don't know to delete the old kernels they aren't using anymore. You are a factor of 10x or 20x above that. What do you store in /boot that takes so much space?
 
Old 04-05-2014, 11:30 AM   #12
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Original Poster
Rep: Reputation: Disabled
Also, what is your reason for using ext3? I had some problems a while back related to MySQL and ext4, and ended up doing the same thing.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
media server for centos ... recommend one? socalheel Linux - Software 3 10-11-2013 02:37 PM
Can soomeone recommend a USB WiFi adapter for Centos 6.4 (64-bit) server? shfyang Linux - Networking 2 07-13-2013 12:54 PM
GUI for Centos 6.2 basic server install zahid Linux - Newbie 3 06-25-2012 07:49 PM
[SOLVED] Setting up basic lamp server with CentOS 6, opinions for developer access? jraz Linux - Server 4 11-27-2011 07:42 AM
How to configure squid proxy server with basic user security. hocheetiong Linux - Server 5 03-17-2008 08:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration