安裝好eucalyptus ,由於打雷,還是把Ubuntu服務器關了,結果第二天來開機發現3台服務器都出現下面的提示,並停在initramfs了@_@
Gave up waiting for root device.Common programs:
—Boot args(cat /proc cmdline)
—Check rootdelay=(did the system wait long enough?)
—Check root=(did the system wait for the right device?)
—Missing modules (cat /proc/modules: ls /dev)
沒理由那麼杯具吧。按照提示來檢查:
1.Boot args
安裝好之後沒有修改過grub.cfg,也沒有重啟,估計不是這個問題。
2.rootdelay
難道服務器啟動慢?新到的R525,雙U,8G內存,沒理由啊。不會是因為加了個LSI HBA卡就這樣吧?算了,還是加上延遲來試試。
使用server 的安裝光盤啟動,選擇 Rescure a broken system,像裝系統那樣一步步進行,最後在選擇執行shell 位置的時候選擇原來系統的根/。由於之前把/boot單獨分來出來,這裡掛載一下並修改/boot/grub/grub.cfg為可寫,然後在 kernel /boot/vmlinuz-2.6.32-24-generic root=UUID=7e4d787a-8081-4f79-b2c4-9945912697a4 ro quiet 後面加上 rootdelay=60 ,用sed -i 's/quiet/quiet\ rootdelay=60/' /boot/grub/grub.cfg 可直接替換,不熟悉就用vi吧, rootdelay=60表示延遲60秒。重啟!
Lucky ,搞掂!
3.後面的就不用檢查了^_^
4.為了避免更新內核時 rootdelay 參數被覆蓋,可以修改 /etc/default/grub 的 GRUB_CMDLINE_LINUX_DEFAULT="quiet rootdelay=60" ,這樣下次就不會被覆蓋了。