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>
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>
false <mount>/boot</mount>131 primary <size>+100MB</size> </partition> <partition> <filesystem config:type="symbol">swap</filesystem> <format config:type="boolean">true</format>false <mount>swap</mount>131 primary <size>+16GB</size> </partition> <partition> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format>false <mount>/</mount>131 primary <size>+10GB</size> </partition> <partition> <format config:type="boolean">false</format>false 130 extended <size>max</size> </partition> <partition>VG00 false 142 <size>+35GB</size> </partition> </partitions> </drive> <drive> <device>/dev/VG00</device>true <partitions config:type="list"> <partition> <mount>/home</mount> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format>lvm01 <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>lvm02 <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>lvm03 <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>lvm04 <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>lvm05 <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>
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>
false <mount>/boot</mount>131 primary <size>+100MB</size> </partition> <partition> <filesystem config:type="symbol">swap</filesystem> <format config:type="boolean">true</format>false <mount>swap</mount>131 primary <size>+16GB</size> </partition> <partition> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format>false <mount>/</mount>131 primary <size>+10GB</size> </partition> <partition> <format config:type="boolean">false</format>false 130 extended <size>max</size> </partition> <partition>VG00 false 142 <size>+35GB</size> </partition> </partitions> </drive> <drive> <device>/dev/VG00</device>true <partitions config:type="list"> <partition> <mount>/home</mount> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format>lvm01 <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>lvm02 <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>lvm03 <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>lvm04 <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>lvm05 <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
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>
false <mount>/boot</mount>131 primary <size>+100MB</size> </partition> <partition> <filesystem config:type="symbol">swap</filesystem> <format config:type="boolean">true</format>false <mount>swap</mount>131 primary <size>+16GB</size> </partition> <partition> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format>false <mount>/</mount>131 primary <size>+10GB</size> </partition> <partition> <format config:type="boolean">false</format>false 130 extended <size>max</size> </partition> <partition>VG00 false 142 <size>+35GB</size> </partition> </partitions> </drive> <drive> <device>/dev/VG00</device>true <partitions config:type="list"> <partition> <mount>/home</mount> <filesystem config:type="symbol">reiser</filesystem> <format config:type="boolean">true</format>lvm01 <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>lvm02 <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>lvm03 <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>lvm04 <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>lvm05 <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>
false 130 extended <size>max</size> </partition> <partition>VG00 false 142 <size>+35GB</size> </partition>You do not need to an extended partition to create an LVM so reduce it to
<partition>
VG00 false 142 <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
participants (2)
-
LDB
-
Rob Thompson