All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Brueggeman <steve_brueggeman@notes.seagate.com>
To: linux-lvm@msede.com
Subject: [linux-lvm] Problems with LVM 0.6
Date: Thu, 04 Mar 1999 11:25:23 -0600	[thread overview]
Message-ID: <36DEC203.C9CCD889@notes.seagate.com> (raw)

First off, I had trouble compiling the tools.  I got a warning that
"LVM_BLK_MAJOR" was undeclared, when compiling
tools/lib/lvm_tab_get_free_blk_dev.c

Since I could not find any defination anywhere for LVM_BLK_MAJOR, I
assumed that some sort of name change was not properly propegated, and
renamed all occurances of "LVM_BLK_MAJOR" to "LVM_BLOCK_MAJOR" in
tools/lib/lvm_tab_get_free_blk_dev.c, and the compile completed
successfully.

However,
I am now having problems when creating a second Logica volume.  These
are the steps I took

Using fdisk, created  3 partitions, /dev/sdb2, /dev/sdb3, and /dev/sdb4,
and set the partition type to FE. (Note that /dev/sdb1 is a swap
partition).

pvcreate /dev/sdb[23]
vgcreate test_vg /dev/sdb[23]
lvcreate -L1500 -nlv1 test_vg
mke2fs /dev/test_vg/lv1
(this created a very small filesystem.  Apperently the -L is not
assuming a size modifier of Megabyte)

I deleted the test logical volume with
lvremove -f /dev/test_vg/lv1

and created two new logical volumes with

lvcreate -L1500M -nlv1 test_vg
lvcreate -L3G -nlv2 test_vg
mke2fs /dev/test_vg/lv1
mke2fs /dev/test_vg/lv2

mount /dev/test_vg/lv1 /mnt1 
suceeded, but
mount /dev/test_vg/lv2 /mnt2
said that either lv2 or mnt2 was already mounted

I did a ls -l of /dev/test_vg and have the following

total 0
crw-r-----   1 root     root     109,   0 Mar  4 10:54 group
brw-r-----   1 root     root      58,   0 Mar  4 10:55 lv1
brw-r-----   1 root     root      58,   0 Mar  4 10:56 lv2

Why do lv1 and lv2 have the exact same major and minor values???  
Is this related to my possibly incorrect assumption above that
LVM_BLK_MAJOR needed to be renamed to LVM_BLOCK_MAJOR????

Has anybody else seen problems like this? 
Or is it something that I've done wrong?  
Anybody out there who can help me?


Steve Brueggeman
steve_brueggeman@notes.seagate.com
stevebr@primenet.com

             reply	other threads:[~1999-03-04 17:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-04 17:25 Steve Brueggeman [this message]
1999-03-05 10:40 ` [linux-lvm] Problems with LVM 0.6 Klaus Strebel
  -- strict thread matches above, loose matches on Subject: below --
1999-03-05 20:59 Steve_J_Brueggeman

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=36DEC203.C9CCD889@notes.seagate.com \
    --to=steve_brueggeman@notes.seagate.com \
    --cc=linux-lvm@msede.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.