RE: [suse-autoinstall] SLES 9 SP3 Network Install Issue
OK, again I'm having problems with partitions, but this time during the autoinstall: I tell the server the path to my autoyasttest.xml and everything looks great until it goes to partition/format/mount the drives. It's saying it cannot format hda6, however it shouldn't even be looking at or creating an hda6. One thing I noticed while using the Yast2 autoinstall option is that it doesn't let you specifically say you want to wipe and use the entire drive for a new install. Here's the partitioning info in my autoyasttest.xml: -------------------------------------- <partitioning config:type="list"> <drive> <device>/dev/hda</device> <initialize config:type="boolean">false</initialize> <partitions config:type="list"> <partition> <crypt>twofish256</crypt> <filesystem config:type="symbol">swap</filesystem> <format config:type="boolean">true</format> <loop_fs config:type="boolean">false</loop_fs> <mount>swap</mount> <partition_id config:type="integer">130</partition_id> <size>auto</size> </partition> <partition> <crypt>twofish256</crypt> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <loop_fs config:type="boolean">false</loop_fs> <mount>/boot</mount> <partition_id config:type="integer">131</partition_id> <size>auto</size> </partition> <partition> <crypt>twofish256</crypt> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <loop_fs config:type="boolean">false</loop_fs> <mount>/</mount> <partition_id config:type="integer">131</partition_id> <partition_type>primary</partition_type> <size>max</size> </partition> </partitions> <use>all</use> </drive> </partitioning> ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
Oh, and note that I've tried: <initialize config:type="boolean">true</initialize> as well as 'false' with the same results. Any help would be greatly appreciated. Thanks, Warren Quoting warren@leetnet.com:
OK, again I'm having problems with partitions, but this time during the autoinstall:
I tell the server the path to my autoyasttest.xml and everything looks great until it goes to partition/format/mount the drives. It's saying it cannot format hda6, however it shouldn't even be looking at or creating an hda6.
One thing I noticed while using the Yast2 autoinstall option is that it doesn't let you specifically say you want to wipe and use the entire drive for a new install.
Here's the partitioning info in my autoyasttest.xml:
--------------------------------------
<partitioning config:type="list"> <drive> <device>/dev/hda</device> <initialize config:type="boolean">false</initialize> <partitions config:type="list"> <partition> <crypt>twofish256</crypt> <filesystem config:type="symbol">swap</filesystem> <format config:type="boolean">true</format> <loop_fs config:type="boolean">false</loop_fs> <mount>swap</mount> <partition_id config:type="integer">130</partition_id> <size>auto</size> </partition> <partition> <crypt>twofish256</crypt> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <loop_fs config:type="boolean">false</loop_fs> <mount>/boot</mount> <partition_id config:type="integer">131</partition_id> <size>auto</size> </partition> <partition> <crypt>twofish256</crypt> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <loop_fs config:type="boolean">false</loop_fs> <mount>/</mount> <partition_id config:type="integer">131</partition_id> <partition_type>primary</partition_type> <size>max</size> </partition> </partitions> <use>all</use> </drive> </partitioning>
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
-- To unsubscribe, e-mail: suse-autoinstall-unsubscribe@suse.com For additional commands, e-mail: suse-autoinstall-help@suse.com
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
On Thursday 18 May 2006 16:39, warren@leetnet.com wrote:
I tell the server the path to my autoyasttest.xml and everything looks great until it goes to partition/format/mount the drives. It's saying it cannot format hda6, however it shouldn't even be looking at or creating an hda6.
it seems that you hit a bug in SLES9SP3 autoyast gets confused by the "max" on the primary partition. Either remove the "max" and replace it by a size (like "10GB") or remove the <partition_type>primary</partition_type> or specify <partition_type>primary</partition_type> for all partitions. There is a bug in the "max" calculation in SP3 :( -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany e-mail: uwe.gansert@suse.de, Tel: +49-(0)911-74053-0, Fax: +49-(0)911-74053-476, Web: http://www.suse.de
Thank you for your help. This worked wonderfully. However, once the install is complete I have /dev/hda6 and /dev/hda7 as my /boot and / partitions. Not that it's a huge issue, but to keep things clean I would obviously like to have these on /dev/hda1 and /dev/hda2. Is this because it uses /dev/hdax during the installation and can't make/mount those while the install is running? One more thing: When using the AutoYast utility to include a postinstall script, it embeds the shell script in the xml file and has a blank <location> tag, and does not run. What's the recommended way to do this? I tried specifying the <location> of the script (full path + script name), however, this didn't work either. Thanks for your help! Warren On Thursday 18 May 2006 16:39, warren@leetnet.com wrote:
I tell the server the path to my autoyasttest.xml and everything looks great until it goes to partition/format/mount the drives. It's saying it cannot format hda6, however it shouldn't even be looking at or creating an hda6.
it seems that you hit a bug in SLES9SP3 autoyast gets confused by the "max" on the primary partition. Either remove the "max" and replace it by a size (like "10GB") or remove the <partition_type>primary</partition_type> or specify <partition_type>primary</partition_type> for all partitions. There is a bug in the "max" calculation in SP3 :(
On Friday 19 May 2006 01:46, Warren Crigger wrote:
Thank you for your help. This worked wonderfully. However, once the install is complete I have /dev/hda6 and /dev/hda7 as my /boot and / partitions. Not that it's a huge issue, but to keep things clean I would obviously like to have these on /dev/hda1 and /dev/hda2.
try to add <partition_type>primary</partition_type> to all partitions in the profile then.
One more thing: When using the AutoYast utility to include a postinstall script, it embeds the shell script in the xml file and has a blank <location> tag, and does not run. What's the recommended way to do this?
the <location> element is only needed if you don't have the script in the autoyast profile itself. Autoyast will try to fetch the script from the <location> then. http://www.suse.com/~ug/autoyast_doc/createprofile.scripts.html#post-insall....
I tried specifying the <location> of the script (full path + script name), however, this didn't work either.
post scripts should work. Their use is very common. Maybe there is a syntax error in the script? After the installation, you can find a log about the scripts run in /var/adm/autoinstall/logs (I should add the to the documentation). Anyway, if you don't find a log there, look at /var/log/YaST2/y2log after the installation and search for your script name. Maybe you can see errors there. -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany e-mail: uwe.gansert@suse.de, Tel: +49-(0)911-74053-0, Fax: +49-(0)911-74053-476, Web: http://www.suse.de
Thank you for your help. This worked wonderfully. However, once the install is complete I have /dev/hda6 and /dev/hda7 as my /boot and / partitions. Not that it's a huge issue, but to keep things clean I would obviously like to have these on /dev/hda1 and /dev/hda2.
try to add <partition_type>primary</partition_type> to all partitions in the profile then.
If I do this, I lose my ability to use the max size for / partition because of the autoyast bug as discussed earlier. Is there any way around this? I haven't tested partition_nr yet with size max, would this work or would that hit the bug as well?
After the installation, you can find a log about the scripts run in /var/adm/autoinstall/logs (I should add the to the documentation).
Thanks for the great piece of info. I'm now able to find out where my script bails. It's during the make depend step of compiling ProFTPD 1.3, in which I get an error 127. If I don't run the postinstall script from autoyast, I can successfully run it once installation is complete with no problems. Any suggestions here? Again, thanks for your help and the great site documenting autoyast. Warren ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
On Tuesday 23 May 2006 17:52, warren@leetnet.com wrote:
try to add <partition_type>primary</partition_type> to all partitions in the profile then.
If I do this, I lose my ability to use the max size for / partition because of the autoyast bug as discussed earlier.
if you add <partition_type>primary</partition_type> to all(!) partitions in your profile, it should work. The root partition has to be the third in the profile (hda3). If you want it to be hda1, I don't know a solution (you can try to put it as third partition in the profile with partition_nr=1 but I don't know if that helps. I did not look deep enough into the bug).
I haven't tested partition_nr yet with size max, would this work or would that hit the bug as well?
I don't think so but you can try the hint above (third position in profile with partition_nr=1).
After the installation, you can find a log about the scripts run in /var/adm/autoinstall/logs (I should add the to the documentation).
Thanks for the great piece of info. I'm now able to find out where my script bails. It's during the make depend step of compiling ProFTPD 1.3, in which I get an error 127. If I don't run the postinstall script from autoyast, I can successfully run it once installation is complete with no problems. Any suggestions here?
I have to admit, I never tried to compile software in a post-script. Have you tried to use an autoyast init-script instead of a post-script? That runs a lot later then the post-script (actually even later than the proftpd would start, that might be a problem in you case). -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany e-mail: uwe.gansert@suse.de, Tel: +49-(0)911-74053-0, Fax: +49-(0)911-74053-476, Web: http://www.suse.de
I am having difficulty in getting my classes to merge together properly. (i have to duplicate entries to get them read or, re-order them causing other entries to be dropped, etc) I have a rules.xml file that does a custom script to snarf cmdline opts that define a SITE and a NODETYPE variable. From that, i get inclusion of 3 primary profiles: base.xml site-@custom1@.xml node-@custom2@.xml Within each of these files are some classes options that pull in other files from {conffiles}/classes/[Base|Site@custom1@|@custom2@]/ But, the resultant merged profile often has only partial data. and the y2log file shows that it didn't even bother to notice some of the class inclusions in the files above. (it does show that it processed the 3 primary .xml files). E.G. I have: <profile> ... <install> <classes config:type="list"> <class> <class_name>Base</class_name> <configuration>Host.xml</configuration> </class> <class> <class_name>Base</class_name> <configuration>UserDefaults.xml</configuration> </class> <!-- These above two fail to get incorporated or acknowledged in y2log --> <class> <class_name>Base</class_name> <configuration>Groups.xml</configuration> </class> <class> <class_name>Base</class_name> <configuration>Sysconfig.xml</configuration> </class> <!-- Several other intervening class files *DO* get read and merged --> <class> <class_name>Base</class_name> <configuration>Host.xml</configuration> </class> <class> <class> <class_name>Base</class_name> <configuration>UserDefaults.xml</configuration> </class> <!-- *BUT* if if i re-declare the exact same two failing class entries from the top, they NOW get read and merged here ?! --> (these duplicated lines weren't in the original file and y2log showed it never bothered to look for Base/Host.xml or Base/UserDefaults.xml) ... I can't find any documentation showing that classes need to be in a specific order or anything else, *BUT* one of the other files that has just 2 class inclusions works fine, but another with a single entry doesn't work, unless i include the exact same <class>..</class> entry 3 times!? Are there known issues with the classing system for this version? If so, any useful workarounds or debugging features that would help? thanks, --stephen -- Stephen Dowdy - Systems Administrator - NCAR/RAL 303.497.2869 - sdowdy@ucar.edu - http://www.ral.ucar.edu/~sdowdy/
On Wednesday 24 May 2006 21:24, Stephen Dowdy wrote:
I am having difficulty in getting my classes to merge together properly. (i have to duplicate entries to get them read or, re-order them causing other entries to be dropped, etc) ... Are there known issues with the classing system for this version? If so, any useful workarounds or debugging features that would help?
please read: http://www.suse.de/~ug/autoyast_doc/merging.html -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany e-mail: uwe.gansert@suse.de, Tel: +49-(0)911-74053-0, Fax: +49-(0)911-74053-476, Web: http://www.suse.de
participants (4)
-
Stephen Dowdy
-
Uwe Gansert
-
Warren Crigger
-
warren@leetnet.com