Bug#392764: partman: [powerpc] RAID support is broken on powermac hardware (64bit, XServe G5)

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#392764: partman: [powerpc] RAID support is broken on powermac hardware (64bit, XServe G5)

Sven Luther-2
Package: partman
Version: 63
Severity: important


As the title says, an install on my XServe G5, with two brand new 320GB sata
disks, fails. I can manually setup the RAID partitions, but when i go into the
raid tool, it tells me something about the RAID flag not being found or
something.

This seems strange, as parted/mac has all the needed support for the RAID flag :

static int
_rawpart_is_raid (MacRawPartition* raw_part)
{
        if (strcmp (raw_part->type, "Linux_RAID") != 0)
                return 0;
        return 1;
}
static int
mac_partition_set_flag (PedPartition* part, PedPartitionFlag flag, int state)
{
...
        case PED_PARTITION_RAID:
                mac_data->is_raid = state;
                if (state)
                        strcpy (mac_data->system_name, "Linux_RAID");
                else
                        mac_partition_set_system (part, part->fs_type);
                return 1;
...
static int
mac_partition_get_flag (const PedPartition* part, PedPartitionFlag flag)
{
...
        case PED_PARTITION_RAID:
                return mac_data->is_raid;
static int
mac_partition_is_flag_available (
        const PedPartition* part, PedPartitionFlag flag)
{
...
        case PED_PARTITION_RAID:

Since this is consistently ok, i suppose there is some kind of brokeness in
the partman support.

If needed, i can provide full logs.

Friendly,

Sven Luther


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-powerpc
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#392764: partman: [powerpc] RAID support is broken on powermac hardware (64bit, XServe G5)

Frans Pop-3
On Friday 13 October 2006 13:43, Sven Luther wrote:
> As the title says, an install on my XServe G5, with two brand new 320GB
> sata disks, fails. I can manually setup the RAID partitions, but when i
> go into the raid tool, it tells me something about the RAID flag not
> being found or something.

That is not very helpful. Please provide exact error message.

Please add 'set -x' in /lib/partman/definitions.sh, reproduce error and
send full log (gzipped) to BR.

attachment0 (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#392764: partman: [powerpc] RAID support is broken on powermac hardware (64bit, XServe G5)

Sven Luther
On Fri, Oct 13, 2006 at 10:56:08PM +0200, Frans Pop wrote:
> On Friday 13 October 2006 13:43, Sven Luther wrote:
> > As the title says, an install on my XServe G5, with two brand new 320GB
> > sata disks, fails. I can manually setup the RAID partitions, but when i
> > go into the raid tool, it tells me something about the RAID flag not
> > being found or something.
>
> That is not very helpful. Please provide exact error message.

Well, it gives an idea, i had rebooted and am using the box for something else
right now, but i am investigating creating the array by hand on the running
system, after creating the partitions by hand with command line parted, to
make sure it is indeed something related to this.

That said, it is the message at the end of the raid creation process, can you
tell me where it may be, so i can investigate it myself ?

> Please add 'set -x' in /lib/partman/definitions.sh, reproduce error and
> send full log (gzipped) to BR.

Will do.

Friendly,

Sven Luther




--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#392764: partman: [powerpc] RAID support is broken on powermac hardware (64bit, XServe G5)

Sven Luther
In reply to this post by Frans Pop-3
On Fri, Oct 13, 2006 at 10:56:08PM +0200, Frans Pop wrote:
> On Friday 13 October 2006 13:43, Sven Luther wrote:
> > As the title says, an install on my XServe G5, with two brand new 320GB
> > sata disks, fails. I can manually setup the RAID partitions, but when i
> > go into the raid tool, it tells me something about the RAID flag not
> > being found or something.
>
> That is not very helpful. Please provide exact error message.

The exact message is :

Aucune partition de RAID disponible
Aucune partition de type << Linux RAID Autodetect >> n'est disponible.
Veuillez creer une partition de ce type ou supprimer un peripherique
multidisque deja utilise pour en liberer les partitions.

Si vous utilisez de telles partitions, elle contiennenrt peut-etre des
systemes de fichiers et ne peuvent donc pas etre utilisees par cet outil de
configuration.

Well, i was able to create the array by hand yesterday, and also to create an
array on part of the disk yesterday evening, but when i tried to create an
array at the end of the disk, it had some problem on the end of the first
disk, finding a partition of size 0 and exiting. So this may be related to
that, i am not sure where this comes from, if it is a hardware problem with my
disk (both are identic though, and brand new, need to check), or if it is a
strange bug in mdadm.

> Please add 'set -x' in /lib/partman/definitions.sh, reproduce error and
> send full log (gzipped) to BR.

Will provide, not sure if it will bring more info than the above
hand-investigated issue though.

Friendly,

Sven Luther




--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#392764: partman: [powerpc] RAID support is broken on powermac hardware (64bit, XServe G5)

Sven Luther
On Sat, Oct 14, 2006 at 09:41:21AM +0200, Sven Luther wrote:

> On Fri, Oct 13, 2006 at 10:56:08PM +0200, Frans Pop wrote:
> > On Friday 13 October 2006 13:43, Sven Luther wrote:
> > > As the title says, an install on my XServe G5, with two brand new 320GB
> > > sata disks, fails. I can manually setup the RAID partitions, but when i
> > > go into the raid tool, it tells me something about the RAID flag not
> > > being found or something.
> >
> > That is not very helpful. Please provide exact error message.
>
> The exact message is :
>
> Aucune partition de RAID disponible
> Aucune partition de type << Linux RAID Autodetect >> n'est disponible.
> Veuillez creer une partition de ce type ou supprimer un peripherique
> multidisque deja utilise pour en liberer les partitions.
>
> Si vous utilisez de telles partitions, elle contiennenrt peut-etre des
> systemes de fichiers et ne peuvent donc pas etre utilisees par cet outil de
> configuration.
>
> Well, i was able to create the array by hand yesterday, and also to create an
> array on part of the disk yesterday evening, but when i tried to create an
> array at the end of the disk, it had some problem on the end of the first
> disk, finding a partition of size 0 and exiting. So this may be related to
> that, i am not sure where this comes from, if it is a hardware problem with my
> disk (both are identic though, and brand new, need to check), or if it is a
> strange bug in mdadm.
No, didn't help, when i created a 100GB partition ignoring the last 250GB or
so. What is furthermore strange is that parted doesn't list the partitions by
hand in d-i, while they are ok in the installed system, and they are also ok
in the partman menu, and also show up after a reboot.

> > Please add 'set -x' in /lib/partman/definitions.sh, reproduce error and
> > send full log (gzipped) to BR.
>
> Will provide, not sure if it will bring more info than the above
> hand-investigated issue though.

Provided are the logs, well, i added the 'set -x' only after discovering the
problem in the first run, and then redoing the RAID thingy, but i hope this is
ok. Tell me if you need the log with the set -x of the full partitioning
process.

Friendly,

Sven Luther

partman.tar.bz2 (57K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#392764: partman: [powerpc] RAID support is broken on powermac hardware (64bit, XServe G5)

Frans Pop-3
In reply to this post by Sven Luther
On Saturday 14 October 2006 09:41, Sven Luther wrote:

> The exact message is :
>
> Aucune partition de RAID disponible
> Aucune partition de type << Linux RAID Autodetect >> n'est disponible.
> Veuillez creer une partition de ce type ou supprimer un peripherique
> multidisque deja utilise pour en liberer les partitions.
>
> Si vous utilisez de telles partitions, elle contiennenrt peut-etre des
> systemes de fichiers et ne peuvent donc pas etre utilisees par cet
> outil de configuration.

Sorry, my French is not up to this.


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#392764: partman: [powerpc] RAID support is broken on powermac hardware (64bit, XServe G5)

Sven Luther
On Sat, Oct 14, 2006 at 10:36:13AM +0200, Frans Pop wrote:

> On Saturday 14 October 2006 09:41, Sven Luther wrote:
> > The exact message is :
> >
> > Aucune partition de RAID disponible
> > Aucune partition de type << Linux RAID Autodetect >> n'est disponible.
> > Veuillez creer une partition de ce type ou supprimer un peripherique
> > multidisque deja utilise pour en liberer les partitions.
> >
> > Si vous utilisez de telles partitions, elle contiennenrt peut-etre des
> > systemes de fichiers et ne peuvent donc pas etre utilisees par cet
> > outil de configuration.
>
> Sorry, my French is not up to this.

Ah, i thought that it would be possible to grep in the translation stuff or
something.

No RAID partition is available
No raid partition of << Linux RAID Autodetect >> is available. Please create a
partition of this type or remove a multidisk peripheral already used and free
the partitions.
...

Well, i think it makes no sense to retranslate it so, let me do some grepping.

Mmm, its not in partman-md. Its not in partman-auto-raid ...

Mmm, i can't find it with :

 grep "disponible" */debian/po/fr.po

:/

Oh, well, let's reboot it and try in english :/

Friendly,

Sven Luther



--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#392764: partman: [powerpc] RAID support is broken on powermac hardware (64bit, XServe G5)

Sven Luther
In reply to this post by Sven Luther
Mmm, did you get the attachement, i got some reject mail.

I uploaded the tarball to http://people.debian.org/~luther/partman.tar.bz2 

just in case.

Friendly,

Sven Luther



--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#392764: partman: [powerpc] RAID support is broken on powermac hardware (64bit, XServe G5)

Sven Luther
In reply to this post by Sven Luther
On Sat, Oct 14, 2006 at 11:03:15AM +0200, Sven Luther wrote:

> On Sat, Oct 14, 2006 at 10:36:13AM +0200, Frans Pop wrote:
> > On Saturday 14 October 2006 09:41, Sven Luther wrote:
> > > The exact message is :
> > >
> > > Aucune partition de RAID disponible
> > > Aucune partition de type << Linux RAID Autodetect >> n'est disponible.
> > > Veuillez creer une partition de ce type ou supprimer un peripherique
> > > multidisque deja utilise pour en liberer les partitions.
> > >
> > > Si vous utilisez de telles partitions, elle contiennenrt peut-etre des
> > > systemes de fichiers et ne peuvent donc pas etre utilisees par cet
> > > outil de configuration.
> >
> > Sorry, my French is not up to this.

Ok, here is the full english text :

No RAID partitions available

No unused partitions of the type "Linux RAID Autodetect" are available. Please
create such a partition, or delete an already used multidisk device to free
its partitions.

If you have such partition, they might contain actual file systems, and are
therefor not available for use by this configuration utility.

Friendly,

Sven Luther



--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#392764: partman: [powerpc] RAID support is broken on powermac hardware (64bit, XServe G5)

Sven Luther
In reply to this post by Frans Pop-3
On Fri, Oct 13, 2006 at 10:56:08PM +0200, Frans Pop wrote:

> On Friday 13 October 2006 13:43, Sven Luther wrote:
> > As the title says, an install on my XServe G5, with two brand new 320GB
> > sata disks, fails. I can manually setup the RAID partitions, but when i
> > go into the raid tool, it tells me something about the RAID flag not
> > being found or something.
>
> That is not very helpful. Please provide exact error message.
>
> Please add 'set -x' in /lib/partman/definitions.sh, reproduce error and
> send full log (gzipped) to BR.

Ok, i think i found the culprit of this bug, the message is comming from
package mdcfg, file mdcfg.sh. its the mdcfg/noparts message.

# this will set PARTITIONS and NUM_PART global variables.
get_partitions() {
        PARTITIONS=""

        # Get a list of RAID partitions. This only works if there is no
        # filesystem on the partitions, which is fine by us.
        RAW_PARTITIONS=`/usr/lib/partconf/find-partitions --ignore-fstype 2>/dev/null | grep "[[:space:]]RAID[[:space:]]" |cut -f1`;

        # Convert it into a proper list form for a select question
        # (comma seperated)
        NUM_PART=0
        for i in ${RAW_PARTITIONS}; do
                DEV=`echo ${i}|sed -e "s/\/dev\///"`
                REALDEV=$(mapdevfs "$i")
                MAPPEDDEV=$(echo "$REALDEV" | sed -e "s/\/dev\///")

                if grep -q "\(${DEV}\|${MAPPEDDEV}\)" /proc/mdstat; then
                        continue
                fi

                if [ -z "${PARTITIONS}" ] ; then
                        PARTITIONS="$REALDEV"
                else
                        PARTITIONS="${PARTITIONS}, $REALDEV"
                fi
                NUM_PART=$(($NUM_PART + 1))
        done

        if [ -z "${PARTITIONS}" ] ; then
                db_input critical mdcfg/noparts
                db_go
                return 1
        fi
        return 0
}

As you can see, the find-partitions call returns nothing on the box, even
though the partitions are listed in partman.

Since find-partitions is using parted, this may be correlated to the bug about
parted not listing the partitions on the device :

  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=392767
  #392767: [mac] parted is unable to reread partition tables created by d-i/partman.

the partition tables show up after the reboot though, which is rather strange.
Maybe some problem with devfs compatibility stuff ? Or a missing kernel module ?

Friendly,

Sven Luther





--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#392764: closed by Frans Pop <elendil@planet.nl> (#392764 partman: [powerpc] RAID support is broken on powermac hardware (64bit, XServe G5))

Sven Luther
In reply to this post by Sven Luther-2
reopen 392764
# Clueless closing of this bug, probably due to a confusion with another,
# separate, but similar bug.
thanks

Frans, you know that i did open two bugs, because those where two separate
issues, right ?

Friendly,

Sven Luther

On Fri, Jan 12, 2007 at 07:03:46AM -0800, Debian Bug Tracking System wrote:

> This is an automatic notification regarding your Bug report
> #392764: partman: [powerpc] RAID support is broken on powermac hardware (64bit, XServe G5),
> which was filed against the partman package.
>
> It has been closed by Frans Pop <[hidden email]>.
>
> Their explanation is attached below.  If this explanation is
> unsatisfactory and you have not received a better one in a separate
> message then please contact Frans Pop <[hidden email]> by replying
> to this email.
>
> Debian bug tracking system administrator
> (administrator, Debian Bugs database)
>
>
> ---------------------------------------------------------------------------------------
> Orange vous informe que cet  e-mail a ete controle par l'anti-virus mail.
> Aucun virus connu a ce jour par nos services n'a ete detecte.
>

> Date: Fri, 12 Jan 2007 15:07:58 +0100
> From: Frans Pop <[hidden email]>
> Subject: #392764 partman: [powerpc] RAID support is broken on powermac hardware
>  (64bit, XServe G5)
> To: [hidden email]
> Message-id: <[hidden email]>
>
> Closing this bug report as the issue was traced to a bug in parted
> (#392767) which has been solved in the mean time.
>
> If there is still a remaining issue with RAID flags, that is probably
> already covered by #397973, and so this can still be closed as it is a
> duplicate.
>
> Cheers,
> FJP





--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#392764: closed by Frans Pop <elendil@planet.nl> (#392764 partman: [powerpc] RAID support is broken on powermac hardware (64bit, XServe G5))

Frans Pop-3
On Friday 12 January 2007 17:10, Sven Luther wrote:
> reopen 392764
> # Clueless closing of this bug, probably due to a confusion with
> another, # separate, but similar bug.
> thanks
>
> Frans, you know that i did open two bugs, because those where two
> separate issues, right ?

Did you even bother to READ the main reason that I closed this BR:
> > Closing this bug report as the issue was traced to a bug in parted
> > (#392767) which has been solved in the mean time.

I don't see _any_ evidence in the report that there is still an issue
after #392767 was solved. _You_ identified #392767 as the root cause of
this BR after all.

attachment0 (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#392764: closed by Frans Pop <elendil@planet.nl> (#392764 partman: [powerpc] RAID support is broken on powermac hardware (64bit, XServe G5))

Sven Luther
On Fri, Jan 12, 2007 at 06:02:06PM +0100, Frans Pop wrote:

> On Friday 12 January 2007 17:10, Sven Luther wrote:
> > reopen 392764
> > # Clueless closing of this bug, probably due to a confusion with
> > another, # separate, but similar bug.
> > thanks
> >
> > Frans, you know that i did open two bugs, because those where two
> > separate issues, right ?
>
> Did you even bother to READ the main reason that I closed this BR:
> > > Closing this bug report as the issue was traced to a bug in parted
> > > (#392767) which has been solved in the mean time.
>
> I don't see _any_ evidence in the report that there is still an issue
> after #392767 was solved. _You_ identified #392767 as the root cause of
> this BR after all.

I opened both bugs, didn't i ? I investigated both of them, i found a fix to
the previous bug, and applied it, and provided a patch, and tested it and
discussed it upstream.

The second issue was still there, which is why i opened the second and
separate bug report, and mentioned the issue to you and holger and others
numerous times, asking for help, since despite me looking into the partman
code at some length, i couldn't find any obvious source of this bug.

Also, the fact that, as described in the original bug report, and the
"installing raid on mac" thread i started on debian-boot/debian-powerpc, using
the parted tool allows one to set the raid flag, which is then removed by
partman-md again when first invoked.

This is definitively an obscure partman bug.

Please, don't let your hatred of me, or past disagrement, or whatever you want
to call it cloud your judgement, and let's all honestly try together to make
debian the best technical distribution out there. I have gladly accepted to
stay away from debian lists if it can help this, and i hope that you and
others can also learn to put arrogance and remembrance of past hurts aside and
all work together. Maybe you should have taken *GOOD* resolutions for new year
instead of what you have done, i know i did :)

Friendly,

Sven Luther


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]