Creating a new partition /dev/hda5
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
Below is the information on my machine:
[root@localhost mytv]# /sbin/lvm.static vgscan
Reading all physical volumes. This may take a while... Found volume group "VolGroup00" using metadata type lvm2
[root@localhost mytv]# /sbin/lvm.static vgdisplay
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2 Metadata Areas 1 Metadata Sequence No 3 VG Access read/write VG Status resizable MAX LV 0 Cur LV 2 Open LV 2 Max PV 0 Cur PV 1 Act PV 1 VG Size 111.69 GB PE Size 32.00 MB Total PE 3574 Alloc PE / Size 3573 / 111.66 GB Free PE / Size 1 / 32.00 MB VG UUID xdWgpi-74QQ-jgfK-EAzc-ojid-Geuo-HsyGA4
[root@localhost mytv]# /sbin/fdisk -l
Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/hda1 * 1 13 104391 83 Linux /dev/hda2 14 14593 117113850 8e Linux LVM
Please let me know if the above commands are correct or not.
Thanks,
Bita
Quoted 7 lines · [email protected] 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/hda5and 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.
Quoted 5 lines
#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.
Signature · 4 lines
Dieter St�ken, con terra GmbH, M�nster
[email protected]
http://www.conterra.de/
(0)251-7474-501