Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Newbie > Adding an LVM partition

Forgot Password?
 Linux Newbie   If you're new to the wonderful world of Linux, start here!

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-03-2009   #1 (permalink)
Just Joined!
 
Mistoffeles's Avatar
 
Join Date: Jul 2006
Location: Northern BC, Canada
Posts: 50
Adding an LVM partition

Posting this here because it seems like a newbie question to me, I just want to see if I am doing this right as I haven't worked with LVM before.

I wanted to add an audit partition /var/log/audit to comply with a security benchmark, the premise being that auditd needs it to correctly calculate when its partition is out of space.

I used the following commands:

lvcreate -L 2048M n- LV16 VG0
(create a 2GB partition, volume "LV16" in my sequence of partitions, on volume group "VG0")

mkfs.ext3 /dev/VG0/LV16

mount /dev/VG0/LV16 /var/log/audit

Then I added this line to fstab to make it permanent:

/dev/VG0/LV16 /var/log/audit ext3 defaults 1 2

Am I gold now or did I mess something up?
Mistoffeles is offline  


Reply With Quote
Old 07-03-2009   #2 (permalink)
Just Joined!
 
Mistoffeles's Avatar
 
Join Date: Jul 2006
Location: Northern BC, Canada
Posts: 50
Also a quick question:

When I do a vgdisplay, I get this error:

/dev/hdb: open failed: No medium found

but then vgdisplay goes on to list all the logical volumes in the volume group as expected.

This was so even before my tampering as per the OP above. This is a new system, so everything was done by Anaconda or programs called from it as the system (RHEL 5.3) was installed.
Mistoffeles is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 02:30 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2