[linux-lvm] Creating a new partition /dev/hda5

Dieter Stüken stueken at conterra.de
Tue Apr 18 11:37:28 UTC 2006

faryalb at telus.net wrote:
> I have Fedora Core4 installed on my machine and trying to make mythtv work for
> me. I understand I need to create a new partition /dev/hda5 and mount /video
> file system. I've done some reading on LVM and come up with following commands
> to install the new partition on my machine. I need to have them verified by
> experts as I don't want to risk losing any data on my hard. 
> #pvcreate /dev/hda5
> #vgcreate VolGroup00 /dev/hda5
> #lvcreate -L50G -name video VolGroup00
> #mount /dev/hda5/video
> #mount -0 remount,resize /video

Seems your understanding of logical volumes and partitions is a bit 
confused. First you have a physical disk (/dev/hda). Your "fdisk -l" 
shows me, that you have divided (partitioned) your disk into two 
partitions hda1 and hda2, where hda2 contains your LVM data.

So, you won't think about any additional partitions, because there is no 
space left next to hda1 and hda2. But you want to distribute the disk 
space within your volume group (named VolGroup00, located within hda2). 
This has nothing to do with "partitions" any more. Instead you create a 
"logical volume" (lv) named "video", which is a part of your volume 
group. Thus its device path becomes "/dev/VolGroup00/video". Before you 
can mount it, you have to "format" this volume (see mkfs).

However, your "vgdisplay" shows me, that you already used all space of 
your volume grop (Free  PE / Size 1 / 32.00 MB), too. So it seems you 
already performed some "vgcreate" and "lvcreate".
Can you please do a "lvdisplay" or "lvs" to show us the current content 
of your VolGroup00.

What do you intend using "-O remount,resize"?

Dieter Stüken, con terra GmbH, Münster
     stueken at conterra.de

More information about the linux-lvm mailing list