Возникла необходимость перенести CentOS 5.11 с hdd на RocketRAID 620.
Исходная разметка:
Код: Выделить всё
Disk Drive: /dev/sda
Size: 500107862016 bytes, 500.1 GB
sda1 Boot Primary Linux ext3 [/boot] 106.93
sda2 Primary Linux LVM 499998.33Загрузился с LiveCD CentOS 7
Закинул драйвера. Установил
rpm -i /tmp/kmod-rr62x-1.2-1.el7.elrepo.x86_64.rpm
insmod /usr/lib/modules/3.10.0-123.el7.x86_64/extra/rr62x/rr62x.ko
Драйвера установлены. райд виден = /dev/sdb.
Далее dd if=/dev/sda of=/dev/sdb bs=1G
Выключил, отключил исходный диск, загрузился с ЛайвСД, установил драйвера...
Смонтировал с целью "поправить" GRUB
Код: Выделить всё
# mkdir /mnt/r
# vgscan
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2
# vgchange -ay
2 logical volume(s) in volume group "VolGroup00" now active
# mount /dev/VolGroup00/LogVol00 /mnt/r
# mount -B /proc /mnt/r/proc
# mount -B /dev /mnt/r/dev
# mount /dev/sda1 /mnt/r/boot
# chroot /mnt/r
# /sbin/grub
Probing devices to guess BIOS drives. This may take a long time.
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename.]
grub> find /boot/grub/menu.lst
find /boot/grub/menu.lst
Error 15: File not found
grub> find /grub/stage1
find /grub/stage1
(hd0,0)
grub> root (hd0,0)
root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0,0)
setup (hd0,0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage2" exists... yes
Checking if "/grub/e2fs_stage1_5" exists... yes
Running "embed /grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal)
Running "embed /grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal)
Running "install /grub/stage1 (hd0,0) /grub/stage2 p /grub/grub.conf "... succeeded
Done.
grub> quit
quit
# sync
# rebootА дальше Kernel Panic
Код: Выделить всё
Waiting for driver initialization.
Scanning and configuring dmraid supported devices
Scanning logical volumes
Reading all physical volumes. This may take a while...
No volume groups found
Activating logical volumes
Volume group "VolGroup00" not found
Trying to resume from /dev/VolGroup00/LogVol01
Unable to access resume device (/dev/VolGroup00/LogVol01)
Creating root device.
Mounting root filesystem.
mount: could not find filesystem ’/dev/root’
Setting up other filesystems.
Setting up new root fs
setuproot: moving /dev failed: No such file or directory
no fstab.sys, mounting internal defaults
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
Switching to new root and running init.
unmounting old /dev
unmouatiug old /proc
unmounting old /sys
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!