Mailinglist Archive: opensuse-autoinstall (59 mails)

< Previous Next >
Re: [opensuse-autoinstall] Error in autoyast install process
  • From: Mike Marion <mmarion@xxxxxxxxxxxx>
  • Date: Fri, 11 Jan 2008 16:46:54 -0800
  • Message-id: <20080112004653.GA21318@xxxxxxxxxxxxxxxxxxxxxx>
On Fri, Jan 11, 2008 at 03:31:18PM -0500, Wayman Smith wrote:

I have modified my autoyast to a simpler partitioning scheme. This seems
to work. However, eventually I will need to add support for a more
advanced partitioning scheme with multiple drives. Do you suggest using
the Autoinstallation tool, or editing the bare xml file? I have attached
the modified autoinst.xml file. Below is the partitioning scheme I would
like to implement.

You can already do more advanced partitioning for multiple drives (and
differing numbers/types of drives) by creating the partitioning info in
separate files and using the existing rules framework to read in the
matching situation automatically.

sda1
- /boot 100M
- /swap 2GB
- / 30GB
- LVM max
sda2
- LVM max
volgrp1
- logical volume 1 max

I'm doing some LVM stuff (on one disk) already. I'm using only some of
the disk for the OS and leaving the rest available for xen instances.

I attached the file for doing this if you're curious about how to get
LVM going in autoyast.

If you have a situation with sda and sdb ( assume you actually meant
that above vs sda1 and sda2) you could use something based on my
attached file with 2 sections that create the initial LVM devices, one
with:
<device>/dev/sda</device>
and named something like:
<lvm_group>diskone</lvm_group>
and then second section exactly the same except for the /boot partition
and the following differences:
<device>/dev/sdb</device>
and named something like:
<lvm_group>disktwo</lvm_group>

Then you can make your partitions on:
<device>/dev/diskone</device>
and
<device>/dev/disktwo</device>

You'll note from my example too, that you don't need to keep the OS
partitions outside of the LVM group.. only /boot needs to be outside it
so that grub (or lilo or any bootloader you like) can read the kernel
and initrd. Even swap works find inside lvm.

--
Mike Marion-Unix SysAdmin/Staff IT Engineer-http://www.qualcomm.com
[Lisa and Bart used Gandpa's name on a cartoon script they wrote]
Bart - "Didn't you wonder why you were getting checks for doing absolutely
nothing?"
Grandpa - "I figured 'cause the Democrats are in power again."
<?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";>
<partitioning config:type="list">
<drive>
<device></device>
<partitions config:type="list">
<partition>
<filesystem config:type="symbol">reiser</filesystem>
<format config:type="boolean">true</format>
<mount>/boot</mount>
<partition_id config:type="integer">131</partition_id>
<partition_nr config:type="integer">1</partition_nr>
<partition_type>primary</partition_type>
<size>500mb</size>
</partition>
<partition>
<lvm_group>system</lvm_group>
<partition_id config:type="integer">142</partition_id>
<partition_nr config:type="integer">2</partition_nr>
<partition_type>primary</partition_type>
<size>max</size>
</partition>
</partitions>
<use>all</use>
</drive>
<drive>
<device>/dev/system</device>
<is_lvm_vg config:type="boolean">true</is_lvm_vg>
<lvm2 config:type="boolean">true</lvm2>
<partitions config:type="list">
<partition>
<filesystem config:type="symbol">ext2</filesystem>
<format config:type="boolean">true</format>
<lv_name>lv_afscache</lv_name>
<mount>/usr/vice/cache</mount>
<size>4gb</size>
</partition>
<partition>
<filesystem config:type="symbol">reiser</filesystem>
<format config:type="boolean">true</format>
<lv_name>lv_root</lv_name>
<mount>/</mount>
<size>8gb</size>
</partition>
<partition>
<filesystem config:type="symbol">swap</filesystem>
<format config:type="boolean">true</format>
<lv_name>lv_swap</lv_name>
<mount>swap</mount>
<size>4gb</size>
</partition>
<partition>
<filesystem config:type="symbol">reiser</filesystem>
<format config:type="boolean">true</format>
<lv_name>lv_var</lv_name>
<mount>/var</mount>
<size>2gb</size>
</partition>
</partitions>
<pesize>4M</pesize>
<use>all</use>
</drive>
</partitioning>
</profile>
< Previous Next >