<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Please, help me.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I installed RedHat 7.3 (kernel 2.4.18-3) and I´m
trying to convert my root filesystem to LVM (lvm-1.0.3-4). </FONT></DIV>
<DIV><FONT face=Arial size=2>My filesystems were:</FONT></DIV>
<DIV><FONT face=Arial size=2> $ df -k</FONT></DIV>
<DIV><FONT face=Arial size=2>
Filesystem
1k-blocks Used Available Use% Mounted
on<BR>
/dev/sda2
2063316 400240 1558264 21%
/<BR>
/dev/sda1
30985 5915
23470 21% /boot<BR>
none 257180
0 257180 0%
/dev/shm</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>/boot is ext2.</FONT></DIV>
<DIV><FONT face=Arial size=2>/ is ext3</FONT></DIV>
<DIV><FONT face=Arial size=2>swap is on /dev/sda5</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I created a new partition on /dev/sda6 and changed
its type to "8e" (Linux LVM)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I followed whole the chapter 18 from LVM HOWTO,
except I created one logical volume for /, /usr, /home, /var and /tmp and copied
files with "find / -xdev | cpio -pvmd /mnt" replacing "/" and "/mnt" for each
new logical volume created.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>So, I have:</FONT></DIV>
<DIV><FONT face=Arial size=2> $ df -k</FONT></DIV>
<DIV><FONT face=Arial size=2>
Filesystem
1k-blocks Used
Available Use% Mounted on<BR>
/dev/sda2
2063316 400240 1558264
21% /<BR>
/dev/sda1
30985 5915
23470 21% /boot<BR>
none
257180
0 257180 0%
/dev/shm<BR>
/dev/rootvg/root 198337 56448
131649 31% /mnt<BR>
/dev/rootvg/usr
806288 317880 447448
42% /mnt/usr<BR> /dev/rootvg/home
198337 4133
183964 3% /mnt/home<BR>
/dev/rootvg/var
198337 13400
174697 8% /mnt/var<BR>
/dev/rootvg/tmp
99150 4128
89902 5% /mnt/tmp</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My /etc/fstab was:</FONT></DIV>
<DIV><FONT face=Arial size=2> </FONT></DIV>
<DIV><FONT face=Arial
size=2>LABEL=/ /
ext3
defaults
1
1<BR>LABEL=/boot /boot
ext2
defaults 1
2<BR>none /dev/pts devpts
gid=5,mode=620 0
0<BR>none /proc proc
defaults
0
0<BR>none /dev/shm tmpfs
defaults
0
0<BR>/dev/sda5 swap swap
defaults
0
0<BR>/dev/cdrom /mnt/cdrom iso9660
noauto,owner,kudzu,ro 0
0<BR>/dev/fd0 /mnt/floppy auto
noauto,owner,kudzu 0 0</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I changed /mnt/etc/fstab to:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>LABEL=/dev/rootvg/root
/
ext3
defaults
1
1<BR>LABEL=/boot
/boot
ext2
defaults
1
2<BR>none
/dev/pts
devpts
gid=5,mode=620
0
0<BR>none
/proc
proc
defaults
0
0<BR>none
/dev/shm
tmpfs
defaults
0
0<BR>/dev/sda5
swap
swap
defaults
0
0<BR>/dev/cdrom
/mnt/cdrom
iso9660 noauto,owner,kudzu,ro 0
0<BR>/dev/fd0
/mnt/floppy
auto
noauto,owner,kudzu 0 0</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>And I changed my /etc/lilo.conf including the last
image:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> prompt<BR>
timeout=50<BR> default=linux<BR>
boot=/dev/sda<BR> map=/boot/map<BR>
install=/boot/boot.b<BR>
message=/boot/message<BR> linear</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
image=/boot/vmlinuz-2.4.18-3<BR>
label=linux<BR>
initrd=/boot/initrd-2.4.18-3.img<BR>
read-only<BR>
root=/dev/sda2</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
image=/boot/vmlinuz-2.4.18-3<BR>
label=lvm<BR>
initrd=/boot/initrd-lvm-2.4.18-3.gz<BR>
read-only<BR>
root=/dev/rootvg/root<BR>
append="ramdisk_size=8192</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I reran lilo and when I reboot I got these
messages:</FONT></DIV>
<DIV><FONT face=Arial size=2> </FONT></DIV>
<DIV><FONT face=Arial size=2> kmod: failed to exec
/sbin/mdprobe -s -k block-major-114, errno=2</FONT></DIV>
<DIV><FONT face=Arial size=2> </FONT></DIV>
<DIV><FONT face=Arial size=2> vgscan -- "/etc/lvmtab" and
"/etc/lvmtab.d" successfully created</FONT></DIV>
<DIV><FONT face=Arial size=2> vgscan -- WARNING: This program
does not do a VGDA backup of your volume group</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> vgchange -- no volume groups
found</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> VFS: Cannot open root devide
"3a00" or 3a:00</FONT></DIV>
<DIV><FONT face=Arial size=2> Please append a correct "root="
boot option</FONT></DIV>
<DIV><FONT face=Arial size=2> kernel panic: VFS: Unable to
mount root fs on 3a:00</FONT></DIV></BODY></HTML>