Re: SoftwareRAID on GPT disks

Lukas Puzik / myLoc managed IT AG <[email protected]>
Newsgroups gmane.linux.suse.autoinstall
Organization myLoc managed IT AG
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Thomas,

thanks for your message. I've attached the desired logs and control
file to this mail. I've noticed during the successfull installation
without SoftwareRAID today, that autoyast actually doesn't set
bios_grub, it only creates the first partition with an offset of
1049kB in both cases. I've probably mixed it up with another installation.

I've also performed an installation with SoftwareRAID and made a
screenshot of a parted print after the first error message. I don't
understand why the swap partition will be set up with boot and
legacy_boot flags.

Best regards,
Lukas Puzik

Am 16.09.2013 14:16, schrieb Thomas Fehr:
> Hi,
> 
> On Mon, Sep 16, Lukas Puzik / myLoc managed IT AG wrote:
> 
>> Hello!
>> 
>> I'm fighting for a week with autoyast and a SoftwareRAID
>> partitoning on non-EFI servers with two 3-4 TB disks. I've
>> figured out, that autoyast successfully applies my profile to the
>> servers, as long as I don't set up a SoftwareRAID. Means, that
>> autoyast creates automatically a bios_grub partition and installs
>> GRUB2 correctly, the server is able to boot from a 2.7 TB root
>> partiton. I don't need to do anything.
> 
> If possible, I would be interested to see complete content of 
> /var/log/YaST2 and autoyast control file for both cases (the
> successful one without SoftwareRAID and the unsuccessful one with
> SoftwareRAID) see what is going on.
> 
> So far I cannot see how autoyast would automatically create a 
> bios_grub partition. Since bios_grub stuff is fairly new it could 
> very well be possible that there are bugs lurking in this area.
> 
>> As soon as I'm using a SoftwareRAID partitioning, autoyast
>> doesn't create the above mentioned bios_grub partition and
>> bootlader instalation fails, the operating system isn't bootable.
>> It's possible to workaround this issue by manually creating the
>> bios_grub partiton in the partitioning context and to manually
>> enabling bios_grub to this partiton with parted in
>> postpartitioning-scripts, nevertheless GRUB2 will show the same
>> error messages as before, which can't be timed out using error
>> context. But, operating system will boot up correctly from a 2.7
>> TB md device.
> 
> ...
> 
>> As I need a fully unattended installation for a SoftwareRAID
>> sceanrio, I'm hoping for a clean solution or a tip how to avoid
>> bootloader context error messages, so no user interaction is
>> needed. In fact other distributions like CentOS 6, Debian 7.0 and
>> Ubuntu 12.04 don't show this issue, so I think, that this is a
>> bug or limitation, not a general issue.
> 
> 
> Tschuess, Thomas Fehr
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSNyQuAAoJEAQWnOsU6N73ODUH/R0a1ho2LjDX+Ow8fbFbpGtx
I73tD5KyRhaZEJ+Z/Bs7vPwtSO7gphQOOOvgzoXzWLX1+CZZw98ajuzXPW8+Ow8k
1YUKFpdtjXeMHvFMPtUCyV4ov0S3+HoPmfsvK4/VmKdZiPWTCZuOj+LydGHv9Pbh
gJWdhfuec+Es5f8FtBcHMZS9YmCMV8oOPGiibo00ArIiC5oAVWWKDYqRxtdboKpk
u6PaQyK4Wh+XwPhTPMSTc971hIhtrL/HM78yc9G7xhkHhQ/x0eW0UGa7MTEWSHG/
GCiJDBrbIt5K3YO/pIHq5iOeeRCrZxijZFP5VogtDNNNJeA8n+EHmafv2xy5KF4=
=zmsn
-----END PGP SIGNATURE-----
noraid.tgz (application/x-compressed-tar, 557.4 KB) - not displayed
noraid.xml (text/xml, 8.2 KB)
<?xml version="1.0"?>
<!DOCTYPE profile>
<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
  <deploy_image>
    <image_installation config:type="boolean">false</image_installation>
  </deploy_image>
  <firewall>
    <enable_firewall config:type="boolean">false</enable_firewall>
    <start_firewall config:type="boolean">false</start_firewall>
  </firewall>
  <general>
    <mode>
      <confirm config:type="boolean">false</confirm>
      <final_reboot config:type="boolean">true</final_reboot>
    </mode>
    <mouse>
      <id>none</id>
    </mouse>
    <signature-handling>
      <accept_file_without_checksum config:type="boolean">true</accept_file_without_checksum>
      <accept_non_trusted_gpg_key config:type="boolean">true</accept_non_trusted_gpg_key>
      <accept_unknown_gpg_key config:type="boolean">true</accept_unknown_gpg_key>
      <accept_unsigned_file config:type="boolean">true</accept_unsigned_file>
      <accept_verification_failed config:type="boolean">false</accept_verification_failed>
      <import_gpg_key config:type="boolean">true</import_gpg_key>
    </signature-handling>
  </general>
  <host>
    <hosts config:type="list">
      <hosts_entry>
        <host_address>127.0.0.1</host_address>
        <names config:type="list">
          <name>localhost</name>
        </names>
      </hosts_entry>
      <hosts_entry>
        <host_address>91.212.85.205</host_address>
        <names config:type="list">
          <name>opensuse.test.de opensuse</name>
        </names>
      </hosts_entry>
    </hosts>
  </host>
  <keyboard>
    <keymap>german</keymap>
  </keyboard>
  <language>
    <language>de_DE</language>
    <languages>en_US,de_DE</languages>
  </language>
  <networking>
    <dns>
      <dhcp_hostname config:type="boolean">false</dhcp_hostname>
      <dhcp_resolv config:type="boolean">false</dhcp_resolv>
      <domain>test.de</domain>
      <hostname>opensuse</hostname>
      <nameservers config:type="list">
        <nameserver>62.141.32.3</nameserver>
        <nameserver>62.141.32.4</nameserver>
        <nameserver>62.141.32.5</nameserver>
      </nameservers>
      <write_hostname config:type="boolean">true</write_hostname>
    </dns>
    <interfaces config:type="list">
      <interface>
        <bootproto>static</bootproto>
        <device>eth0</device>
        <ipaddr>91.212.85.205</ipaddr>
        <netmask>255.255.255.248</netmask>
        <startmode>auto</startmode>
        <usercontrol>no</usercontrol>
      </interface>
    </interfaces>
    <ipv6 config:type="boolean">true</ipv6>
    <keep_install_network config:type="boolean">false</keep_install_network>
    <managed config:type="boolean">false</managed>
    <net-udev config:type="list">
      <rule>
        <name>eth0</name>
        <rule>ATTR{address}</rule>
        <value>00:25:90:c2:00:08</value>
      </rule>
    </net-udev>
    <routing>
      <ip_forward config:type="boolean">false</ip_forward>
      <routes config:type="list">
        <route>
          <destination>default</destination>
          <device>-</device>
          <gateway>91.212.85.201</gateway>
          <netmask>-</netmask>
        </route>
      </routes>
    </routing>
  </networking>
  <partitioning config:type="list">
    <drive>
      <device>/dev/sda</device>
        <initialize config:type="boolean">true</initialize>
        <partitions config:type="list">
          <partition>
            <create config:type="boolean">true</create>
            <crypt_fs config:type="boolean">false</crypt_fs>
            <filesystem config:type="symbol">swap</filesystem>
            <format config:type="boolean">true</format>
            <fstopt>defaults</fstopt>
            <loop_fs config:type="boolean">false</loop_fs>
            <mount>swap</mount>
            <mountby config:type="symbol">device</mountby>
            <partition_id config:type="integer">130</partition_id>
            <partition_nr config:type="integer">1</partition_nr>
            <resize config:type="boolean">false</resize>
            <size>32768M</size>
          </partition>
          <partition>
            <create config:type="boolean">true</create>
            <crypt_fs config:type="boolean">false</crypt_fs>
            <filesystem config:type="symbol">ext4</filesystem>
            <format config:type="boolean">true</format>
            <fstopt>defaults</fstopt>
            <loop_fs config:type="boolean">false</loop_fs>
            <mount>/boot</mount>
            <mountby config:type="symbol">device</mountby>
            <partition_id config:type="integer">131</partition_id>
            <partition_nr config:type="integer">2</partition_nr>
            <resize config:type="boolean">false</resize>
            <size>1024M</size>
          </partition>
          <partition>
            <create config:type="boolean">true</create>
            <crypt_fs config:type="boolean">false</crypt_fs>
            <filesystem config:type="symbol">ext4</filesystem>
            <format config:type="boolean">true</format>
            <fstopt>defaults</fstopt>
            <loop_fs config:type="boolean">false</loop_fs>
            <mount>/</mount>
            <mountby config:type="symbol">device</mountby>
            <partition_id config:type="integer">131</partition_id>
            <partition_nr config:type="integer">3</partition_nr>
            <resize config:type="boolean">false</resize>
            <size>max</size>
          </partition>
        </partitions>
        <type config:type="symbol">CT_DISK</type>
        <use>all</use>
    </drive>
    <drive>
      <device>/dev/sdb</device>
        <initialize config:type="boolean">true</initialize>
        <partitions config:type="list">
          <partition>
            <create config:type="boolean">true</create>
            <crypt_fs config:type="boolean">false</crypt_fs>
            <filesystem config:type="symbol">ext4</filesystem>
            <format config:type="boolean">true</format>
            <fstopt>defaults</fstopt>
            <loop_fs config:type="boolean">false</loop_fs>
            <mount>/storage</mount>
            <mountby config:type="symbol">device</mountby>
            <partition_id config:type="integer">131</partition_id>
            <partition_nr config:type="integer">1</partition_nr>
            <resize config:type="boolean">false</resize>
            <size>max</size>
          </partition>
        </partitions>
        <type config:type="symbol">CT_DISK</type>
        <use>all</use>
    </drive>
  </partitioning>
  <report>
    <errors>
      <log config:type="boolean">true</log>
      <show config:type="boolean">true</show>
      <timeout config:type="integer">60</timeout>
    </errors>
    <messages>
      <log config:type="boolean">true</log>
      <show config:type="boolean">true</show>
      <timeout config:type="integer">60</timeout>
    </messages>
    <warnings>
      <log config:type="boolean">true</log>
      <show config:type="boolean">true</show>
      <timeout config:type="integer">60</timeout>
    </warnings>
    <yesno_messages>
      <log config:type="boolean">true</log>
      <show config:type="boolean">true</show>
      <timeout config:type="integer">60</timeout>
    </yesno_messages>
  </report>
  <software>
    <packages config:type="list">
      <package>glibc-locale</package>
    </packages>
    <patterns config:type="list">
      <pattern>base</pattern>
      <pattern>enhanced_base</pattern>
      <pattern>sw_management</pattern>
     <pattern>yast2_basis</pattern>
      <pattern>yast2_install_wf</pattern>
    </patterns>
    <do_online_update config:type="boolean">true</do_online_update>
  </software>
  <timezone>
    <hwclock>UTC</hwclock>
    <timezone>Europe/Berlin</timezone>
  </timezone>
  <users config:type="list">
    <user>
      <encrypted config:type="boolean">true</encrypted>
      <fullname>root</fullname>
      <gid>0</gid>
      <home>/root</home>
      <password_settings>
        <expire></expire>
        <flag></flag>
        <inact></inact>
        <max></max>
        <min></min>
        <warn></warn>
      </password_settings>
      <shell>bash</shell>
      <uid>0</uid>
      <user_password>$6$PUUPsOcCnGqVt2NI$cGQmYGjFldCApwQg4HaN4XomzTuSkEt7E/QXTeQKucRR.L4nzr9exKI1HJwg8GWppuMB82yx8PYGeVUdV10vv1</user_password>
      <username>root</username>
    </user>
  </users>
</profile>
raid.tgz (application/x-compressed-tar, 177.7 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.