- 论坛徽章:
- 0
|
我是个Solaris 新手,学了半年AIX , 还要搞Solaris . 目前 需要做Solaris 8 upgrade to 9 的task.
啃了两个晚上的Solaris 网页, 做了plan ,请大虾们指导下,看看我的plan 有没有缺陷, 我马上要实施了,请各位大虾多给些建议.任务完成后,我会做成pdf 发到 本版 Solaris 资料库.
硬件环境:SunFire v120
$ uname -a
SunOS sp01 5.8 Generic_117350-56 sun4u sparc SUNW,UltraAX-i2
*******************************************************************************
$ psrinfo -v
Status of processor 0 as of: 11/19/09 16:57:13
Processor has been on-line since 11/06/09 17:21:27.
The sparcv9 processor operates at 648 MHz,
and has a sparcv9 floating point processor.
RAM :1G
$ iostat -E
sd0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: SEAGATE Product: ST336607LSUN36G Revision: 0307 Serial No: 3JA65GVM00007403
Size: 36.42GB <36418595328 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
sd1 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: SEAGATE Product: ST336607LSUN36G Revision: 0207 Serial No: 3JA18EA300007336
Size: 36.42GB <36418595328 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
sd30 Soft Errors: 0 Hard Errors: 15 Transport Errors: 0
Vendor: TEAC Product: CD-224E Revision: P.9A Serial No: [
Size: 18446744073.71GB <-1 bytes>
Media Error: 0 Device Not Ready: 15 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
$ df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c1t0d0s0 5161437 1049555 4060268 21% /
/proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
fd 0 0 0 0% /dev/fd
/dev/dsk/c1t0d0s3 10323610 3637074 6583300 36% /var
swap 1473360 16 1473344 1% /var/run
swap 1473408 64 1473344 1% /tmp
/dev/dsk/c1t0d0s5 3096423 1556652 1477843 52% /home
/dev/dsk/c1t0d0s4 5161437 2417404 2692419 48% /opt
$
上面的是硬件环境:
硬盘sd0 (c1t0d0) 和sd1(c1t1d0) 同样大小 , sd1 目前没有使用.
更新了升级plan.
首先,本机只有LTO2 的带库和TSM 备份FS, 没有磁带机可以备份OS. 而且目前只有两个同样38G的硬盘.
4 Install Live Upgrade package.
Login as root.
#pkgrm SUNWlucfg SUNWluu SUNWlur
# pkgadd -d path_to_packages SUNWlur SUNWluu"
5 Verify that the package has been installed successfully.
# pkgchk -v SUNWlur SUNWluu
6 Verify requirements on the pre-checklist.
7 Install patch
#patchadd /var/spool/patch/111879-01
#patchadd /var/spool/patch/108693-26
8 #init -s // switch to single user mode
9 #patchadd /var/spool/patch/108968-12
10 #init 3 //switch to muliti user mode
11 #prtvtoc /dev/dsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2
12 #lucurr
13 #lucreate -A 'c1t0d0' -c c1t0_S8 -m /:/dev/dsk/c1t1d0s0:ufs -m -:/dev/dsk/c1t1d0s1:swap -m -:/dev/dsk/c1t1d0s2:swap -m /var:/dev/dsk/c1t1d0s3:ufs -m /opt:/dev/dsk/c1t1d0s4:ufs -m /home:/dev/dsk/c1t1d0s5:ufs - n c1t1_S9
14 #luupgrade -u -n c1t1_S9 -s /cdrom/cdrom0/XXX
15 #luactive c1t1_S9
16 #init 6
17 Reboot to upgraded Solaris 9 Operation Enviroment
18 Verify OS healthy status , #ps -ef # error log
另外还有一点是关于第13 步, 因为没有试验环境,心里底气不足, 所以希望有用过这个命令的高人能给些明确的信息.
lucreate 的 -c 参数的描述是
-c BE_name
Assigns the name BE_name to the active boot environment. This option is required only when the first boot environment is created. If you run lucreate for the first time and you omit -c, you are prompted to name the active boot environment. If you use the -c option after the first boot environment creation, you receive an error message.
从我的理解来说,根据我目前的环境, 是安装好Live Upgrade 的包后,我用lucreate -c 创建我当前online的OS为current BE,
lucreate 的 -n 参数创建新的 BE.
2. 我目前的硬盘,即不是veritas卷管理,也不是SUN 的卷管理,只是format 可以看到两个硬盘, 我新更新的步骤可行否?
请路过的兄弟们赐教!
[ 本帖最后由 wiron 于 2009-11-25 01:31 编辑 ] |
|