Re: A Newbie LVM Question
On Wed, Mar 03, 2004 at 02:42:30PM -0500, stan wrote:
> On Wed, Mar 03, 2004 at 09:37:06AM +0100, Erich Waelde wrote:
> Content-Description: message body text
> >
> > Hi,
> >
> > stan <stanb@panix.com> wrote:
> >
> > > I've played with LVM on HP-UX, but only just enough to get a firm
> > > handle on the fact that I don't understand the complexities of it,
> > > and that is easy to screw up, but hard to fix :-)
> > >
> > > So, I find myself building a Debian MytTV machine. In addition
> > > to the 40G root drive, I installed 2 other drives, a 60G (/dev/hdb),
> > > and a 120G (/dev/hdd).
> > >
> > > What I want to do is create one large "virtual disk" out of these,
> > > then I will then create a XFS filesystem on and use to store various
> > > multimedia files for mythtv. I want the disks to be "striped" if
> > > that is possible with different size disks?
> > >
> > > I've installed the lvm (1) packages, and I've read the HOWTO.
> > > Here is what I came up with:
> > >
> > > fdisk both disks, creating a single partition on each one of type 8e
> > >
> > > pvcreate /dev/hdb1
> > > pvcreate /dev/hdd1
> > >
> > > vgcreate mythtv /dev/hdb1 /dev/hdd1
> > >
> > > And then I should be ready to create a filesystem on this "virtual
> > > disk".
> >
> > Not quite. You need to run
> >
> > lvcreate -L <size> -n <name> <vgname>
> > e.g.
> > lvcreate -L 180 GB -n lvol1 mythtv
> >
>
> Well, that did not go as well as expected :-(
>
> The 2 pvcreates worked fine, but the vgcreate reurned an error:
>
> root@mythtv2:~ # vgcreate mythtv /dev/hdb1 /dev/hdd1
> vgcreate -- INFO: using default physical extent size 32 MB
> vgcreate -- INFO: maximum logical volume size is 2 Terabyte
> vgcreate -- ERROR "lvm_tab_read(): size" inserting volume group "mythtv"
> into "/etc/lvmtab"
>
> What do I need to do now?
>
I made a little more progress on this last night. I was able to actually
create a working lvm, and format it as XFS (I do think I left some rements
of a bad atempt laying aroud BTW, is it safe to just rmmive these traces?).
In any case, when I rebooted that machine the new lvm parition did not
mount (yes I put it in /etc/fstab)/ Atempts to mount it by had result in a
message about it not being "active".
What am I doing wrong?
--
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
-- Benjamin Franklin
Reply to: