ERROR: could not read device /dev/lvm
Michael Tautschnig
mt at debian.org
Thu Jun 26 21:38:45 CEST 2008
[...]
>
>
> By the way, for fai-client 3.2.8 is it normal that installation fails if
> a target hard drive contains LVM volume? I'm just wondering is this a
> bug or a feature. The same disk layout configuration works if I erase a
> couple of megabytes in the beginning of the disk.
>
> I haven't looked closely on how to disable this behaviour and so far
> It's been a minor annoyance,
>
> Here is an exempt of a log file:
>
[...]
This has been reported before, but you're the first to provide a log - thanks!!!
Could you please apply the attached patch to
/usr/lib/fai/setup-storage/Volumes.pm in your NFSROOT and retry? Quite likely
there are some more bugs hidden in the respective code, but the logs will likely
help to fix this quite soon.
Thanks a lot,
Michael
-------------- next part --------------
Index: Volumes.pm
===================================================================
--- Volumes.pm (revision 4998)
+++ Volumes.pm (working copy)
@@ -317,8 +317,10 @@
# store the physical volumes
my %pv_info = get_physical_volume_information($vg);
- @{ $FAI::current_lvm_config{$vg}{physical_volumes} } =
- sort keys %{ get_physical_volume_information($vg) };
+ foreach my $pv_name (sort keys %pv_info) {
+ push @{ $FAI::current_lvm_config{$vg}{physical_volumes} },
+ %pv_info{$pv_name}{device};
+ }
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20080626/5c911e5d/attachment.bin
More information about the linux-fai
mailing list