免费注册 查看新帖 |

Chinaunix

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

Solaris系统管理培训(第十一章:磁盘配置和命名) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-12-27 16:11 |只看该作者 |倒序浏览
http://fanqiang.chinaunix.net/a1/b3/20010515/19150183.html
http://www.163.com 作 者: jxbcpp (2001-05-15 19:15:01)
 Solaris下,一个磁盘包含8个分区,标记为0-7。
分区0位根分区,包含启动的信息
分区2代表整个磁盘
交换分区可以是任何分区,默认为分区1
其它分区用户存放数据 
逻辑设备名存放在/dev/dsk和/dev/rdsk中。这些名称是/devices目录下的符号连接。使用逻辑设备名便于系统管理员操作。
Sun使用下列命名方式定义逻辑设备名:
/dev/[r]dsk/c#t#d#s#
c:逻辑控制器号
t:物理总线目标号
d:磁盘或逻辑单元号(LUN)
s:分区号
物理设备名表示设备的完整信息,如设备总线地址。物理设备名在/devices目录下。
# ls -l /dev/dsk/c0t3d0s0
lrwxrwxrwx 1 root root 86 Oct 20 16:04 /dev/dsk/c0t3d0s3 ->
../../devices/iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,880
0000/sd@3,0:d
实例名是系统设备的简称。例如:
sdn where s = SCSI, d = disk, and n = 逻辑磁盘号,例如sd0,表示第一个SCSI磁盘设备。
dmesg显示实例名
dmesg命令鉴别系统所连接的设备。以实例和物理设备名称的方式显示。
# dmesg|more
May 13 20:18
cpu0: SUNW,UltraSPARC (upaid 0 impl 0x10 ver 0x40 clock 167 MHz)
SunOS Release 5.7 Version Generic [UNIX(R) System V Release 4.0]
Copyright (c) 1983-1998, Sun Microsystems, Inc.
NOTICE: 64 bit OS installed, but the 32-bit OS is the default
        for the processor(s) on this system.
        See boot(1M) for more information.
Booting the 32-bit OS ...
mem = 196608K (0xc000000)
avail mem = 189440000
Ethernet address = 8:0:20:9b:60:b5
root nexus = Sun Ultra 1 SBus (UltraSPARC 167MHz)
sbus0 at root: UPA 0x1f 0x0 ...
sbus0 is /sbus@1f,0
dma0 at sbus0: SBus0 slot 0xe offset 0x8400000
dma0 is /sbus@1f,0/espdma@e,8400000
/sbus@1f,0/espdma@e,8400000/esp@e,8800000 (esp0):
        esp-options=0x46
...
...
prtconf用于显示系统的配置信息,包括内存、外围设备等。
# prtconf|more
System Configuration:  Sun Microsystems  sun4u
Memory size: 192 Megabytes
System Peripherals (Software Nodes):
SUNW,Ultra-1
    packages (driver not attached)
        terminal-emulator (driver not attached)
        deblocker (driver not attached)
        obp-tftp (driver not attached)
        disk-label (driver not attached)
        sun-keyboard (driver not attached)
        ufs-file-system (driver not attached)
    chosen (driver not attached)
    openprom (driver not attached)
        client-services (driver not attached)
    options, instance #0
    aliases (driver not attached)
    memory (driver not attached)
    virtual-memory (driver not attached)
    counter-timer (driver not attached)
    sbus, instance #0
        SUNW,CS4231, instance #0 (driver not attached)
        auxio (driver not attached)
...
...
当在系统中增加新设备时,需要重新配置系统的硬件信息。这样,系统就会重新构建/devices和/dev目录。
下面是新增加硬盘的步骤:
1.在根目录下创建一个名为/reconfiguration的空文件,然后重新关机。
2. 将硬盘接上机器,然后开机。
3.用format命令查看新增的硬盘。
# touch /reconfigure
# init 5
# format[color="#cccccc"]


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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP