Problem again, as I think it’s easy it will be late. This problem about setting up Ubuntu 6.06.1 on Dell PowerEdge 2950.
เจอปัญหาอีกแล้ว นึกว่าจะติดตั้งได้ไว (ปัญหาในการทำ computer 1 ข้อ ก็คือ อะไรที่คิดว่าน่าจะเสร็จได้ไว มักจะมีปัญหาทำให้ล่าช้าทุกครั้ง) เป็นปัญหาการติดตั้ง Ubuntu 6.06.1 บน Dell PowerEdge 2950
Dell PowerEdge 2950 (as in x9xx series) used PERC5/i then ubuntu’s kernel don’t have megaraid_sas in this version (2.6.15). When you setup will see more drive than you think
ex. if your server have 3 HD it will shown 4 HD (the last drive as RAID)
but you can install ubuntu in it but when restart, you found Grub loading error 21.
ปัญหาเกิดจาก Dell PowerEdge 2950 (ใน series นี้น่าจะเป็นหมด) ใช้ PERC 5/i ซึ่ง kernel ของ Ubuntu ไม่มี module นี้ ทำให้มองเห็น RAID ต่างๆที่กำหนดไว้ เพิ่มมาอีก 1 drive เช่น มี HD 3 ตัว จะเท่ากับว่ามี HD 4 ตัวรวม RAID ซึ่งถ้าทำ RAID 5 ควรจะเห็น HD เพียงแค่ ตัวเดียว ซึ่งทำให้หลังจากติดตั้ง Ubuntu เสร็จจะไม่สามารถ boot ได้ และจะขึ้น Grub loading error 21 ไม่ว่าจะทำไงก็จะ error ทุกครั้งเศร้า
This problem solve by Robert (ubuntuforums.org) but I change it to my setting :
ปัญหานี้ มีวิธีแก้ไขเขียนโดย คุณ Robert (ubuntuforums.org) ซึ่งขอปรับให้เข้ากับที่ใช้กับผมเอง
- HD เป็น SATA 3 ตัว ทำ RAID 5
# Boot with Ubuntu 6.06.1 LTS AMD64
# Install server
# Language: English
# Location: Thailand
# Keyboard: American English
# Network Firewire: No
# No network: Continue
# Hostname: Ubuntu
# HTTP Proxy: {Enter}
# Partition: Erase entire disk : SCSI2 (Dell Perc)
# Partition confirm: Yes
# System Clock UTC: No
# New user: {some username}
# Account name: {some account name}
# password: {some password}
# re-enter password: {some password}
# After the CD ejects, fix the initrd, install grub in the right place, fix menu.lst, config networking like so:
Alt+F2
chroot /target
# fix initrd
echo megaraid_sas >> /etc/mkinitramfs/modules
cp /boot/initrd.img-2.6.15-26-server /boot/initrd.img-server.old
# or use update-initramfs -u
mkinitramfs -o /boot/initrd.img-2.6.15-26-server 2.6.15-26-server# install grub
grub-install /dev/sdd
# change (hd3,0) to (hd0,0) in menu.lst
grep hd3 /boot/grub/menu.lst
cp /boot/grub/menu.lst /boot/grub/menu.lst.orig
sed -e ’s/hd2/hd0/g’ /boot/grub/menu.lst.orig >/boot/grub/menu.lst# configure networking
echo ‘
# The Ethernet network interface
auto eth0
iface eth0 inet dhcpauto eth1
iface eth1 inet dhcp
‘ >> /etc/network/interfacestouch /etc/resolv.conf
# exit the chroot
exit# unmount /target
umount /target# reboot (optional)
Alt+SysRq+B
Alt+F1
# Finished: continue
It will resolve this problem :
การแก้ไขอันนี้จะแก้ไขโดยเพิ่มเติมดังนี้
- megaraid_sas ไม่มีใน initrd
- Ubuntu จะมอง logical drive เป็น drive ถัดไป (/dev/sdd) แทนที่จะเป็น logical drive จริง
- Grub จะใช้ (hd0) เป็น first physical drive และใช้ /dev/sdd ขณะ boot
After fix this, I will normally boot and already complete.
หลังจากเสร็จก็สามารถ boot ใช้งานได้ปกติ กว่าจะเสร็จ เสียเวลาไปตั้งนาน ถ้านั่งค้นใน google ตั้งแต่แรก คงจะเสร็จไปแล้ว คงได้เวลาที่จะต้องซื้อ notebook สักทีแล้วมั้งเนี่ย


