Bug 140071 - autoyast is unable to create RAID1 mirrors
Summary: autoyast is unable to create RAID1 mirrors
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: AutoYaST (show other bugs)
Version: Final
Hardware: Other SuSE Linux 10.0
: P5 - None : Major
Target Milestone: ---
Assignee: Uwe Gansert
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-17 01:14 UTC by edgar nielsen
Modified: 2006-01-04 09:50 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
yast logs (222.19 KB, application/x-tgz)
2005-12-19 19:00 UTC, edgar nielsen
Details
yast config file (37.23 KB, text/plain)
2005-12-19 19:00 UTC, edgar nielsen
Details
patch autoyast (87.79 KB, application/x-shellscript)
2006-01-04 09:50 UTC, Uwe Gansert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description edgar nielsen 2005-12-17 01:14:01 UTC
I am unable to create a raid mirror successfully. I have determined that the problem is that while the 2 disks get partitioned correctly, when autoyast assembles the raid mirrors, only the partitions on the second disk get assigned to each raid device! The raid_name directive is set for each
pair of partitions, but for some reason the ones on /dev/sda are not
assigned to the array.

So the installation fails with a cryptic number as - not too suprisingly - it
wants 2 partitions in each mirror. Currently my workaround is to turn on confirm, and then in the install dialog manually add the partitions on the first disk into each raid device.

This works, but reduces the utility of the automated installation.......

Here is my partitioning code:
    <drive>
      <device>/dev/md</device>
      <initialize config:type="boolean">false</initialize>
      <partitions config:type="list">
        <partition>
          <filesystem config:type="symbol">ext3</filesystem>
          <format config:type="boolean">true</format>
          <fstopt>noatime,acl,user_xattr</fstopt>
          <mount>/</mount>
          <partition_id config:type="integer">131</partition_id>
          <partition_nr config:type="integer">0</partition_nr>
          <raid_options>
            <persistent_superblock 
config:type="boolean">true</persistent_superb
lock>
            <chunk_size>4</chunk_size>
            <raid_type>raid1</raid_type>
          </raid_options>
        </partition>
        <partition>
          <filesystem config:type="symbol">ext3</filesystem>
          <format config:type="boolean">true</format>
          <fstopt>noatime,acl,user_xattr</fstopt>
          <mount>/var</mount>
          <partition_id config:type="integer">131</partition_id>
          <partition_nr config:type="integer">1</partition_nr>
          <raid_options>
            <persistent_superblock 
config:type="boolean">true</persistent_superb
lock>
            <chunk_size>4</chunk_size>
            <raid_type>raid1</raid_type>
          </raid_options>
        </partition>
        <partition>
          <filesystem config:type="symbol">ext3</filesystem>
          <format config:type="boolean">true</format>
          <fstopt>noatime,acl,user_xattr</fstopt>
          <mount>/usr</mount>
          <partition_id config:type="integer">131</partition_id>
          <partition_nr config:type="integer">2</partition_nr>
          <raid_options>
            <persistent_superblock 
config:type="boolean">true</persistent_superblock>
            <chunk_size>4</chunk_size>
            <raid_type>raid1</raid_type>
          </raid_options>
        </partition>
      </partitions>
      <use>all</use>
    </drive>
    <drive>
      <device>/dev/sda</device>
      <initialize config:type="boolean">false</initialize>
      <partitions config:type="list">
        <partition>
          <format config:type="boolean">false</format>
          <partition_id config:type="integer">253</partition_id>
          <raid_name>/dev/md0</raid_name>
          <raid_type>raid</raid_type>
          <size>6gb</size>
          <partition_type>primary</partition_type>
        </partition>
        <partition>
          <filesystem config:type="symbol">swap</filesystem>
          <format config:type="boolean">true</format>
          <mount>swap</mount>
          <partition_id config:type="integer">130</partition_id>
          <size>1gb</size>
          <partition_type>primary</partition_type>
        </partition>
        <partition>
          <format config:type="boolean">false</format>
          <partition_id config:type="integer">253</partition_id>
          <raid_name>/dev/md1</raid_name>
          <raid_type>raid</raid_type>
          <size>4gb</size>
          <partition_type>primary</partition_type>
        </partition>
        <partition>
          <format config:type="boolean">false</format>
          <partition_id config:type="integer">253</partition_id>
          <raid_name>/dev/md2</raid_name>
          <raid_type>raid</raid_type>
          <size>max</size>
          <partition_type>primary</partition_type>
        </partition>
      </partitions>
      <use>all</use>
    </drive>
    <drive>
      <device>/dev/sdb</device>
      <initialize config:type="boolean">false</initialize>
      <partitions config:type="list">
        <partition>
          <format config:type="boolean">false</format>
          <partition_id config:type="integer">253</partition_id>
          <raid_name>/dev/md0</raid_name>
          <raid_type>raid</raid_type>
          <size>6gb</size>
          <partition_type>primary</partition_type>
        </partition>
        <partition>
          <filesystem config:type="symbol">swap</filesystem>
          <format config:type="boolean">true</format>
          <mount>swap</mount>
          <partition_id config:type="integer">130</partition_id>
          <size>1gb</size>
          <partition_type>primary</partition_type>
        </partition>
        <partition>
          <format config:type="boolean">false</format>
          <partition_id config:type="integer">253</partition_id>
          <raid_name>/dev/md1</raid_name>
          <raid_type>raid</raid_type>
          <size>4gb</size>
          <partition_type>primary</partition_type>
        </partition>
        <partition>
          <format config:type="boolean">false</format>
          <partition_id config:type="integer">253</partition_id>
          <raid_name>/dev/md2</raid_name>
          <raid_type>raid</raid_type>
          <size>max</size>
          <partition_type>primary</partition_type>
        </partition>
      </partitions>
      <use>all</use>
    </drive>


I've hacked at this for a few days - is there something I'm missing or
is this a bug?

thanks,
edgar nielsen
DHAP Digital
Comment 1 Danny Al-Gaaf 2005-12-19 13:00:33 UTC
please report bugs for "SUSE Linux 10.0 OSS" against "SUSE Linux 10.0"
Comment 2 Michael Gross 2005-12-19 16:10:05 UTC
Hi Edgar,
there is no `openSUSE 10.0', openSUSE is a project, the product's name is still SUSE Linux. Please attach the yast logfiles of your autoyast run here.
Comment 3 edgar nielsen 2005-12-19 19:00:28 UTC
Created attachment 61387 [details]
yast logs
Comment 4 edgar nielsen 2005-12-19 19:00:48 UTC
Created attachment 61388 [details]
yast config file
Comment 5 edgar nielsen 2005-12-19 19:01:44 UTC
OK, here are the attached yast logs as a compressed tarball.

Notes:
1) When the confirmation gui came up, I manually
added in the missing sda partitions to the 3
raid arrays.



Also attached is my yast xml file, albeit with
passwords and such modified for security.....


thanks,
edgar nielsen
Comment 6 Uwe Gansert 2005-12-20 15:22:12 UTC
that's a known bug and I fixed that for 10.1 already.
I can provide you a patch for the installation source if you are interested.

You can also try to use SUSE Linux 10.1 alpha4 or one of the next betas.

Comment 7 edgar nielsen 2005-12-20 22:57:56 UTC
Do you mean I can use the autoyast from 10.1? I need to be using
the 10.0 distribution, but I have no objection to trying to use
the autoyast system from 10.1 if you think that would work.

I'll take the patch in any case as that would probably be the
quickest fix....

Is there any info on how to splice the 10.1 autoyast into  10.0?

thanks,
edgar nielsen
Comment 8 Uwe Gansert 2006-01-04 09:49:27 UTC
No, you can't use autoyast from 10.1 for 10.0.
I'll attach a script to this bug. Go to the root of the installation source (that's where the "media.1" and the "suse" directory is) and let the attached script run.
A file "driverupdate" should be created and hopefully that fixes your problem on i386 and x86_64

Comment 9 Uwe Gansert 2006-01-04 09:50:08 UTC
Created attachment 61938 [details]
patch autoyast