Chinaunix首页 | 论坛 | 博客
  • 博客访问: 829932
  • 博文数量: 167
  • 博客积分: 7173
  • 博客等级: 少将
  • 技术积分: 1671
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-04 23:07
文章分类

全部博文(167)

文章存档

2018年(1)

2017年(11)

2012年(2)

2011年(27)

2010年(88)

2009年(38)

分类:

2009-08-21 20:58:32

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)

要重配网络了


阅读(1608) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~