All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: grub-devel@gnu.org
Cc: Thomas Stewart <thomas@stewarts.org.uk>,
	422851@bugs.debian.org, Sam Morris <sam@robots.org.uk>,
	422851-forwarded@bugs.debian.org
Subject: "grub-probe -t partmap" doesn't work with software RAID
Date: Wed, 9 May 2007 18:13:44 +0200	[thread overview]
Message-ID: <20070509161344.GA25183@aragorn> (raw)
In-Reply-To: <1178725065.4102.65.camel@xerces>


Hi,

I'm forwarding you a bug report from Debian.  It seems that the grub-probe
-t partmap feature I just added doesn't play nice with RAID.  Unfortunately,
I have no idea how software RAID is implemented.  Is it okay to just exit
succesfuly and install core.img without any partmap module?

On Wed, May 09, 2007 at 04:37:45PM +0100, Sam Morris wrote:
> On Wed, 2007-05-09 at 17:16 +0200, Robert Millan wrote:
> > On Wed, May 09, 2007 at 03:02:48PM +0100, Sam Morris wrote:
> > > 
> > > Yes, "grub-probe: error: Cannot detect partition map for md0". The
> > > message doesn't appear when grub-pc's postinst is run, however.

Note to GRUB maintainers: earlier this caused a segfault.  I fixed it in
CVS to print that error instead.

> > > > Also, what is the result of "parted /dev/md0 print" ?
> > > 
> > >         Disk /dev/md0: 300GB
> > >         Sector size (logical/physical): 512B/512B
> > >         Partition Table: loop
> >                            ^^^^
> > This means there's indeed no partition table, just a filesystem.
> > 
> > Did you install Debian on purpose without creating any partition table, or is
> > this just the normal result when using software RAID?  What does parted say
> > about your real disk(s)?
> 
> Interesting. This system has been installed for quite a few years; I
> moved it to raid1 by hand.
> 
> The system has several disks; md0 consists of hdb2 and hdg2. Here's what
> parted says about hdb:
> 
>         Disk /dev/hdb: 300GB
>         Sector size (logical/physical): 512B/512B
>         Partition Table: msdos
>         
>         Number  Start   End    Size   Type     File system  Flags
>          1      32.3kB  543MB  543MB  primary                    
>          2      543MB   300GB  300GB  primary  ext3         raid 
> 
> When you say there is no partition table, I guess you mean inside md0
> itself? AFAIR, the array was created before partitionable md arrays were
> added to Linux... or at least before mdadm had the option to create
> them.
> 
> I just ran this on a system that uses RAID which I created with the etch
> installer:
> 
>         Disk /dev/md8: 57.5MB
>         Sector size (logical/physical): 512B/512B
>         Partition Table: loop
>         
>         Number  Start   End     Size    File system  Flags
>          1      0.00kB  57.5MB  57.5MB  ext3              
> 
> Which appears to confirm my belief that partitionable arrays are unusual
> rather than the default.

-- 
Robert Millan

My spam trap is honeypot@aybabtu.com.  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.



       reply	other threads:[~2007-05-09 16:19 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1178710623.4102.37.camel@xerces>
     [not found] ` <20070509135853.GA31878@aragorn>
     [not found]   ` <1178719368.4102.48.camel@xerces>
     [not found]     ` <20070509151643.GB16077@aragorn>
     [not found]       ` <1178725065.4102.65.camel@xerces>
2007-05-09 16:13         ` Robert Millan [this message]
     [not found]           ` <1179004601.3922.4.camel@xerces>
     [not found]             ` <1179054146.4014.9.camel@xerces>
2007-05-13 16:44               ` "grub-probe -t partmap" doesn't work with software RAID Robert Millan
2007-05-18  6:51                 ` Robert Millan
     [not found]                   ` <1179535793.4466.3.camel@xerces>
2007-05-19  9:33                     ` Bug#422851: " Robert Millan
     [not found]                       ` <1179575266.4466.5.camel@xerces>
2007-05-19 12:10                         ` Robert Millan
     [not found]                           ` <1179580232.4542.8.camel@xerces>
2007-05-19 14:08                             ` Robert Millan
     [not found]                               ` <1179585253.4270.1.camel@xerces>
2007-05-19 15:32                                 ` fallback for "grub-probe -t partmap" failures Robert Millan
2007-05-19 16:01                                   ` Sam Morris
     [not found]                             ` <1179584038.4145.10.camel@xerces>
2007-05-19 15:51                               ` problem with RAID and LBA addressing Robert Millan
     [not found]                                 ` <1179590781.4270.28.camel@xerces>
2007-05-19 16:45                                   ` Robert Millan
2007-05-19 17:51                                     ` Yoshinori K. Okuji
2007-05-20  7:12                                       ` Robert Millan
2007-05-21 13:25                                     ` Amin Azez
2007-05-21 13:44                                       ` Sam Morris
2007-05-21 11:08                               ` Bug#423022: Bug#422851: "grub-probe -t partmap" doesn't work with software RAID Jeroen Dekkers
2007-05-21 12:23                                 ` Sam Morris
2007-05-21 13:13                                   ` Jeroen Dekkers
2007-05-21 18:35                                     ` Sam Morris

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=20070509161344.GA25183@aragorn \
    --to=rmh@aybabtu.com \
    --cc=422851-forwarded@bugs.debian.org \
    --cc=422851@bugs.debian.org \
    --cc=grub-devel@gnu.org \
    --cc=sam@robots.org.uk \
    --cc=thomas@stewarts.org.uk \
    /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.