[Memo2011][ITPASS]新 ika に旧 tako の HDD を入れて起動

2011/04/06 に新 ika に旧 tako の HDD を差して起動テストを行った.

  • 作業者 : 高橋(由), 井谷, 黒田
  • ロガー : 井谷

[[ITPASS]過去の構築ドキュメント へ戻る]

準備

旧 tako の HDD を準備

  • 旧 tako 塩漬けバックアップ
    • を参照

起動

新 ika に旧 tako の HDD (sda のみ) を差して起動

-> 成功

ネットワーク接続

-> 失敗

以下の試行錯誤を行い, 接続できた.

対応

ネットワーク設定の確認

  • /etc/network/interfaces の確認

    # lv /etc/network/interfaces

    -> 差し口 :eth2, IP アドレス : 133.30.109.21

  • 設定状態の確認

    # netstat -rn

    -> 何も表示されない

ネットワーク再起動

  • 以下のコマンドでネットワークの再起動を行った.

    # /etc/init.d/networking restart 
    done.

    -> 繋がらない

  • ネットワーク設定の表示

    # ifconfig

    -> eth* がなく, lo のみ

ネットワークの停止・起動

# ifdown eth2 
# ifup eth2
eth2: ERROR while getting interface flags: No such device
eth2: ERROR while getting interface flags: No such device
Failed to bring up eth2

-> つながらない.

ネットワーク線を繋ぎ変え

接続口を eth0, 1 と変えてみた.

-> 繋がらない

ネットワークカードのドライバ確認

  • ネットワークカードの接続確認

    $ /usr/bin/lspci -vb | lv 

    -> Ethernet controller が 2 つ存在したので, ネットワークカード, マザーボード搭載のもの 両方が認識されていることが分かった

  • ドライバソフトの動作確認

    $ cat /proc/interrupts  

    -> eth を含む行はなかった.

ネットワーク設定の変更

  • /etc/network/interfaces の編集

    • eth の番号を変えた (差し口が 2 つなので, eth0 と eth1 しかないのかも)
      • eth2 -> eth 0 へ変更

        # vim /etc/network/interfaces

    -> 繋がらない

  • /etc/udev/rule.d/70-persistent-net.rules の編集

    # vim /etc/udev/rule.d/70-persistent-net.rules
    • 全ての行をコメントアウト
    • 参考 : http://namahage.dip.jp/blog/2107

      # This file was automatically generated by the /lib/udev/write_net_rules
         # program run by the persistent-net-generator.rules rules file.
         #
         # You can modify it, as long as you keep each rule on a single line.
      
         # PCI device 0x10ec:0x8168 (r8169)
         #SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:18:f3:d9:7a:97", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
      
         # PCI device 0x8086:0x107c (e1000)
         #SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0e:0c:d0:53:18", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
      
         # PCI device 0x8086:0x10d3 (e1000e)
         #SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1b:21:2f:18:c7", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
      
         # PCI device 0x11ab:0x4320 (skge)
         #SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:23:54:7f:2d:97", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"
      
         # PCI device 0x11ab:0x4364 (sky2)
         #SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:23:54:7f:24:30", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4"
      
         # PCI device 0x8086:0x107c (e1000)
         #SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0e:0c:d0:55:07", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth5"
      
         # PCI device 0x10ec:0x8168 (r8169) 
         #SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="bc:ae:c5:21:b0:df", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth6"
    • 再起動

-> 繋がった

  • 起動後のファイル内容
    • eth0, eth1 に関する行が追加された

      追加された行

      # PCI device 0x10ec:0x8168 (r8169)
      SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="bc:ae:c5:21:b0:df", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
      
      # PCI device 0x8086:0x107c (e1000)
      SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0e:0c:d0:55:07", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
Last modified:2011/04/07 12:16:24
Keyword(s):
References:[[ITPASS2011]2011年度サーバ構築ログ]