<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>Hi to 
all,<BR><BR>I'm trying to use LVM on my new dual Opteron with 64-bit Gentoo and 
have<BR>some troubles. <BR>My system is :<BR><BR>- dual Opteron 240 on TYAN 
Thunder S2885<BR>-2 Gb RAM<BR>-ATA RAID Controller 3Ware Escalade 7506-12 (12 
IDE ports, hardware XOR,<BR>supports multiple RAD fields and separate discs, 
does RAID 0/1/10/5)<BR>- 4 x 180 Gb discs <BR>- 6 x 200 Gb discs<BR><BR>4 CDRW 
units</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>gentoo kernel 
2.6 with usual gentoo patches. K</FONT></FONT><FONT face=Arial size=2><FONT 
face="Times New Roman" size=3>ernel has devfs, pts etc compiled-in </DIV><FONT 
face=Arial size=2></FONT><FONT face=Arial size=2></FONT><FONT face=Arial 
size=2></FONT>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><BR>Driver 
for 3ware is also compiled in kernel (not as a module) as are all main scsi 
modules...<BR><BR>All CDRW units are connected to MB's primary and secondary 
channel.<BR><BR>All discs are on 3Ware card.<BR><BR>Five 200 GB units are in 
RAID5 array and four 180 Gb units and one 200 GB are<BR>free. </DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><FONT 
face=Arial size=2></FONT><BR>Machine sees 3Ware card as a SCSI controller with 
one big SCSI 800 Gb disc<BR>and five smaller discs.<BR><BR>I have partitioned 
array in three partitions:</DIV>
<DIV>-small ext2 /boot partition (512 Mb or so)</DIV>
<DIV><FONT face=Arial size=2>-</FONT>4 Gb swap partition</DIV>
<DIV>-the rest (cca 790 GB) is type 8E partition for LVM to be mounted 
as /<BR><BR>I have emerged LVM2 tools, made volume group etc and formatted it 
under<BR>ext3.<BR><BR>I can activate it and mount it, but after reboot kernel 
doesn't see it<BR>anymore...<BR></DIV>
<DIV>Manual recommends using special script called lvmcreate_initdr to do 
initrd initialisations, but my lvm2 doesn't have that script. After many trials 
and errors  i have made initrd which succeeds with LVM initialisation, but 
machine reboots just at the point when it should drop initrd environment and 
jump into root  on LV.</DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>In the initrd environment machine recognises VG and 
its LV just fine. I can mount it and check it, but right after returning from 
linuxrc script machine spews something like:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>3w-xxxx driver: shutting off card (0)</FONT></DIV>
<DIV><FONT face=Arial size=2>3w-xxxx: reboot  (not sure about that one, it 
is shown just for a short moment)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Otherwise, I can boot just fine from any other 
physical partition on one of other discs on the 3Ware card</FONT></DIV>
<DIV><FONT face=Arial size=2>Lvm gets initialised (vgscan, vgchange -a y etc) 
and LV is available just fine, but that's not what I want.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I guess I'm asking if:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-anyone else has similar machine with 3Ware RAID 
card and root on LV and how did he accomplish this ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-how does one make initrd with LVM ? I had to 
scavenge script from LVM1, without much success...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Branko</FONT></FONT></DIV></FONT></BODY></HTML>