Hi, I am trying to use autoyast and format 5 LVM partitions during install (dont ask ;-). The control file is read correctly, and when I look in the Partitioning portion of the YAST installer everything looks proper - but when I choose accept and autoyast begins formating the drives I get the following error: LVM ERROR echo y|/sbin/pvcreate -ff -M2 /dev/sda5 /dev/sda5: Couldn't find device. Here is my XML file: Thanks, Rob </general> <partitioning config:type="list"> <drive> <device>/dev/sda</device> <initialize config:type="boolean">true</initialize> <partitions config:type="list"> <partition> <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> <partition_type>primary</partition_type> <size>+100MB</size> </partition> <partition> <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">131</partition_id> <partition_type>primary</partition_type> <size>+16GB</size> </partition> <partition> <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>+10GB</size> </partition> <partition> <format config:type="boolean">false</format> <loop_fs config:type="boolean">false</loop_fs> <partition_id config:type="integer">130</partition_id> <partition_type>extended</partition_type> <size>max</size> </partition> <partition> <lvm_group>VG00</lvm_group> <loop_fs config:type="boolean">false</loop_fs> <partition_id config:type="integer">142</partition_id> <size>+35GB</size> </partition> </partitions> </drive> <drive> <device>/dev/VG00</device> <is_lvm_vg config:type="boolean">true</is_lvm_vg> <partitions config:type="list"> <partition> <mount>/home</mount> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <lv_name>lvm01</lv_name> <lvm2 config:type="boolean">true</lvm2> <size>+10GB</size> </partition> <partition> <mount>/tmp</mount> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <lv_name>lvm02</lv_name> <lvm2 config:type="boolean">true</lvm2> <size>+5GB</size> </partition> <partition> <mount>/var</mount> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <lv_name>lvm03</lv_name> <lvm2 config:type="boolean">true</lvm2> <size>+5GB</size> </partition> <partition> <mount>/usr</mount> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <lv_name>lvm04</lv_name> <lvm2 config:type="boolean">true</lvm2> <size>+5GB</size> </partition> <partition> <mount>/opt</mount> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <lv_name>lvm05</lv_name> <lvm2 config:type="boolean">true</lvm2> <size>+10GB</size> </partition> </partitions> <use>all</use> <pesize>4M</pesize> </drive> </partitioning> <software>
Rob Thompson wrote:
Hi, I am trying to use autoyast and format 5 LVM partitions during install (dont ask ;-). The control file is read correctly, and when I look in the Partitioning portion of the YAST installer everything looks proper - but when I choose accept and autoyast begins formating the drives I get the following error:
LVM ERROR echo y|/sbin/pvcreate -ff -M2 /dev/sda5 /dev/sda5: Couldn't find device.
Here is my XML file:
Thanks, Rob
</general> <partitioning config:type="list"> <drive> <device>/dev/sda</device> <initialize config:type="boolean">true</initialize> <partitions config:type="list"> <partition> <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> <partition_type>primary</partition_type> <size>+100MB</size> </partition> <partition> <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">131</partition_id> <partition_type>primary</partition_type> <size>+16GB</size> </partition> <partition> <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>+10GB</size> </partition> <partition> <format config:type="boolean">false</format> <loop_fs config:type="boolean">false</loop_fs> <partition_id config:type="integer">130</partition_id> <partition_type>extended</partition_type> <size>max</size> </partition> <partition> <lvm_group>VG00</lvm_group> <loop_fs config:type="boolean">false</loop_fs> <partition_id config:type="integer">142</partition_id> <size>+35GB</size> </partition> </partitions> </drive> <drive> <device>/dev/VG00</device> <is_lvm_vg config:type="boolean">true</is_lvm_vg> <partitions config:type="list"> <partition> <mount>/home</mount> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <lv_name>lvm01</lv_name> <lvm2 config:type="boolean">true</lvm2> <size>+10GB</size> </partition> <partition> <mount>/tmp</mount> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <lv_name>lvm02</lv_name> <lvm2 config:type="boolean">true</lvm2> <size>+5GB</size> </partition> <partition> <mount>/var</mount> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <lv_name>lvm03</lv_name> <lvm2 config:type="boolean">true</lvm2> <size>+5GB</size> </partition> <partition> <mount>/usr</mount> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <lv_name>lvm04</lv_name> <lvm2 config:type="boolean">true</lvm2> <size>+5GB</size> </partition> <partition> <mount>/opt</mount> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <lv_name>lvm05</lv_name> <lvm2 config:type="boolean">true</lvm2> <size>+10GB</size> </partition> </partitions> <use>all</use> <pesize>4M</pesize> </drive> </partitioning> <software>
I am going through a lot of LVM autoyast issues. I think most are resolved but I can try to give you hints from what I have learned. :) From what I understand, the "+" between the <size></size> is not necessary. Also, <partition> <format config:type="boolean">false</format> <loop_fs config:type="boolean">false</loop_fs> <partition_id config:type="integer">130</partition_id> <partition_type>extended</partition_type> <size>max</size> </partition> <partition> <lvm_group>VG00</lvm_group> <loop_fs config:type="boolean">false</loop_fs> <partition_id config:type="integer">142</partition_id> <size>+35GB</size> </partition> You do not need to an extended partition to create an LVM so reduce it to <partition> <lvm_group>VG00</lvm_group> <loop_fs config:type="boolean">false</loop_fs> <partition_id config:type="integer">142</partition_id> <size>free</size> </partition> Also, please make sure you are using "free" and "max" in the proper places. :) I hope this helps .. I will write more once I have more time, LDB
LDB, This was the solution. Thanks so much! Rob Thompson On Wed, 2006-01-11 at 18:08 -0500, LDB wrote:
Rob Thompson wrote:
Hi, I am trying to use autoyast and format 5 LVM partitions during install (dont ask ;-). The control file is read correctly, and when I look in the Partitioning portion of the YAST installer everything looks proper - but when I choose accept and autoyast begins formating the drives I get the following error:
LVM ERROR echo y|/sbin/pvcreate -ff -M2 /dev/sda5 /dev/sda5: Couldn't find device.
Here is my XML file:
Thanks, Rob
</general> <partitioning config:type="list"> <drive> <device>/dev/sda</device> <initialize config:type="boolean">true</initialize> <partitions config:type="list"> <partition> <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> <partition_type>primary</partition_type> <size>+100MB</size> </partition> <partition> <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">131</partition_id> <partition_type>primary</partition_type> <size>+16GB</size> </partition> <partition> <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>+10GB</size> </partition> <partition> <format config:type="boolean">false</format> <loop_fs config:type="boolean">false</loop_fs> <partition_id config:type="integer">130</partition_id> <partition_type>extended</partition_type> <size>max</size> </partition> <partition> <lvm_group>VG00</lvm_group> <loop_fs config:type="boolean">false</loop_fs> <partition_id config:type="integer">142</partition_id> <size>+35GB</size> </partition> </partitions> </drive> <drive> <device>/dev/VG00</device> <is_lvm_vg config:type="boolean">true</is_lvm_vg> <partitions config:type="list"> <partition> <mount>/home</mount> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <lv_name>lvm01</lv_name> <lvm2 config:type="boolean">true</lvm2> <size>+10GB</size> </partition> <partition> <mount>/tmp</mount> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <lv_name>lvm02</lv_name> <lvm2 config:type="boolean">true</lvm2> <size>+5GB</size> </partition> <partition> <mount>/var</mount> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <lv_name>lvm03</lv_name> <lvm2 config:type="boolean">true</lvm2> <size>+5GB</size> </partition> <partition> <mount>/usr</mount> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <lv_name>lvm04</lv_name> <lvm2 config:type="boolean">true</lvm2> <size>+5GB</size> </partition> <partition> <mount>/opt</mount> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <lv_name>lvm05</lv_name> <lvm2 config:type="boolean">true</lvm2> <size>+10GB</size> </partition> </partitions> <use>all</use> <pesize>4M</pesize> </drive> </partitioning> <software>
I am going through a lot of LVM autoyast issues. I think most are resolved but I can try to give you hints from what I have learned. :)
From what I understand, the "+" between the <size></size> is not necessary.
Also,
<partition> <format config:type="boolean">false</format> <loop_fs config:type="boolean">false</loop_fs> <partition_id config:type="integer">130</partition_id> <partition_type>extended</partition_type> <size>max</size> </partition> <partition> <lvm_group>VG00</lvm_group> <loop_fs config:type="boolean">false</loop_fs> <partition_id config:type="integer">142</partition_id> <size>+35GB</size> </partition>
You do not need to an extended partition to create an LVM so reduce it to
<partition> <lvm_group>VG00</lvm_group> <loop_fs config:type="boolean">false</loop_fs> <partition_id config:type="integer">142</partition_id> <size>free</size> </partition>
Also, please make sure you are using "free" and "max" in the proper places. :)
I hope this helps .. I will write more once I have more time,
LDB
Rob Thompson wrote:
Hi, I am trying to use autoyast and format 5 LVM partitions during install (dont ask ;-). The control file is read correctly, and when I look in the Partitioning portion of the YAST installer everything looks proper - but when I choose accept and autoyast begins formating the drives I get the following error:
LVM ERROR echo y|/sbin/pvcreate -ff -M2 /dev/sda5 /dev/sda5: Couldn't find device.
Here is my XML file:
Thanks, Rob
</general> <partitioning config:type="list"> <drive> <device>/dev/sda</device> <initialize config:type="boolean">true</initialize> <partitions config:type="list"> <partition> <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> <partition_type>primary</partition_type> <size>+100MB</size> </partition> <partition> <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">131</partition_id> <partition_type>primary</partition_type> <size>+16GB</size> </partition> <partition> <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>+10GB</size> </partition> <partition> <format config:type="boolean">false</format> <loop_fs config:type="boolean">false</loop_fs> <partition_id config:type="integer">130</partition_id> <partition_type>extended</partition_type> <size>max</size> </partition> <partition> <lvm_group>VG00</lvm_group> <loop_fs config:type="boolean">false</loop_fs> <partition_id config:type="integer">142</partition_id> <size>+35GB</size> </partition> </partitions> </drive> <drive> <device>/dev/VG00</device> <is_lvm_vg config:type="boolean">true</is_lvm_vg> <partitions config:type="list"> <partition> <mount>/home</mount> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <lv_name>lvm01</lv_name> <lvm2 config:type="boolean">true</lvm2> <size>+10GB</size> </partition> <partition> <mount>/tmp</mount> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <lv_name>lvm02</lv_name> <lvm2 config:type="boolean">true</lvm2> <size>+5GB</size> </partition> <partition> <mount>/var</mount> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <lv_name>lvm03</lv_name> <lvm2 config:type="boolean">true</lvm2> <size>+5GB</size> </partition> <partition> <mount>/usr</mount> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <lv_name>lvm04</lv_name> <lvm2 config:type="boolean">true</lvm2> <size>+5GB</size> </partition> <partition> <mount>/opt</mount> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format> <lv_name>lvm05</lv_name> <lvm2 config:type="boolean">true</lvm2> <size>+10GB</size> </partition> </partitions> <use>all</use> <pesize>4M</pesize> </drive> </partitioning> <software>
Also, xmllint works well. :) LDB
participants (2)
-
LDB
-
Rob Thompson