Partition order with new autoinst-rpm
Hi, I tried the new autoinst rpms for an install. But it generates the partitions in the wrong order and creates an extended partition, even if there are only four partitions to be created. The order for the partitions (which are /, /boot, swap and lvm) should be /boot first, after that / or swap and the last should be lvm (probably inside an extended partition). Is there any way to force this order? bye Felix ________________________________________ Zeitschriftenabos online bestellen - jetzt neu im Infoboten! http://www.epost.de
* felix.schumacher@epost.de <felix.schumacher@epost.de> [Jun 12. 2002 08:11]:
Hi,
I tried the new autoinst rpms for an install. But it generates the partitions in the wrong order and creates an extended partition, even if there are only four partitions to be created.
The order for the partitions (which are /, /boot, swap and lvm) should be /boot first, after that / or swap and the last should be lvm (probably inside an extended partition).
Is there any way to force this order?
I have just tried a similar configuration like the one you have described and it works fine for me and everything is in the right order, except that all partitions are created as logical, which is the right thing and the default behaviour and was a result of a bug fix ( see bugs page: http://www.suse.de/~nashif/autoinstall/). Please verify in the profile that the partitions are listed in the correct order.. To force the creation of a primary partition, add <partition_type>primary</partition_type> I hope this solves this issue. Regards, Anas -- Anas Nashif <nashif@suse.com>, SuSE Linux AG Montreal (Laval), Canada
On Wed, 12 Jun 2002 felix.schumacher@epost.de wrote:
I tried the new autoinst rpms for an install. But it generates the partitions in the wrong order and creates an extended partition, even if there are only four partitions to be created.
I did not observe a wrong partition order, but for my setup yast did not succeed in creating a file system on my logical volume (same configuration as posted yesterday, but with previously missing <lv> </lv>-tags). The mke2fs command stalled at 0% formatting for about 20 minutes (and ps/top did not show any process time spent on mke2fs). No error messages and no warnings occured during this time. I killed the process and formatting of the other partitions went okay. Any hints? Volkmar -- Volkmar Glauche Department of Neurology E-Mail glauche@uke.uni-hamburg.de UKE Hamburg WWW http://glauche.home.pages.de/ Martinistr. 52 Phone 49(0)40-42803-5781 20246 Hamburg Fax 49(0)40-42803-9955
On Wed, 12 Jun 2002, Volkmar Glauche wrote:
I did not observe a wrong partition order, but for my setup yast did not succeed in creating a file system on my logical volume (same configuration as posted yesterday, but with previously missing <lv> </lv>-tags). The mke2fs command stalled at 0% formatting for about 20 minutes (and ps/top did not show any process time spent on mke2fs). No error messages and no warnings occured during this time. I killed the process and formatting of the other partitions went okay.
It seems, that yast2 does create the VolumeGroup, but does not attempt to create the Logical volume in it. The lvm section now looks like this: <lvm config:type="list"> <lvm_group> <lvm_name>HomeVol</lvm_name> <pesize>4M</pesize> <logical_volumes config:type="list"> <lv> <lv_name>LHomeVol</lv_name> <lv_size>28800mb</lv_size> <lv_fs>ext3</lv_fs> <lv_mount>/export/home</lv_mount> </lv> </logical_volumes> </lvm_group> </lvm> In addition, the <kernel_parameters> </kernel_parameters>-tag works for creating the lilo.conf. However, they are also added for the "failsafe" entry. I don't know if this should be the case by default or if it would be a better idea to leave the failsafe parameters "as is" - because if I would accidentally specify wrong parameters then also failsafe would not boot. Generally, it would be a good idea to have ALL standard decisions made by yast driven by a config file (something like template.xml). This would allow - inspection of standard decisions - change of standard behaviour without undocumented side-effects For partitioning, the option to specify a more detailed partitioning plan (ie assigning custom partition numbers) would be nice. Yours, Volkmar -- Volkmar Glauche Department of Neurology E-Mail glauche@uke.uni-hamburg.de UKE Hamburg WWW http://glauche.home.pages.de/ Martinistr. 52 Phone 49(0)40-42803-5781 20246 Hamburg Fax 49(0)40-42803-9955
On Wed, 12 Jun 2002, Volkmar Glauche wrote:
The lvm section now looks like this:
<lvm config:type="list"> <lvm_group> <lvm_name>HomeVol</lvm_name> <pesize>4M</pesize> <logical_volumes config:type="list"> <lv> <lv_name>LHomeVol</lv_name> <lv_size>28800mb</lv_size> <lv_fs>ext3</lv_fs> <lv_mount>/export/home</lv_mount> </lv> </logical_volumes> </lvm_group> </lvm>
After all I found out, that only 1 of 2 partitions were assigned to the volume group and - again swap space was neither initialised nor entered into /etc/fstab. Here are the relevant sections of the config file: <partitioning config:type="list"> <drive> <device>/dev/sda</device> <use>all</use> <partitions config:type="list"> <partition> <crypt_fs config:type="boolean">false</crypt_fs> <crypt_key/> <filesystem config:type="symbol">swap</filesystem> <filesystem_id config:type="integer">130</filesystem_id> <format config:type="boolean">true</format> <mount/> <size>768M</size> <type>Linux swap</type> </partition> ... some other partitions <partition> <lvm_group>HomeVol</lvm_group> <size>14400M</size> <filesystem_id config:type="integer">142</filesystem_id> <type>Linux LVM</type> </partition> ... some other partitions </partitions> </drive> <drive> <device>/dev/sdb</device> <use>all</use> <partitions config:type="list"> <partition> <crypt_fs config:type="boolean">false</crypt_fs> <crypt_key/> <filesystem config:type="symbol">swap</filesystem> <filesystem_id config:type="integer">130</filesystem_id> <format config:type="boolean">true</format> <mount/> <size>768M</size> <type>Linux swap</type> </partition> ... some other partitions <partition> <filesystem_id config:type="integer">142</filesystem_id> <type>Linux LVM</type> <lvm_group>HomeVol</lvm_group> <size>14400M</size> </partition> ... some other partitions </partitions> </drive> </partitioning> Any help would be greatly appreciated. Volkmar -- Volkmar Glauche Department of Neurology E-Mail glauche@uke.uni-hamburg.de UKE Hamburg WWW http://glauche.home.pages.de/ Martinistr. 52 Phone 49(0)40-42803-5781 20246 Hamburg Fax 49(0)40-42803-9955
On Wed, 12 Jun 2002, Volkmar Glauche wrote:
I did not observe a wrong partition order, Ok, the wrong order was a result of my forcing lvm to be a primary partition, but / and /boot not.
but for my setup yast did not succeed in creating a file system on my logical volume (same configuration same for me. If I change to a console while running the setup I observe that there is no active vg. pvscan shows, that the partition is a pv. vgscan shows, that there are no active vg. But I can see /dev/system/group (I can remove /dev/system and recreate a vg system. After that the installation will continue)
Generally, it would be a good idea to have ALL standard decisions made by yast driven by a config file (something like template.xml). This would allow - inspection of standard decisions - change of standard behaviour without undocumented side-effects For partitioning, the option to specify a more detailed partitioning plan (ie assigning custom partition numbers) would be nice. I wish you could have classes (or templates) which you could easily combine not only in the yast2-config-tool. (which is awful to use if you have to run it in textmode)
The classes should not only be reserved for normal config, but also for software-selections. Btw. Why is it that attribute-type entries are saved as tag-entries in the xml format. like <lvm_group><pesize>8M</pesize></lvm_group> should be <lvm_group pesize="8M"></lvm_group> And is there a real dtd available? It would be nice for editing the xml-files in emacs :) Thanks (sorry for the lengthy mail) Felix ________________________________________ Zeitschriftenabos online bestellen - jetzt neu im Infoboten! http://www.epost.de
* Volkmar Glauche <glauche@uke.uni-hamburg.de> [Jun 12. 2002 10:24]:
On Wed, 12 Jun 2002 felix.schumacher@epost.de wrote:
I tried the new autoinst rpms for an install. But it generates the partitions in the wrong order and creates an extended partition, even if there are only four partitions to be created.
I did not observe a wrong partition order, but for my setup yast did not succeed in creating a file system on my logical volume (same configuration as posted yesterday, but with previously missing <lv> </lv>-tags). The mke2fs command stalled at 0% formatting for about 20 minutes (and ps/top did not show any process time spent on mke2fs). No error messages and no warnings occured during this time. I killed the process and formatting of the other partitions went okay.
Any hints?
I dont have a large harddisk as the one you have in your config, so I removed a zero and create 2 PVs with 1400mb and then <lvm config:type="list"> <lvm_group> <lvm_name>HomeVol</lvm_name> <pesize>4M</pesize> <logical_volumes config:type="list"> <lv> <lv_name>LHomeVol</lv_name> <lv_size>2920mb</lv_size> <lv_fs>ext3</lv_fs> <lv_mount>/home</lv_mount> </lv> </logical_volumes> </lvm_group> </lvm> knowing that the sizes actually do not make sense, as the LV size is bigger than the sum of both PVs!!! Why do you have 29200 as the LV size?? With this wrong size, it stays for a while trying to format the LV! Try some other size for the LV please, it should work then. Anas
Volkmar
-- Volkmar Glauche
Department of Neurology E-Mail glauche@uke.uni-hamburg.de UKE Hamburg WWW http://glauche.home.pages.de/ Martinistr. 52 Phone 49(0)40-42803-5781 20246 Hamburg Fax 49(0)40-42803-9955
-- To unsubscribe, e-mail: suse-autoinstall-unsubscribe@suse.com For additional commands, e-mail: suse-autoinstall-help@suse.com
-- Anas Nashif <nashif@suse.com>, SuSE Linux AG Montreal (Laval), Canada
On Wed, 12 Jun 2002, Anas Nashif wrote:
I dont have a large harddisk as the one you have in your config, so I removed a zero and create 2 PVs with 1400mb and then
<lvm config:type="list"> <lvm_group> <lvm_name>HomeVol</lvm_name> <pesize>4M</pesize> <logical_volumes config:type="list"> <lv> <lv_name>LHomeVol</lv_name> <lv_size>2920mb</lv_size> <lv_fs>ext3</lv_fs> <lv_mount>/home</lv_mount> </lv> </logical_volumes> </lvm_group> </lvm>
In the last config I used (and which I think posted today) the sizes match: ie 14400M for each partition, and 28800mb for the lv_size. Still, as posted in the follow-ups (and cofirmed by Felix), yast2 does not create the lv for me. There is no error message, either (not in the log, not on the screen). Strange... Yours, Volkmar -- Volkmar Glauche Department of Neurology E-Mail glauche@uke.uni-hamburg.de UKE Hamburg WWW http://glauche.home.pages.de/ Martinistr. 52 Phone 49(0)40-42803-5781 20246 Hamburg Fax 49(0)40-42803-9955
participants (3)
-
Anas Nashif
-
felix.schumacher@epost.de
-
Volkmar Glauche