免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2941 | 回复: 0
打印 上一主题 下一主题

已装了LDOM的T5120回复原来的系统状态 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-08-21 20:58 |只看该作者 |倒序浏览
LDOM在也是虚拟化的software  应用在大部分的SPARC T系列中,它的虚拟的范围更范,直接到硬件层;所以
你在ok中运行banner中也只是能看到虚拟出来的primary domain;
{0} ok banner
SPARC Enterprise T5120, No Keyboard
Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
OpenBoot 4.30.2.b, 1024 MB memory available, Serial #86277064.
Ethernet address 0:21:28:24:7b:c8, Host ID: 85247bc8.
实际的内存是8GB;4核
# prtdiag -v
System Configuration:  Sun Microsystems  sun4v SPARC Enterprise T5120
Memory size: 1024 Megabytes
================================ Virtual CPUs ================================
CPU ID Frequency Implementation         Status
------ --------- ---------------------- -------
0      1165 MHz  SUNW,UltraSPARC-T2     on-line  
1      1165 MHz  SUNW,UltraSPARC-T2     on-line  
2      1165 MHz  SUNW,UltraSPARC-T2     on-line  
3      1165 MHz  SUNW,UltraSPARC-T2     on-line  
4      1165 MHz  SUNW,UltraSPARC-T2     on-line  
5      1165 MHz  SUNW,UltraSPARC-T2     on-line  
6      1165 MHz  SUNW,UltraSPARC-T2     on-line  
7      1165 MHz  SUNW,UltraSPARC-T2     on-line  
这里分了1核给primary
======================= Physical Memory Configuration ========================
Segment Table:
--------------------------------------------------------------
Base           Segment  Interleave  Bank     Contains
Address        Size     Factor      Size     Modules
--------------------------------------------------------------
0x0            8 GB     4           2 GB     MB/CMP0/BR0/CH0/D0
                                             MB/CMP0/BR0/CH1/D0
                                    2 GB     MB/CMP0/BR1/CH0/D0
                                             MB/CMP0/BR1/CH1/D0
                                    2 GB     MB/CMP0/BR2/CH0/D0
                                             MB/CMP0/BR2/CH1/D0
                                    2 GB     MB/CMP0/BR3/CH0/D0
                                             MB/CMP0/BR3/CH1/D0
指激活了1G内存
以下是我删除LDOM的一些做法:
bash-3.00# ldm list
NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME
primary          active     -n-cv-  SP      8     1G       0.1%  10m
ld1              inactive   ------          4     1G            
ld2              inactive   ------          8     2G
删除非主的domain
bash-3.00# ldm remove-domain -a
bash-3.00#
bash-3.00# ldm list
NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME
primary          active     -n-cv-  SP      8     1G       0.3%  13m
bash-3.00# ldm set-config factory-default
bash-3.00# shutdown -i1 -g0 -y
bash-3.00# svcadm disable ldmd
bash-3.00# pkgrm SUNWldm
sc> bootmode config="factory-default"
sc> powercycle -y
OK了:
SPARC Enterprise T5120, No Keyboard
Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
OpenBoot 4.30.2.b, 8064 MB memory available, Serial #86277064.
Ethernet address 0:21:28:24:7b:c8, Host ID: 85247bc8.
Boot device: disk  File and args:
SunOS Release 5.10 Version Generic_139555-08 64-bit
Copyright 1983-2009 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
能正常进入系统了但网络有点问题:
Failed to plumb IPv4 interface(s): vsw0
Aug 21 19:52:24 svc.startd[7]: svc:/network/physical:default: Method "/lib/svc/method/net-physical" failed with exit status 96.
Aug 21 19:52:24 svc.startd[7]: network/physical:default misconfigured: transitioned to maintenance (see 'svcs -xv' for details)
要重配网络了
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/102731/showart_2034064.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP