Linux LVM users
 help / color / mirror / Atom feed
From: Peter Green <pcg@gospelcom.net>
To: linux-lvm@msede.com
Subject: [linux-lvm] LVM and sw RAID1
Date: Wed, 23 Aug 2000 16:29:57 -0400	[thread overview]
Message-ID: <20000823162957.B8398@gospelcom.net> (raw)

I am having a really difficult time being able to get LVM to recognize my
/dev/md[012] arrays. The system:

  (pcg@dmna) ~> uname -a
  Linux dmna 2.4.0-0.21 #2 Wed Aug 23 11:46:12 EDT 2000 i686 unknown
  
  (pcg@dmna) ~> cat /proc/lvm
  LVM driver version 0.8final  (15/02/2000)

  Total:  0 VGs  0 PVs  0 LVs (0 LVs open)
  Global: 143 bytes malloced   IOP version: 6   4:01:56 active
  
  (pcg@dmna) ~> cat /proc/mdstat 
  Personalities : [linear] [raid0] [raid1] [raid5] 
  read_ahead 1024 sectors
  md2 : active raid1 sdg1[1] sdd1[0]
        17920384 blocks [2/2] [UU]
	      
  md1 : active raid1 sdf1[1] sdc1[0]
        35840896 blocks [2/2] [UU]

  md0 : active raid1 sde1[1] sdb1[0]
        17936448 blocks [2/2] [UU]

(User-space tools are 0.8final+0.8final-2 patch. /dev/sda is on a BusLogic
BT-958, while sd[b-g] are on two separate channels of an Adaptec 39160.)
Here is the symptom:

  (pcg@dmna) ~> sudo pvcreate /dev/md0
  pvcreate -- invalid partition type 0x83 for "/dev/md0" (must be 0x8e)

  (pcg@dmna) ~> sudo pvcreate /dev/md1
  pvcreate -- invalid partition type 0x83 for "/dev/md1" (must be 0x8e)

  (pcg@dmna) ~> sudo pvcreate /dev/md2
  pvcreate -- can't use DOS extended partition "/dev/md2"

Just for completeness:

  (pcg@dmna) ~> sudo pvcreate -f /dev/md0
  pvcreate -- invalid partition type 0x83 for "/dev/md0" (must be 0x8e)

  (pcg@dmna) ~> sudo pvcreate -ff /dev/md0
  pvcreate -- invalid partition type 0x83 for "/dev/md0" (must be 0x8e)

  (pcg@dmna) ~> sudo pvcreate -f /dev/md1
  pvcreate -- invalid partition type 0x83 for "/dev/md1" (must be 0x8e)

  (pcg@dmna) ~> sudo pvcreate -ff /dev/md1
  pvcreate -- invalid partition type 0x83 for "/dev/md1" (must be 0x8e)

  (pcg@dmna) ~> sudo pvcreate -f /dev/md2
  pvcreate -- can't use DOS extended partition "/dev/md2"

  (pcg@dmna) ~> sudo pvcreate -ff /dev/md2
  pvcreate -- can't use DOS extended partition "/dev/md2"

What I don't understand is how those partition types got associated with my
/dev/md? devices. Some more output:

  (pcg@dmna) ~> sudo lvmdiskscan 
  lvmdiskscan -- reading all disks / partitions (this may take a while...)
  lvmdiskscan -- /dev/sda1 [      15.66 MB] Primary  LINUX native partition [0x83]
  lvmdiskscan -- /dev/sda2 [       8.53 GB] DOS extended partition [0x5]
  lvmdiskscan -- /dev/sda5 [     258.83 MB] Extended LINUX swap partition [0x82]
  lvmdiskscan -- /dev/sda6 [       8.28 GB] Extended LINUX native partition [0x83]
  lvmdiskscan -- /dev/sdb1 [      17.11 GB] Primary   [0xFD]
  lvmdiskscan -- /dev/sdc1 [      34.18 GB] Primary   [0xFD]
  lvmdiskscan -- /dev/sdd1 [      17.09 GB] Primary   [0xFD]
  lvmdiskscan -- /dev/sde1 [      17.11 GB] Primary   [0xFD]
  lvmdiskscan -- /dev/sdf1 [      34.18 GB] Primary   [0xFD]
  lvmdiskscan -- /dev/sdg1 [      17.09 GB] Primary   [0xFD]
  lvmdiskscan -- /dev/md1  [      15.66 MB] Primary  LINUX native partition [0x83]
  lvmdiskscan -- /dev/md2  [       8.53 GB] DOS extended partition [0x5]
  lvmdiskscan -- 7 disks
  lvmdiskscan -- 0 whole disks
  lvmdiskscan -- 0 loop devices
  lvmdiskscan -- 0 multiple devices
  lvmdiskscan -- 0 network block devices
  lvmdiskscan -- 10 partitions
  lvmdiskscan -- 0 LVM physical volume partitions

As you can see, there are some pretty weird entries for /dev/md[12] and
*nothing* for /dev/md0. lvmdiskscan also doesn't detect any multiple
devices, which doesn't seem right. (/dev/md0 and /dev/md2 are mirrors of two
18GB disks, while /dev/md1 is a mirror of two 36GB disks.) Interestingly
(and I just noticed this) the output for /dev/md1 matches that of /dev/sda1,
while the output for /dev/md2 matches /dev/sda2.

Any idea of what's going on and how to fix it? Is there any other
information I can provide to help?

Thanks!

/pg
-- 
Peter Green : Gospel Communications Network, SysAdmin : pcg@gospelcom.net
---
> > Other than the fact Linux has a cool name, could someone explain why I
> > should use Linux over BSD?
>
> No.  That's it.  The cool name, that is.  We worked very hard on
> creating a name that would appeal to the majority of people, and it
> certainly paid off: thousands of people are using linux just to be able
> to say "OS/2? Hah.  I've got Linux.  What a cool name".  386BSD made the
> mistake of putting a lot of numbers and weird abbreviations into the
> name, and is scaring away a lot of people just because it sounds too
> technical.
(Linus Torvalds' follow-up to a question about Linux)

             reply	other threads:[~2000-08-23 20:29 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-23 20:29 Peter Green [this message]
2000-08-23 22:00 ` [linux-lvm] LVM and sw RAID1 Andreas Dilger
2000-08-23 23:48   ` Peter Green
2000-08-24  0:02     ` Andreas Dilger
2000-08-24  2:43       ` Peter Green
2000-08-24 18:58         ` Andreas Dilger
2000-08-24  9:19 ` Nils Juergens
2000-08-24 11:59   ` Peter Green
2000-08-24 12:30   ` Peter Green
2000-08-24 13:39     ` Luca Berra
2000-08-24 19:00     ` Nils Juergens
2000-08-24 10:46 ` Luca Berra
2000-08-24 17:47   ` Andreas Dilger
2000-08-24 18:04     ` Luca Berra
2000-08-24 22:46       ` Ragnar Kjørstad
2000-08-26  0:39 ` Peter Green
2000-09-01 12:33   ` Jan Niehusmann
2000-09-01 12:35     ` Peter Green
  -- strict thread matches above, loose matches on Subject: below --
2000-08-24  0:45 Andreas Dilger
2000-08-24 10:37 Peter.Wuestefeld
2000-08-24 11:57 ` Peter Green

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=20000823162957.B8398@gospelcom.net \
    --to=pcg@gospelcom.net \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox