If you dislike to go on to runing NSM on NSMXpress box.
please follow me to change the current OS to CentOS
1, change yum source
open webpage:
login to nsm console
# cd /etc/yum.repos.d
# wget
2, install centos release
# rpm -ivh
3, download new centos GPG
# mkdir /etc/pki/rpm-gpg
# wget
4, start to upgrade to CentOS 4.8
# yum makecache
# yum upgrade -y
5, try to reboot your server to make sure the new OS can run well.
6, let me explain the current partition table
/dev/sda1 ====> recovery partition
/dev/sda2 ====> active linux root partion, one active boot partition
all others will not be introduced here.
7, backup all /usr, /var, and / partition data to /dev/sda1, suggest us to use cpio to copy these system files to /dev/sda1
8, Remove all left partition
Currently, I will remove all remaining partitions except for sda1 sda2,
make new sda5 for swap, sda6 for user data
just run "fdisk /dev/sda" to finish this job
9, change /boot/grub/menu.lst ( original on /dev/sda1)
terminal --silent
default 0
fallback 1
timeout=10
hiddenmenu
title Linux
configfile (hd0,0)/boot1/grub/menu.lst
title NSMXpress
configfile (hd0,1)/boot/grub/menu.lst
title Rescue
kernel (hd0,0)/boot/vmlinuz root=/dev/sda1 rescue ks=hd:sda1/ks.cfg devfs=nomount ramdisk_size=8192 console=ttyS0,9600 headless noshell
initrd (hd0,0)/boot/initrd.img
title Re-Install
pause Using this option will completely erase your appliance and load the factory default image. No data recovery is possible after re-installing. To confirm erase and re-install, type "erase" at the password prompt. To abort and boot into Rescue mode, just hit at the password prompt. Press any key.
password erase
kernel (hd0,0)/boot/vmlinuz root=/dev/sda1 ks=hd:sda1/ks.cfg devfs=nomount ramdisk_size=8192 console=ttyS0,9600 headless
initrd (hd0,0)/boot/initrd.img
title Rescue Boot from Secondary Drive
configfile (hd0,0)/boot/grub/menu.lst
when you copy sda2:/boot to sda1, you need to give sda2/boot to one new name /boot1, to avoid the name conflict with the original /boot partition.
you need to change new /boot1/grub/menu.lst to:
#boot=/dev/sda
default=0
timeout=1
terminal --silent
hiddenmenu
title CentOS (2.6.9-89.31.1.ELsmp)
root (hd0,0)
kernel /boot1/vmlinuz-2.6.9-89.31.1.ELsmp ro root=/dev/sda1 console=tty0 console=ttyS0,9600
initrd /boot1/initrd-2.6.9-89.31.1.ELsmp.img
title CentOS (2.6.9-89.31.1.EL)
root (hd0,0)
kernel /boot1/vmlinuz-2.6.9-89.31.1.EL ro root=/dev/sda1 console=tty0 console=ttyS0,9600
initrd /boot1/initrd-2.6.9-89.31.1.EL.img
title Juniper Management Appliance 5.0 i386 (2.6.9-67.0.20.ELsmp)
root (hd0,0)
kernel /boot1/vmlinuz-2.6.9-67.0.20.ELsmp ro root=/dev/sda1 console=tty0 console=ttyS0,9600
initrd /boot1/initrd-2.6.9-67.0.20.ELsmp.img
title Juniper Management Appliance 5.0 i386-up (2.6.9-67.0.20.EL)
root (hd0,0)
kernel /boot1/vmlinuz-2.6.9-67.0.20.EL ro root=/dev/sda1 console=tty0 console=ttyS0,9600
initrd /boot1/initrd-2.6.9-67.0.20.EL.img
10. The END
There is no any difficult action for us. Furthermore this article is not full correct for us. just take a look.
阅读(1701) | 评论(0) | 转发(0) |