LinuxQuestions.org
Review your favorite Linux distribution.
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 06-23-2011, 04:12 AM   #1
DarkSlayer
Member
 
Registered: Apr 2008
Location: Tbilisi , Georgia
Distribution: Fedora, CentOS
Posts: 65

Rep: Reputation: 19
Question How to separate single LVM partition "/" ?


Hi there.
I have installed my server running centos 5.6 on single LVM partiton

scheme is luke this:
/boot - ext3
Volume Group
- System LV - /
- Swap LV - swap

how can i separate devide root partition on several partition for separate directories like

Volume Group
- System - /
- Home - /home
- Var - /var
- Swap - swap

Is there any chance to do this ?
also is there are basic recomendations for server partition sizes ? i will have mail server and virtual host there in /home vmail and vhost
is it ok: 10gb - /; 20gb - /var; 200gb - /home ?

of course after doing separate LVM partitions i can expand them in future, but what are basics ?
 
Old 06-23-2011, 05:17 AM   #2
nooneknowme
Member
 
Registered: Feb 2008
Location: Bangalore, India
Posts: 66

Rep: Reputation: 4
You can use the lvreduce command. But using it in / can be risky. If it's a new server, why not reinstall the OS and create partitions at install time as you want it to.

The size of the partitions depends on your requirements. No one other than you can analyze that.
 
Old 06-23-2011, 06:01 AM   #3
DarkSlayer
Member
 
Registered: Apr 2008
Location: Tbilisi , Georgia
Distribution: Fedora, CentOS
Posts: 65

Original Poster
Rep: Reputation: 19
Cool

Thanks for ur response.
I got whole idea about resizing and moving with LVM after reading several article found through google.
I don't want to reinstall whole OS, it's to easy.
Such situations are good to learn some specific tools and tricks, LVM usage in this case.


Quote:
Originally Posted by nooneknowme View Post
You can use the lvreduce command. But using it in / can be risky. If it's a new server, why not reinstall the OS and create partitions at install time as you want it to.

The size of the partitions depends on your requirements. No one other than you can analyze that.
 
Old 06-23-2011, 06:19 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,111

Rep: Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985
Conceptually, LVM doesn't matter at all. Create new lv's for whatever you want to split out. Add pv's in need - this is one advantage of LVM.
To actually move the data is no different to a non-LVM environment. Probably best done from a rescue/liveCD setup for safety.
LVM does offer an advantage if you do have to shrink the lv to create room for the new lv's.
tlpd.org has a good LVM how-to.

As for size(s) - who knows; check your current allocation and add some "fudge factor" - say 30-50%.
 
  


Reply

Tags
lvm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Karmic 9.10 with separate /home partition caused "Could not update ICEauthority" shy_guest Ubuntu 5 01-05-2012 02:09 PM
[SOLVED] "C preprocessor "/lib/cpp" fails sanity check" every single time. masmddr Linux - Software 3 08-03-2010 10:37 AM
A single regex to match anything with ".aac" or ".mp3" at the end ? lumix Linux - General 9 05-09-2008 01:11 AM
fdisk reports odd "Start "and "End" sectors on single partition eponymous Linux - Software 3 10-01-2007 03:41 PM
FC3 rescue disc won't mount "Linux LVM" partition anymore. coolingtower Linux - General 0 01-23-2005 03:43 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration