<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Michael Tautschnig a écrit :
<blockquote
cite="mid:20100413095013.GK26478@laptop165.dbai.tuwien.ac.at"
type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">Ok, this will need some more experimental work I'm afraid. Could you try to do
some manual steps and report back before we actually build this into
setup-storage?
On that particular host, I'd like to know how
parted -s /dev/sda mklabel msdos
parted -s /dev/sda mkpart primary ext3 512B 536871423B
parted -s /dev/sda mkpart primary 536871424B 80026361855B
parted -s /dev/sda set 1 boot on
mkfs.ext3 /dev/sda1
parted -s /dev/sda set 2 lvm on
vgchange -a y vg0
behaves in comparison to
vgchange -a n vg0
parted -s /dev/sda mklabel msdos
parted -s /dev/sda mkpart primary ext3 512B 536871423B
parted -s /dev/sda mkpart primary 536871424B 80026361855B
parted -s /dev/sda set 1 boot on
mkfs.ext3 /dev/sda1
parted -s /dev/sda set 2 lvm on
vgchange -a y vg0
</pre>
</blockquote>
<pre wrap="">Apart from the extra output line, I can see no difference : in both
cases, the LVM volumes are back and active after the last vgchange.
Here's the full output of the second command list.
</pre>
</blockquote>
<pre wrap=""><!---->
[...]
Could you maybe do an explicit vgchange -a y vg0 beforehand? Somehow it should
be possible to reprocduce the error that parted reports when doing, e.g., the
second mkpart. That error was
Error: Error informing the kernel about modifications to partition /dev/sda2 --
Device or resource busy.
in <a class="moz-txt-link-freetext" href="http://paste.debian.net/67978/">http://paste.debian.net/67978/</a>.
</pre>
</blockquote>
I had started lvm before running the commands, but it's not enough to
reproduce the problem. I have also tried to run them after having
stopped the installation, didn't work either.<br>
I finally inserted the vgchange line in Commands.pm, it seems to have
been run as expected, and the result is still an error that happens
later.<br>
The result is at <a class="moz-txt-link-freetext" href="http://paste.debian.net/68689/">http://paste.debian.net/68689/</a>, and my (quite sloppy <span
class="moz-smiley-s1"><span> :-) </span></span>) patch is below:<br>
<br>
--- Commands.pm.~1~ 2010-04-13 13:32:32.000000000 +0200<br>
+++ Commands.pm 2010-04-13 15:20:11.000000000 +0200<br>
@@ -806,6 +806,7 @@<br>
or die "Can't change disklabel, partitions are to be preserved\n";<br>
<br>
# write the disklabel to drop the previous partition table<br>
+ &FAI::push_command( "vgchange -a n vg0", "vg_created_vg0",
"vg_disabled_vg0" );<br>
&FAI::push_command( "parted -s $disk mklabel $label",
"exist_$disk",<br>
"cleared1_$disk" );<br>
<br>
-- <br>
Nicolas<br>
</body>
</html>