<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.28.1">
</HEAD>
<BODY>
Hi,<BR>
<BR>
We would like to use LVM on an entire disk, especially when making partitions over than 2T (xfs).<BR>
<BR>
We would like to use someting like that...<BR>
<BR>
disk_config disk1 bootable:1<BR>
primary        /boot                100        ext3        rw<BR>
primary        swap                1G        swap        sw<BR>
primary        /                1G        ext3        rw,errors=remount-ro<BR>
logical        /usr                1500        ext3        rw<BR>
logical        /var                1G        ext3        rw<BR>
logical        /home                512        ext3        rw<BR>
logical        /tmp                1G        ext3        rw<BR>
<BR>
disk_config disk2<BR>
<BR>
disk_config lvm<BR>
vg BACKUP                disk2<BR>
BACKUP-BACKUP        /BACKUP                1T        ext3        rw,noatime<BR>
BACKUP-BACKUP2        /BACKUP2        5T-        xfs        rw,noatime<BR>
<BR>
Unfortunately, we we unable to use this syntax :<BR>
disk_config disk2<BR>
disk_config lvm<BR>
vg BACKUP                disk2<BR>
...<BR>
<BR>
But something like, works, but not for parts over 2T.<BR>
disk_config disk2<BR>
primary        -                1G-        -        -<BR>
<BR>
disk_config lvm<BR>
vg BACKUP                disk2.1<BR>
...<BR>
<BR>
I have patched setup-storage to handle LVM on an entire disk like this:<BR>
file: usr/share/fai/setup-storage/Parser.pm near lines 607<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($dev =~ m/^disk(\d+)\.(\d+)/) {<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $dev = &amp;FAI::make_device_name(&quot;/dev/&quot; . $FAI::disks[ $1 - 1 ], $2);<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } elsif ($dev =~ m/^disk(\d+)/) {<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $dev = &quot;/dev/&quot; . $FAI::disks[ $1 - 1 ];<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else {<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $dev = &quot;/dev/$dev&quot;;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>
<BR>
Hope this will (or has already) be(en) integrated in next release :)<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
<PRE>
-- 
Mathieu Alorent
Shell&amp;Core Sophia-Antipolis
AUSY
Pour France Telecom &#8211; OPF/PORTAILS/DOP/HEBEX/SOPHIA

T&#233;l: 04 97 12 6226

<A HREF="mailto:malorent.ext@orange-ftgroup.com">malorent.ext@orange-ftgroup.com</A>

La signature de ce mail peut &#234;tre v&#233;rifi&#233;e en installant les autorit&#233;s de certifications CAcert suivantes :
<A HREF="http://www.cacert.org/certs/root.crt">http://www.cacert.org/certs/root.crt</A>
<A HREF="http://www.cacert.org/certs/class3.crt">http://www.cacert.org/certs/class3.crt</A>
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>