2010-08-27
- 14:00~15:00 雲端技術展示 - 抓抓龍(Crawlzilla)簡報、展示
- 15:00~17:00 Crawlzilla 後續發展方向討論 - 開 issue
- [備忘] Linux 遇到 kernel panic 後可自動重新開機(Auto Reboot)
或者編輯 /etc/sysctl.conf 加入
$ sudo sysctl -w kernel.panic = 20
kernel.panic = 20
Storage Virtualization
Netboot.me
- [緣起] 想要用 USB 拇指碟來安裝 Debian 5.0 (lenny)
- [作法] 環保一點,所以下載 netboot.me USB Image
$ wget http://static.netboot.me/gpxe/netbootme.usb
- 接上 USB 拇指碟,透過 /proc/partitions 確認磁碟位置
$ cat /proc/partitions major minor #blocks name 8 0 488386584 sda 8 1 486327296 sda1 8 2 2057216 sda2 8 16 1957888 sdb
- 確認在 /dev/sdb 之後就使用 dd 把 USB Image 寫入拇指碟
$ sudo dd if=netbootme.usb of=/dev/sdb
- [狀況] 找不到網路卡驅動程式 :(
Debian
- [緣起] 想要用 USB 拇指碟來安裝 Debian 5.0 (lenny)
- [參考] Debian GNU/Linux 安裝手冊 - 4.4. 準備從 USB 隨身碟開機的檔案,首先嘗試『4.4.1. 複製檔案 — 簡單的方法』
~$ sudo su - ~# wget http://free.nchc.org.tw/debian/dists/Debian5.0.5/main/installer-amd64/current/images/hd-media/boot.img.gz ~# zcat boot.img.gz > /dev/sdb ~# mount /dev/sdb /mnt ~# cd /mnt /mnt# wget http://free.nchc.org.tw/debian-cd/current/amd64/iso-cd/debian-505-amd64-businesscard.iso ~# cd ~# umount /mnt
- [狀況] 找不到網路卡驅動程式 :(
- [解法] 安裝 Ubuntu 10.04 LTS 可以正常驅動
jazz@cloud:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 10.04.1 LTS Release: 10.04 Codename: lucid jazz@cloud:~$ uname -a Linux cloud 2.6.32-24-server #41-Ubuntu SMP Thu Aug 19 02:47:08 UTC 2010 x86_64 GNU/Linux jazz@cloud:~$ lspci 00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03) 00:01.0 PCI bridge: Intel Corporation 4 Series Chipset PCI Express Root Port (rev 03) 00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:02.1 Display controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) 00:03.0 Communication controller: Intel Corporation 4 Series Chipset HECI Controller (rev 03) 00:03.2 IDE interface: Intel Corporation 4 Series Chipset PT IDER Controller (rev 03) 00:03.3 Serial controller: Intel Corporation 4 Series Chipset Serial KT Controller (rev 03) 00:19.0 Ethernet controller: Intel Corporation 82567LM-3 Gigabit Network Connection (rev 02) 00:1a.0 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #4 (rev 02) 00:1a.1 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #5 (rev 02) 00:1a.2 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #6 (rev 02) 00:1a.7 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB2 EHCI Controller #2 (rev 02) 00:1b.0 Audio device: Intel Corporation 82801JD/DO (ICH10 Family) HD Audio Controller (rev 02) 00:1c.0 PCI bridge: Intel Corporation 82801JD/DO (ICH10 Family) PCI Express Port 1 (rev 02) 00:1c.1 PCI bridge: Intel Corporation 82801JD/DO (ICH10 Family) PCI Express Port 2 (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB UHCI Controller #3 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801JD/DO (ICH10 Family) USB2 EHCI Controller #1 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a2) 00:1f.0 ISA bridge: Intel Corporation 82801JDO (ICH10DO) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801JD/DO (ICH10 Family) 4-port SATA IDE Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801JD/DO (ICH10 Family) SMBus Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801JD/DO (ICH10 Family) 2-port SATA IDE Controller (rev 02)
從 lspci -n 可以查出 Intel Corporation 82567LM-3 Gigabit 網卡的 Device ID 是 8086:10de 驅動模組為 e1000ejazz@cloud:~$ lspci -n 00:19.0 0200: 8086:10de (rev 02) jazz@cloud:~$ modinfo e1000e | grep v00008086d000010DE alias: pci:v00008086d000010DEsv*sd*bc*sc*i*
- 因為『4.4.1. 複製檔案 — 簡單的方法』只能用在 netinst.iso 或 businesscard.iso 兩種容量比較小的,若要使用完整版 ISO 就得改用 4.4.2. 複製檔案 — 靈活的方法
~$ sudo cfdisk /dev/sdb #### 把至少 700MB 的 USB 空間切給 /dev/sdb1 ~$ sudo mkdosfs /dev/sdb1 ~$ sudo syslinux /dev/sdb1 ~$ sudo mount /dev/sdb1 /mnt/ ~$ cd /mnt/ /mnt$ sudo wget http://free.nchc.org.tw/debian/dists/Debian5.0.5/main/installer-amd64/current/images/hd-media/vmlinuz /mnt$ sudo wget http://free.nchc.org.tw/debian/dists/Debian5.0.5/main/installer-amd64/current/images/hd-media/initrd.gz /mnt$ cat > /tmp/syslinux.cfg << EOF default vmlinuz append initrd=initrd.gz ramdisk_size=12000 root=/dev/rd/0 init=/linuxrc rw EOF /mnt$ sudo mv /tmp/syslinux.cfg . /mnt$ sudo wget http://free.nchc.org.tw/debian-cd/current/amd64/iso-cd/debian-505-amd64-CD-1.iso /mnt$ cd ~ ~$ sudo umount /mnt
- [結果] 無法正常開機 :(
- [再接再厲] 使用 Squeeze 的 netinst.iso 來試試看,因為確認過 lenney 的 e1000e 沒有支援 8086:10de,而 Squeeze 的核心是 2.6.32+28,注意!!要從網路上下載 testing 版本的 boot.img.gz 來用,而不是拿 stable 的版本喔~
~$ sudo su - ~# wget http://ftp.nl.debian.org/debian/dists/testing/main/installer-amd64/current/images/hd-media/boot.img.gz ~# zcat boot.img.gz > /dev/sdb ~# mount /dev/sdb /mnt ~# cd /mnt /mnt# wget http://cdimage.debian.org/cdimage/squeeze_di_alpha1/amd64/iso-cd/debian-testing-amd64-businesscard.iso ~# cd ~# umount /mnt
- [狀況] 還是找不到網路卡驅動程式 :(
- 使用 Backported d-i image 進行安裝
~$ sudo su - ~# wget http://kmuto.jp/debian/d-i/2.6.32/amd64/hd-media/boot.img.gz ~# zcat boot.img.gz > /dev/sdb ~# mount /dev/sdb /mnt ~# cd /mnt /mnt# wget http://cdimage.debian.org/cdimage/squeeze_di_alpha1/amd64/iso-cd/debian-testing-amd64-businesscard.iso ~# cd ~# umount /mnt
Last modified 14 years ago
Last modified on Sep 28, 2010, 2:45:28 PM
Attachments (1)
- 3_Benefits_of_Storage_Virtualization.png (287.9 KB) - added by jazz 14 years ago.
Download all attachments as: .zip