วิธีการแปลง Red Hat Enterprise Linux (RHEL) 5 ให้เป็น CentOS 5

เจ้าเครื่องเซิร์ฟเวอร์ Dell PowerEdge R200 ที่บริษัทผมเพิ่งซื้อมา นี่ทำผมแสบมาก ๆ อุตส่าห์ซื้อมาจะใช้กับ Ubuntu Server ซะหน่อย แต่ก็ติดปัญหาที่ว่า Hardware RAID controller card ที่ติดมากับเครื่องนั้นคือ Dell SAS 6/iR มี Driver สำหรับ Red Hat กับ SuSE เท่านั้น แล้วก็ดันไม่มี source ให้ compile เองด้วยผมละเซ็งจริง ๆ ถ้าไม่ลง Driver ดังกล่าวผมก็ไม่สามารถตรวจสอบสถานะของ Disk ได้ ก็ไม่รู้จะทำ RAID-1 ไปทำไม อย่างนี้โทษใครไม่ได้นอกจากตัวเอง ผมเลยขอเตือนทุกท่านให้เป็นอุทาหรณ์ก่อนเลยว่าถ้าท่านจะซื้อเครื่องเซิร์ฟเวอร์มาใช้กับ Ubuntu Linux ก็ควรจะดูก่อนว่า เครื่องเซิร์ฟเวอร์ดังกล่าวลง Ubuntu ได้หรือไม่ ซึ่งสามารถตรวจสอบได้ http://webapps.ubuntu.com/certification/list/?category=Server

ดังนั้นผมเลยต้องจำใจติดตั้ง RHEL 5 บนเครื่องเซิร์ฟเวอร์ของผม คราวนี้ผมก็สามารถตรวจสอบสถานะของ RAID ได้แล้วแต่ปัญหาก็ยังไม่จบสิ้นคือ ถ้าผมใช้ RHEL ผมก็ต้อง subscribe กับทาง Red Hat ก่อนจึงจะสามารถ update โปรแกรมต่าง ๆ ได้ซึ่งค่า subscription มันก็แพงเอาการอยู่ ผมเลยต้องหาทางวิธีเปลี่ยน RHEL ให้เป็น CentOS โดยไม่ต้อง install ใหม่ ซึ่งมีวิธีการดังต่อไปนี้...

อันดับแรก เราต้อง Log in ด้วย root account ก่อนแล้วเรียกคำสั่งต่อไปนี้

# yum clean all # mkdir ~/centos # cd ~/centos # wget http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 # wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/centos-release-5-2.el5.centos.x86_64.rpm # wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/centos-release-notes-5.2-2.x86_64.rpm # wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-3.2.8-9.el5.centos.1.noarch.rpm # wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-2.el5.x86_64.rpm # wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-updatesd-0.9-2.el5.noarch.rpm # wget http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm # rpm --import RPM-GPG-KEY-CentOS-5 # rpm -e --nodeps redhat-release # rpm -e yum-rhn-plugin # rpm -Uvh --force *.rpm # yum upgrade # shutdown -r now

เพียงเท่านี้ RHEL 5 ก็กลายเป็น CentOS 5 แล้วครับ

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><img> <object> <embed> <param>
  • Lines and paragraphs break automatically.
  • Images can be added to this post.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.
ญาณรักข์ วรรณสาย