LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Closed Thread
  Search this Thread
Old 02-20-2010, 06:24 AM   #1
jholp
LQ Newbie
 
Registered: Jan 2010
Posts: 13

Rep: Reputation: 0
Need separate /var partition


I have built a machine with Red Hat 5.2

No important information on the new hard drive.

Want to rebuild the system with a separate partition for capturing auditing log infomation. The /var partition should be separate, according to some, so that the log information cannot fill the system disk space.

I have the "create custom layout screen" up. The only drive is a 1 terabyte with VolGroup00 is at 953760 MB
LogVol01 swap is at 1984 MB
LogVol00 ext3 is at 951776 MB

My thoughts are to create a separate partition say at 100000 MB for /var

Which would drop LogV0100 ext3 back to 851776 MB
I am not familiar with this disk partioning utility.

Can you walk me through the seps?

I can call you and walk through the steps together if that is better?


Thanks,

John

[MODERATED]

Last edited by unSpawn; 02-20-2010 at 09:03 AM. Reason: //Removed phone number
 
Old 02-20-2010, 09:11 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Still need /var separate partition

Quote:
Originally Posted by jholp View Post
I am not familiar with this disk partioning utility.
Have a look at Red Hat > Manuals > Enterprise Linux Documentation > Installation Guide > 4.19. Partitioning Your System. BTW I removed your phone number, better not display it.
 
Old 02-20-2010, 12:11 PM   #3
jholp
LQ Newbie
 
Registered: Jan 2010
Posts: 13

Original Poster
Rep: Reputation: 0
Still need /var separate partition

Okay, I got one response but don't seem to be doing so good.

My machine has 2 GB of RAM
1 TB hard drive.

I select "create custom layout" during installation from CD

LVM Volume Groups 953760
LogVol00 ext3 951776
LogVol07 swap 1984


Hard Drive
size start end
/dev/sda1 ext3 101 1 13
/dev/sda2 LVMPV 953765 14 121601


I want to make a /var partition to dump log activities into
I am thinking 1000 MB ??

Do I delete /dev/sda2?
recreate /dev/sda2 with a size of 853765
create /var with a size of 100000 ?

I am just having problems with the Disk Druid

It appears that when I create /var the message is there is not
disk space ?


Thanks,

John
 
Old 02-20-2010, 12:29 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
You've got partitions and LVM volumes mixed up (or don't have any experience of LVM in the first place). don't touch sda2, instead just reduce the size of the / LV and then add in /var. They will both go inside a single partition, under LVM management.

you CAN delete sda2 and create a totally seperate sda2 and sda3 for / and /var respectively, but there's no need to.
 
Old 02-20-2010, 01:52 PM   #5
jholp
LQ Newbie
 
Registered: Jan 2010
Posts: 13

Original Poster
Rep: Reputation: 0
I realize I am spastic relative to this operation but --

I am looking at LVM Volume Groups
LolGroup00 953760
LogVol01 swap 1984
LogVo100 ext3 951776

My choices accross the top are

New Edit Delete Reset Raid LVM

I think I want to reduce ext3 to 851776 ?

Then create /var with a size of 100000 ?

If I select edit it is asking for a mount point. How do I reduce 951776 to 851776 ?

Please be patinet with me


Thanks,

John
 
Old 02-20-2010, 03:23 PM   #6
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
Go to System -> Administration - > Logical Volume Managment and there do what @acid_kewpie said.

Also, pleas do not create duplicated posts, just reply to the one you created.

Last edited by DrLove73; 02-20-2010 at 03:26 PM.
 
Old 02-20-2010, 03:25 PM   #7
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
This a duplicate thread, best to delete it.
 
Old 02-20-2010, 04:05 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yep, reduce logvol00 by 1gb, keeping its mountpoint as /, then create logvol02 as ext3, var.
 
Old 02-21-2010, 02:15 AM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Please report duplicate threads only using the Report button and please supply the dupe link. TIA.
 
Old 02-21-2010, 06:42 AM   #10
jholp
LQ Newbie
 
Registered: Jan 2010
Posts: 13

Original Poster
Rep: Reputation: 0
Close but no cigar

Okay here is what the Disk Druid screen looks like now

VolGroup00 953760
LogVo100 / ext3 851776
LogVol01 swap 1984
LogVol02 /var ext3 100000


However, the disk utility shows the critical error;
"Bootable partitions cannot be on a logical volume."

So I think I am very close as I have the 100000 /var partition to dump
my logging info into. The 1984 swap was set by the utility and the remainder of 851776 is usable system wide during the build.

Is the problem that I have two references to ext3 ?

I thank you for your patience. This is my second post - I'll delete the first post if I can figure out how to do that too.

John
 
Old 02-21-2010, 06:51 AM   #11
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
Old 02-21-2010, 08:43 AM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you deleted sda1 as well as sda2? sda1 would be the /boot parition, outside of LVM. If you haven't deleted it, make sure you've defined it to be /boot as well.
 
Old 02-21-2010, 03:19 PM   #13
jholp
LQ Newbie
 
Registered: Jan 2010
Posts: 13

Original Poster
Rep: Reputation: 0
wonderful, Wonderful, WONDERFUL

The disk is partitioned just as I wanted now.

The SECSCN scanner shows no HIGH Failures and no LOW Failures, some MEDIUM Failures but manageable.

I'll try to be a better guest in the future.


Thanks,

John
 
  


Closed Thread



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
Keep OS on a separate partition from data Tomás Ó hÉilidhe Linux - General 3 12-02-2008 05:53 AM
/var as a separate partition jong357 Slackware 18 12-24-2007 01:29 AM
Problem moving /var to separate partition a550ee Linux - Newbie 6 10-02-2007 03:09 PM
fstab for separate /home /usr /var /boot /etc and / mariogarcia Debian 2 02-24-2007 03:28 PM
Moving contents of /var to separate partition TexasDex Linux - Software 2 03-01-2004 08:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:31 AM.

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