Hi - I'm trying to make a autoyast configuration file which will install a machine with 3 software raid 1 devices (root, swap, and a data partition) using SLES 9. The partitions will already exist on the drives. Unfortunately this doesn't seem to work. yast seems to want to mount the individual component partitions as /data1 ... /data6. It only seems to want to use the /dev/md2 device, and ignores md0-md1. Can anyone see the problem, or does someone have a similar working file I can look at? <!-- This is where we describe the drives and partitions --> <partitioning config:type="list"> <drive> <device>/dev/hda</device> <partitions config:type="list"> <!-- Root device --> <partition> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">1</partition_nr> <format config:type="boolean">false</format> <create config:type="boolean">false</create> <raid_name>/dev/md0</raid_name> <raid_type>raid</raid_type> </partition> <!-- Swap --> <partition> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">2</partition_nr> <format config:type="boolean">false</format> <create config:type="boolean">false</create> <raid_name>/dev/md1</raid_name> <raid_type>raid</raid_type> </partition> <!-- /soft3 --> <partition> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">3</partition_nr> <format config:type="boolean">false</format> <create config:type="boolean">false</create> <raid_name>/dev/md2</raid_name> <raid_type>raid</raid_type> </partition> </partitions> </drive> <drive> <device>/dev/hdb</device> <partitions config:type="list"> <!-- Root device --> <partition> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">1</partition_nr> <format config:type="boolean">false</format> <create config:type="boolean">false</create> <raid_name>/dev/md0</raid_name> <raid_type>raid</raid_type> </partition> <!-- Swap --> <partition> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">2</partition_nr> <format config:type="boolean">false</format> <create config:type="boolean">false</create> <raid_name>/dev/md1</raid_name> <raid_type>raid</raid_type> </partition> <!-- /soft3 --> <partition> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">3</partition_nr> <format config:type="boolean">false</format> <create config:type="boolean">false</create> <raid_name>/dev/md2</raid_name> <raid_type>raid</raid_type> </partition> </partitions> </drive> <!-- /dev/md0 = root --> <drive> <device>/dev/md</device> <partitions config:type="list"> <partition> <filesystem config:type="symbol">xfs</filesystem> <format config:type="boolean">true</format> <mount>/</mount> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">0</partition_nr> <raid_options> <raid_type>raid1</raid_type> </raid_options> </partition> </partitions> </drive> <!-- /dev/md1 = swap --> <drive> <device>/dev/md</device> <partitions config:type="list"> <partition> <filesystem config:type="symbol">swap</filesystem> <format config:type="boolean">true</format> <mount>swap</mount> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">1</partition_nr> <raid_options> <raid_type>raid1</raid_type> </raid_options> </partition> </partitions> </drive> <!-- /dev/md2 = /soft3 --> <drive> <device>/dev/md</device> <partitions config:type="list"> <partition> <filesystem config:type="symbol">xfs</filesystem> <format config:type="boolean">false</format> <mount>/soft3</mount> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">2</partition_nr> <raid_options> <raid_type>raid1</raid_type> </raid_options> </partition> </partitions> </drive> </partitioning> Thanks Jeremy -- Jeremy Sanders <jss@ast.cam.ac.uk> http://www-xray.ast.cam.ac.uk/~jss/ X-Ray Group, Institute of Astronomy, University of Cambridge, UK. Public Key Server PGP Key ID: E1AAE053
Sorry - yet another mail. I've finally got the md devices to be recognised, and not overwitten. However, no matter what I do, yast seems to want to mount the individual devices which make up the raid devices as /data1 - /data3. I've event tried <mount></mount> for each of the partitions, which is ignored by yast. Thanks Jeremy My current configuration file is below <?xml version="1.0"?> <!DOCTYPE profile SYSTEM "/usr/share/autoinstall/dtd/profile.dtd"> <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> <configure> <online_update> <autoget config:type="boolean">false</autoget> <enable_autoupdate config:type="boolean">true</enable_autoupdate> <update_time> <hour config:type="integer">6</hour> <minute config:type="integer">0</minute> </update_time> </online_update> <runlevel> <default>3</default> </runlevel> </configure> <install> <general> <clock> <hwclock>UTC</hwclock> <timezone>Europe/London</timezone> </clock> <keyboard> <keymap>english-uk</keymap> </keyboard> <language>en_GB</language> <mode> <confirm config:type="boolean">true</confirm> <forceboot config:type="boolean">false</forceboot> </mode> <mouse> <id>probe</id> </mouse> </general> <!-- This is where we describe the drives and partitions --> <partitioning config:type="list"> <!-- /dev/md0 = root --> <drive> <device>/dev/md</device> <partitions config:type="list"> <partition> <filesystem config:type="symbol">xfs</filesystem> <format config:type="boolean">true</format> <create config:type="boolean">false</create> <mount>/</mount> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">0</partition_nr> <raid_options> <raid_type>raid1</raid_type> </raid_options> </partition> <!-- /dev/md1 = swap --> <partition> <filesystem config:type="symbol">swap</filesystem> <format config:type="boolean">true</format> <create config:type="boolean">false</create> <mount>swap</mount> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">1</partition_nr> <raid_options> <raid_type>raid1</raid_type> </raid_options> </partition> <!-- /dev/md2 = /soft3 --> <partition> <filesystem config:type="symbol">xfs</filesystem> <format config:type="boolean">false</format> <create config:type="boolean">false</create> <mount>/soft3</mount> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">2</partition_nr> <raid_options> <raid_type>raid1</raid_type> </raid_options> </partition> </partitions> <use>selected</use> </drive> <drive> <device>/dev/hda</device> <partitions config:type="list"> <!-- Root device --> <partition> <raid_name>/dev/md0</raid_name> <raid_type>raid</raid_type> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">1</partition_nr> <format config:type="boolean">false</format> <create config:type="boolean">false</create> </partition> <!-- Swap --> <partition> <raid_name>/dev/md1</raid_name> <raid_type>raid</raid_type> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">2</partition_nr> <format config:type="boolean">false</format> <create config:type="boolean">false</create> </partition> <!-- /soft3 --> <partition> <raid_name>/dev/md2</raid_name> <raid_type>raid</raid_type> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">3</partition_nr> <format config:type="boolean">false</format> <create config:type="boolean">false</create> </partition> </partitions> <use>selected</use> </drive> <drive> <device>/dev/hdb</device> <partitions config:type="list"> <!-- Root device --> <partition> <raid_name>/dev/md0</raid_name> <raid_type>raid</raid_type> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">1</partition_nr> <format config:type="boolean">false</format> <create config:type="boolean">false</create> </partition> <!-- Swap --> <partition> <raid_name>/dev/md1</raid_name> <raid_type>raid</raid_type> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">2</partition_nr> <format config:type="boolean">false</format> <create config:type="boolean">false</create> </partition> <!-- /soft3 --> <partition> <raid_name>/dev/md2</raid_name> <raid_type>raid</raid_type> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">3</partition_nr> <format config:type="boolean">false</format> <create config:type="boolean">false</create> </partition> </partitions> <use>selected</use> </drive> </partitioning> <software> <addons config:type="list"> <addon>Base-System</addon> <!-- <addon>Basis-Sound</addon> --> <addon>Kde-Desktop</addon> <addon>Linux-Tools</addon> <addon>Print-Server</addon> <addon>SuSE-Documentation</addon> <addon>X11</addon> <addon>YaST2</addon> <addon>auth</addon> <addon>Basis-Devel</addon> <addon>analyze</addon> </addons> <base>default</base> <packages config:type="list"> <package>apache2</package> <package>apache2-devel</package> <package>apache2-doc</package> <package>apache2-mod_perl</package> <package>apache2-mod_php4</package> <package>apache2-mod_python</package> <package>apache2-prefork</package> <package>dhcp-server</package> <package>php4-bcmath</package> <package>php4-bz2</package> <package>php4-calendar</package> <package>php4-ctype</package> <package>php4-curl</package> <package>php4-dba</package> <package>php4-devel</package> <package>php4-domxml</package> <package>php4-exif</package> <package>php4-ftp</package> <package>php4-gd</package> <package>php4-gettext</package> <package>php4-imap</package> <package>php4-ldap</package> <package>php4-mbstring</package> <package>php4-mcal</package> <package>php4-mcrypt</package> <package>php4-mhash</package> <package>php4-mime_magic</package> <package>php4-pgsql</package> <package>php4-snmp</package> <package>php4-sockets</package> <package>php4-zlib</package> <package>postgresql</package> <package>postgresql-server</package> <package>squid</package> </packages> </software> </install> </profile>
On Tue, 22 Feb 2005, Jeremy Sanders wrote:
Hmm - now I've tried SP1 on SLES9, and still autoyast tries to mount the individual partitions which make up the raid. The partition type is set to linux autoraid, they're set as raid in the XML configuration file, but somehow autoyast assigns /data1 - /data3 for the raid1 partitions and tries to mount them during the install. Is there a debug mode I can enable for autoyast? I notice there are some debug statements in the source code. Jeremy -- Jeremy Sanders <jss@ast.cam.ac.uk> http://www-xray.ast.cam.ac.uk/~jss/ X-Ray Group, Institute of Astronomy, University of Cambridge, UK. Public Key Server PGP Key ID: E1AAE053
This still fails, even trying SUSE profession 9.2. It looks like it's a bug in autoyast somewhere. It doesn't seem to handle raid with partitions made with <create>false</create>. Oh well, back to RHEL... :-( Jeremy On Mon, 21 Feb 2005, Jeremy Sanders wrote:
-- Jeremy Sanders <jss@ast.cam.ac.uk> http://www-xray.ast.cam.ac.uk/~jss/ X-Ray Group, Institute of Astronomy, University of Cambridge, UK. Public Key Server PGP Key ID: E1AAE053
Sorry - yet another mail. I've finally got the md devices to be recognised, and not overwitten. However, no matter what I do, yast seems to want to mount the individual devices which make up the raid devices as /data1 - /data3. I've event tried <mount></mount> for each of the partitions, which is ignored by yast. Thanks Jeremy My current configuration file is below <?xml version="1.0"?> <!DOCTYPE profile SYSTEM "/usr/share/autoinstall/dtd/profile.dtd"> <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> <configure> <online_update> <autoget config:type="boolean">false</autoget> <enable_autoupdate config:type="boolean">true</enable_autoupdate> <update_time> <hour config:type="integer">6</hour> <minute config:type="integer">0</minute> </update_time> </online_update> <runlevel> <default>3</default> </runlevel> </configure> <install> <general> <clock> <hwclock>UTC</hwclock> <timezone>Europe/London</timezone> </clock> <keyboard> <keymap>english-uk</keymap> </keyboard> <language>en_GB</language> <mode> <confirm config:type="boolean">true</confirm> <forceboot config:type="boolean">false</forceboot> </mode> <mouse> <id>probe</id> </mouse> </general> <!-- This is where we describe the drives and partitions --> <partitioning config:type="list"> <!-- /dev/md0 = root --> <drive> <device>/dev/md</device> <partitions config:type="list"> <partition> <filesystem config:type="symbol">xfs</filesystem> <format config:type="boolean">true</format> <create config:type="boolean">false</create> <mount>/</mount> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">0</partition_nr> <raid_options> <raid_type>raid1</raid_type> </raid_options> </partition> <!-- /dev/md1 = swap --> <partition> <filesystem config:type="symbol">swap</filesystem> <format config:type="boolean">true</format> <create config:type="boolean">false</create> <mount>swap</mount> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">1</partition_nr> <raid_options> <raid_type>raid1</raid_type> </raid_options> </partition> <!-- /dev/md2 = /soft3 --> <partition> <filesystem config:type="symbol">xfs</filesystem> <format config:type="boolean">false</format> <create config:type="boolean">false</create> <mount>/soft3</mount> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">2</partition_nr> <raid_options> <raid_type>raid1</raid_type> </raid_options> </partition> </partitions> <use>selected</use> </drive> <drive> <device>/dev/hda</device> <partitions config:type="list"> <!-- Root device --> <partition> <raid_name>/dev/md0</raid_name> <raid_type>raid</raid_type> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">1</partition_nr> <format config:type="boolean">false</format> <create config:type="boolean">false</create> </partition> <!-- Swap --> <partition> <raid_name>/dev/md1</raid_name> <raid_type>raid</raid_type> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">2</partition_nr> <format config:type="boolean">false</format> <create config:type="boolean">false</create> </partition> <!-- /soft3 --> <partition> <raid_name>/dev/md2</raid_name> <raid_type>raid</raid_type> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">3</partition_nr> <format config:type="boolean">false</format> <create config:type="boolean">false</create> </partition> </partitions> <use>selected</use> </drive> <drive> <device>/dev/hdb</device> <partitions config:type="list"> <!-- Root device --> <partition> <raid_name>/dev/md0</raid_name> <raid_type>raid</raid_type> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">1</partition_nr> <format config:type="boolean">false</format> <create config:type="boolean">false</create> </partition> <!-- Swap --> <partition> <raid_name>/dev/md1</raid_name> <raid_type>raid</raid_type> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">2</partition_nr> <format config:type="boolean">false</format> <create config:type="boolean">false</create> </partition> <!-- /soft3 --> <partition> <raid_name>/dev/md2</raid_name> <raid_type>raid</raid_type> <partition_id config:type="integer">253</partition_id> <partition_nr config:type="integer">3</partition_nr> <format config:type="boolean">false</format> <create config:type="boolean">false</create> </partition> </partitions> <use>selected</use> </drive> </partitioning> <software> <addons config:type="list"> <addon>Base-System</addon> <!-- <addon>Basis-Sound</addon> --> <addon>Kde-Desktop</addon> <addon>Linux-Tools</addon> <addon>Print-Server</addon> <addon>SuSE-Documentation</addon> <addon>X11</addon> <addon>YaST2</addon> <addon>auth</addon> <addon>Basis-Devel</addon> <addon>analyze</addon> </addons> <base>default</base> <packages config:type="list"> <package>apache2</package> <package>apache2-devel</package> <package>apache2-doc</package> <package>apache2-mod_perl</package> <package>apache2-mod_php4</package> <package>apache2-mod_python</package> <package>apache2-prefork</package> <package>dhcp-server</package> <package>php4-bcmath</package> <package>php4-bz2</package> <package>php4-calendar</package> <package>php4-ctype</package> <package>php4-curl</package> <package>php4-dba</package> <package>php4-devel</package> <package>php4-domxml</package> <package>php4-exif</package> <package>php4-ftp</package> <package>php4-gd</package> <package>php4-gettext</package> <package>php4-imap</package> <package>php4-ldap</package> <package>php4-mbstring</package> <package>php4-mcal</package> <package>php4-mcrypt</package> <package>php4-mhash</package> <package>php4-mime_magic</package> <package>php4-pgsql</package> <package>php4-snmp</package> <package>php4-sockets</package> <package>php4-zlib</package> <package>postgresql</package> <package>postgresql-server</package> <package>squid</package> </packages> </software> </install> </profile>
On Tue, 22 Feb 2005, Jeremy Sanders wrote:
Hmm - now I've tried SP1 on SLES9, and still autoyast tries to mount the individual partitions which make up the raid. The partition type is set to linux autoraid, they're set as raid in the XML configuration file, but somehow autoyast assigns /data1 - /data3 for the raid1 partitions and tries to mount them during the install. Is there a debug mode I can enable for autoyast? I notice there are some debug statements in the source code. Jeremy -- Jeremy Sanders <jss@ast.cam.ac.uk> http://www-xray.ast.cam.ac.uk/~jss/ X-Ray Group, Institute of Astronomy, University of Cambridge, UK. Public Key Server PGP Key ID: E1AAE053
This still fails, even trying SUSE profession 9.2. It looks like it's a bug in autoyast somewhere. It doesn't seem to handle raid with partitions made with <create>false</create>. Oh well, back to RHEL... :-( Jeremy On Mon, 21 Feb 2005, Jeremy Sanders wrote:
-- Jeremy Sanders <jss@ast.cam.ac.uk> http://www-xray.ast.cam.ac.uk/~jss/ X-Ray Group, Institute of Astronomy, University of Cambridge, UK. Public Key Server PGP Key ID: E1AAE053
participants (1)
-
Jeremy Sanders