質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.46%
CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

Q&A

1回答

713閲覧

centos6.1でmondorescueを使いたい。

sky-yuki

総合スコア0

CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

0グッド

0クリップ

投稿2021/11/02 08:43

前提・実現したいこと

centos6.1でmondorescueを使いたい。

hp ProLiant MicroServer Turion II Neo N54L 2.2GHz 4GB 500GBx2
raid1
にあるcentos6.1(mysql,www,etc)をmondorescueを使って
同じハード(別の個体)に復元したい。

発生している問題・エラーメッセージ

bootの途中で止まる。
現象:kernel panic

該当のソースコード

自分で調べたことや試したこと

アーカイブ(iso)をusb64GBにrufusを使って書き込み。

手順は以下の通りです。
CentOS-6.10-x86_64-minimalをrufusを使ってusbに書き込み。
これを復元先に装着、起動。
Install or upgrade...選択。
日本語、jp106...選択
基本ストレージ
新規インストール
元Serverと同じホスト名(abcdef.ghijk.local)
既存linuxシステム入れ替え
BIOS RAID set(mirror)
/dev/mapper/pdc_abcdefg選択
ここで「戻る」選択して
installしないでおわらせる
reboot

復元用usb装着
expert usb=/dev/sdc
alt+f2でfdisk -l -> /dev/mapper/vg_abcdef-lv_...ができていることを確認。
vi /tmp/mountlist.txt
/dev/........root / ext4
/dev/sda1 /boot ext4
/dev/........home /home ext4
/dev/........swap swap swap
と編集
alt+f1
mondorestore
interactively
usb
no
/dev/sdc1
Are you shure ...? -> yes
...erase and partition... ->no
...format...? -> no
...restore all of your data?->yes
Initial the boot loader?->yes
...regeneration ...?->no
Did you change...?->yes
Please confirm/enter.../dev/sda->ok

fstab
/dev/vg_abcdef... / ...
/dev/sda1 /boot ...
/dev/vg_...home /home ...
/dev/vg...swap swap...
...
...

mtab
/dev/vg...root / ...
...
...
...
/dev/sda1 /boot ...
/dev/vg...home /home ...
...
...

/boot/grub/menu.lst
...
kernel /vmlinuz... ... root=/dev/vg_abcdef/lv_root... ...UUID=pdc_abcdefgh ...

device.map
/dev/pdc_abcdefgh

ext2,3,4...->no

reboot
kernel panic

使っているツールのバージョンなど補足情報

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

TaichiYanagiya

2021/11/02 13:38

kernel panic に至るまでのメッセージは?
sky-yuki

2021/11/04 07:42

途中からですが、以下の通りです。 sd 2:0:0:0: [sdal 976773168 512-byte logical blocks: (500 GB/465 GiB) sd 3:0:0:0: [sdb) 976773168 512-byte logical blocks: (500 GB/465 GiB) sd 3:0:0:0: [sdb) Write Protect is off sd 3:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sdb: sd 2:0:0:0: [sda] Write Protect is off sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sda: sdb1: sdb2 sd 3:0:0:0: [sdb) Attached SCSI disk sda1 sda2 sd 2:0:0:0: (sda] Attached SCSI disk iracut: Scanning for dmraid devices pdcdf hfcffdbc Iracut: Found dmraid sets: Iracut: pdc_df hfcffdbc Iracut Warning: No root device "block:/dev/vg_kintai/lv_root" found tracut warning: LVM vg_kintai/lv_swap not found Iracut Warning: LVM vg_kintai/lv_root not found iracut Warning: Boot has failed. To debug this issue add "rdshell" to the kernel command line Iracut Warning: Signal caught! Iracut Warning: LUM vg_kintai/lv_swap not found Iracut Warning: LUM vg_kintai/lv_root not found Iracut Warning: Boot has failed. To debug this issue add "rdshell" to the kernel command line Kernel panic - not syncing: Attempted to kill init! Pid: 1, comm: init Not tainted 2.6.32-754.35.1.el6.x86_64 #1 Call Trace: [«ffffffff8155a2af >] ? panic+@xa7/0x18b [<ffffffff811314dø>] ? perf_event_exit_task+@xc@_@x340 [«ffffffff81087593>] ? do_exit+0x853/@x860 [«ffffffff811a4815>] ? fput+@x25/0x30 [<ffffffff810875f8>] ? do_group_exit+0x58/@xda [<ffffffff81087687>] ? sys_exit_group+8x17/0x20 [<ffffffff81566391>] ? system_call_fastpath+8x1f/Rx3a
TaichiYanagiya

2021/11/04 09:11

情報ありがとうございます。 この欄ではなく、質問文を編集し追記した方が多くの人の目に触れると思います。
guest

回答1

0

Warning: No root device "block:/dev/vg_kintai/lv_root" found
warning: LVM vg_kintai/lv_swap not found
Warning: LVM vg_kintai/lv_root not found

/boot/ は見えているようですが、grub.conf で指定したルート、swap デバイスが見つからないとのこと。
grub.conf の "vg_kintai" と実際の VG 名が異なるのではないでしょうか?

また、mondorescue の前に CentOS-6.10-x86_64-minimal で起動して LVM を作成していますが、必要なのですか?
mondorescue に任せてしまうことはできないのでしょうか?

投稿2021/11/04 09:12

TaichiYanagiya

総合スコア12148

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.46%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問