|
Hello.
Please, help me.
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).
My filesystems were:
$ df -k
Filesystem
1k-blocks Used Available Use% Mounted
on
/dev/sda2 2063316 400240 1558264 21% / /dev/sda1 30985 5915 23470 21% /boot none 257180 0 257180 0% /dev/shm /boot is ext2.
/ is ext3
swap is on /dev/sda5
I created a new partition on /dev/sda6 and changed
its type to "8e" (Linux LVM)
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.
So, I have:
$ df -k
Filesystem
1k-blocks Used
Available Use% Mounted on
/dev/sda2 2063316 400240 1558264 21% / /dev/sda1 30985 5915 23470 21% /boot none 257180 0 257180 0% /dev/shm /dev/rootvg/root 198337 56448 131649 31% /mnt /dev/rootvg/usr 806288 317880 447448 42% /mnt/usr /dev/rootvg/home 198337 4133 183964 3% /mnt/home /dev/rootvg/var 198337 13400 174697 8% /mnt/var /dev/rootvg/tmp 99150 4128 89902 5% /mnt/tmp My /etc/fstab was:
LABEL=/ /
ext3
defaults
1
1
LABEL=/boot /boot ext2 defaults 1 2 none /dev/pts devpts gid=5,mode=620 0 0 none /proc proc defaults 0 0 none /dev/shm tmpfs defaults 0 0 /dev/sda5 swap swap defaults 0 0 /dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0 /dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0 I changed /mnt/etc/fstab to:
LABEL=/dev/rootvg/root
/
ext3
defaults
1
1
LABEL=/boot /boot ext2 defaults 1 2 none /dev/pts devpts gid=5,mode=620 0 0 none /proc proc defaults 0 0 none /dev/shm tmpfs defaults 0 0 /dev/sda5 swap swap defaults 0 0 /dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0 /dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0 And I changed my /etc/lilo.conf including the last
image:
prompt
timeout=50 default=linux boot=/dev/sda map=/boot/map install=/boot/boot.b message=/boot/message linear
image=/boot/vmlinuz-2.4.18-3
label=linux initrd=/boot/initrd-2.4.18-3.img read-only root=/dev/sda2
image=/boot/vmlinuz-2.4.18-3
label=lvm initrd=/boot/initrd-lvm-2.4.18-3.gz read-only root=/dev/rootvg/root append="ramdisk_size=8192 I reran lilo and when I reboot I got these
messages:
kmod: failed to exec
/sbin/mdprobe -s -k block-major-114, errno=2
vgscan -- "/etc/lvmtab" and
"/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program
does not do a VGDA backup of your volume group
vgchange -- no volume groups
found
VFS: Cannot open root devide
"3a00" or 3a:00
Please append a correct "root="
boot option
kernel panic: VFS: Unable to
mount root fs on 3a:00
|