[ 永遠的UNIX::UNIX技術資料的寶庫 ]   GB | BIG5

首頁 > 系統管理 > Solaris > 正文
Solaris系統管理培訓(第十一章:磁盤配置和命名)
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 
(http://www.fanqiang.com)
    進入【UNIX論壇

相關文章
Solaris系統管理培訓(第十五章:網絡文件系統) (2001-05-15 23:15:00)
Solaris系統管理培訓(第十四章:文件系統掛接) (2001-05-15 22:15:00)
Solaris系統管理培訓(第十三章:文件系統介紹) (2001-05-15 21:15:01)
Solaris系統管理培訓(第十二章:磁盤、分區和格式化) (2001-05-15 20:15:01)
Solaris系統管理培訓(第十一章:磁盤配置和命名) (2001-05-15 19:15:01)
Solaris系統管理培訓(第十章:進程控制) (2001-05-15 18:15:01)
Solaris系統管理培訓(第九章:初始化文件管理) (2001-05-15 17:15:00)
Solaris系統管理培訓(第八章:用戶管理) (2001-05-15 16:15:01)
Solaris系統管理培訓(第七章:系統安全) (2001-05-15 15:15:01)
Solaris系統管理培訓(第六章:啟動過程) (2001-05-15 14:15:00)

===更多相關===
 

★  樊強制作 歡迎分享  ★