Results 1 to 2 of 2
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.
...
- 07-03-2009 #1
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?
- 07-03-2009 #2
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.


Reply With Quote
