CentOS Icon CentOS Logo
CentOS Text
   
  
Home > FAQ > CentOS 4 Specific FAQ

Requested and Answered by Johnny Hughes [hughesjr] on 25-Jan-2006 20:42 (26960 reads)
How do I use LVM2 with CentOS-4?
The basic answer is that you create Physical Volumes (PVs) using pvcreate and then either create or extend Volume Groups (VGs) with with the PVs, the commands for this are vgextend, vgcreate, vgremove among others.

Next you would create or extend Logical Volumes (LVs) in the VGs. The commands for that are lvcreate, lvextend, lvremove.

Once you have taken care of the LVs, you would extend the file system (ext2 or ext3) using the ext2online command.

Here are some detailed references with examples for using LVM2 on ext3:

The Linux Logical Volume Manager

Getting started with EL4's built-in LVM tools

TLDP LVM HOWTO

3 Comment(s) Print Q&A Send Q&A

The comments are owned by the poster. We aren't responsible for their content.

Poster Thread
kieranmullen
Posted: 2006/2/8 23:20  Updated: 2006/2/8 23:20
Peeking in the Member Window
Joined: 2005/9/5
From:
Posts: 18
 Repair Utilities
Any idea of any repair utilities for lmv2 ?

I had a drive crash. I believe that the / partition may be corrupted. It boots up partway.

KM

Poster Thread
hughesjr
Posted: 2006/2/13 12:15  Updated: 2006/2/13 12:15
WebMaster
Joined: 2004/12/5
From: Corpus Christi, Texas, USA
Posts: 401
Online!
 Re: Repair Utilities
I am not an LVM2 expert .. but I would think that as long as the PVs, VGs, and LVs are still properly defined that you would use normal file system tools (like fsck.ext3) to solve file system errors on the LVM members.

Poster Thread
Unregistered Visitor
Posted: 2009/11/11 2:23  Updated: 2009/11/11 2:23
 No title




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com