Linux LVM users
 help / color / mirror / Atom feed
* Re: [linux-lvm] LVM and sw RAID1
@ 2000-08-24 10:37 Peter.Wuestefeld
  2000-08-24 11:57 ` Peter Green
  0 siblings, 1 reply; 21+ messages in thread
From: Peter.Wuestefeld @ 2000-08-24 10:37 UTC (permalink / raw)
  To: Andreas Dilger; +Cc: linux-lvm, owner-linux-lvm, Peter Green

[-- Attachment #1: Type: text/plain, Size: 1912 bytes --]

Hi,

I think you are trying to cure the wrong disease ;-)

> [root@dmna /root]# pvcreate -f /dev/md0
> pvcreate -- invalid partition type 0x83 for "/dev/md0" (must be 0x8e)

shows what is wrong:

try to set the partition id to 0x8e with fdisk/sfdisk/cfdisk - that should 
solve the problem.

HTH,

Peter

Mit freundlichem Gruss/Best Regards

Peter Wuestefeld
IBM Certified System Administrator AIX 4.3
IBM Certified Support Professional AIX 4.3
==================================
res nova Unternehmensberatung GmbH
                   ...aktiv in AIX
MAIL:  Ruppmannstrasse 41
       D-70565 Stuttgart, Germany
FON:   +49 711 78888 0
FAX:   +49 711 78888 99
WWW:   http://www.resnova.de
SMTP: mailto: Peter.Wuestefeld@resnova.de

Computers are useless. They can only give you answers.
        -- Pablo Picasso




Andreas Dilger <adilger@turbolinux.com>
Sent by: owner-linux-lvm@msede.com
24.08.00 02:02

 
        To:     Peter Green <pcg@gospelcom.net>
        cc:     Andreas Dilger <adilger@turbolinux.com>, linux-lvm@msede.com
        Subject:        Re: [linux-lvm] LVM and sw RAID1

Peter writes:
> [root@dmna /root]# pvcreate /dev/md0
> pvcreate -- invalid partition type 0x83 for "/dev/md0" (must be 0x8e)
> 
> [root@dmna /root]# pvcreate -f /dev/md0
> pvcreate -- invalid partition type 0x83 for "/dev/md0" (must be 0x8e)
> 
> [root@dmna /root]# pvcreate -ff /dev/md0
> pvcreate -- invalid partition type 0x83 for "/dev/md0" (must be 0x8e)

Have you tried running "pvcreate -v -d /dev/md0"?  It may be that you
get some more clues with this.  Maybe even strace of the above.  It
looks like pvcreate is not getting the correct "dev" or "rdev" from the
inode...

Cheers, Andreas
-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert



[-- Attachment #2: Type: text/html, Size: 3395 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: [linux-lvm] LVM and sw RAID1
@ 2000-08-24  0:45 Andreas Dilger
  0 siblings, 0 replies; 21+ messages in thread
From: Andreas Dilger @ 2000-08-24  0:45 UTC (permalink / raw)
  To: Linux LVM mailing list

I was just checking out pvcreate on my system, and it seems that LVM is doing
a bit more than it really should.  It appears that pv_get_size is actually
reading the partition table from the disk, but shouldn't this be left to
other code in the kernel (e.g. /proc/partitions or BLKGETSIZE ioctl)?

With the growing number of partition types that Linux supports, it makes
no sense for LVM to be doing things like this...

Cheers, Andreas

^ permalink raw reply	[flat|nested] 21+ messages in thread
* [linux-lvm] LVM and sw RAID1
@ 2000-08-23 20:29 Peter Green
  2000-08-23 22:00 ` Andreas Dilger
                   ` (3 more replies)
  0 siblings, 4 replies; 21+ messages in thread
From: Peter Green @ 2000-08-23 20:29 UTC (permalink / raw)
  To: linux-lvm

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)

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2000-09-01 12:35 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-08-24 10:37 [linux-lvm] LVM and sw RAID1 Peter.Wuestefeld
2000-08-24 11:57 ` Peter Green
  -- strict thread matches above, loose matches on Subject: below --
2000-08-24  0:45 Andreas Dilger
2000-08-23 20:29 Peter Green
2000-08-23 22:00 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox