linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: "Dieter Stüken" <stueken@conterra.de>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Creating a new partition /dev/hda5
Date: Tue, 18 Apr 2006 13:37:28 +0200	[thread overview]
Message-ID: <4444CF78.6090003@conterra.de> (raw)
In-Reply-To: <1144902347.443dd2cb12d49@webmail.telus.net>

faryalb@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.
-- 
Dieter St�ken, con terra GmbH, M�nster
     stueken@conterra.de
     http://www.conterra.de/
     (0)251-7474-501

      reply	other threads:[~2006-04-18 11:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-13  4:25 [linux-lvm] Creating a new partition /dev/hda5 faryalb
2006-04-18 11:37 ` Dieter Stüken [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4444CF78.6090003@conterra.de \
    --to=stueken@conterra.de \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).