日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

sa239學(xué)習筆記

理解不對的地方請指出

Module 1 Solaris操作系統(tǒng)文件結(jié)構(gòu)

學(xué)習目標:
敘述/根目錄下的子目錄;
敘述文件組成;
了解文件類型;
用文件硬鏈接

/ 根目錄下的子目錄:

根目錄與子目錄邏輯上是父子目錄關(guān)系,但物理上并不是;
man -s5 filesystem 查看文件目錄結(jié)構(gòu)

find . -inum 11203 顯示塊11203的鏈接文件,
ls -lL 顯示當前文件類型,如是符號文件,顯示它的鏈接文件的類型;

ls -li 顯示文件塊號;


Module2 管理邏輯硬盤

顯示系統(tǒng)硬件:

Using the /etc/path_to_inst file 這個文件最好不要手動改
Using the prtconf command
Using the format command

只顯示已經(jīng)附加上的設(shè)備:

# prtconf | grep -v not

注意: – The grep -v not command is used to omit all lines containing
the Word “not” from the output (such as driver not attached).


使用devfsadm 命令

To restrict the operation of the devfsadm command to a specific device
class, use the -c option.

devfsadm -c device_class


The values for device_classinclude disk, tape, port, audio, and
pseudo. For example, to restrict the devfsadm command to the disk
device class, perform the command:

# devfsadm -c disk

指定多個級時可以這樣:

# devfsadm -c disk -c tape -c audio

為檢測指定設(shè)備名字的:

devfsadm -i driver_name

例如:
devfsadm -i sd 只檢測 sd 支持的磁盤
devfsadm -i st 只檢測st 支持的磁盤
devfsadm -i dad 只檢測dad支持的磁盤

根據(jù)devfsadm發(fā)現(xiàn)新硬件修改/devices和/dev目錄的內(nèi)容

devfsadm -v

去掉硬件后可用以下命令進行掃描更新"
devfsadm -C




用format 對磁盤進行分區(qū):

Partition Table Terms and Usage
Term
Description

Part
The slice number. Valid slice numbers are 0 through 7.

Tag
A value that indicates how the slice is being used.

0 = unassigned

1 = boot

2 = root

3 = swap

4 = usr

5 = backup

6 = stand

8 = home

Sun StorEdge? Volume Manager array tags:

14 = public (region)

15 = private (region)

Flag
00 wm = The disk slice is writable and mountable.

01 wu = The disk slice is writable and unmountable. This is the default state

of slices dedicated for swap areas.

10 rm = The disk slice is read-only and mountable.

11 ru = The disk slice is read-only and unmountable.

Cylinders
The starting and ending cylinder number for the disk slice.



Size
The slice size: Mbytes (MB), Gbytes (GB), blocks (b), or cylinders (c).



Blocks
The total number of cylinders and the total number of sectors per slice.





提示: $字符表示把磁盤剩余空間自動分配到這個切片;
Note – Enter a dollar ($) sign as a value for the last partition size to
automatically assign the remaining space on the disk to this slice.

管理磁盤label:

有兩種方法:
format ---> verify
prtvtoc命令
例如:prtvtoc /dev/rdsk/c1t0d0s2

The disk label information includes the following fIElds:

Dimensions
Describes the logical dimensions of the disk.

Flags
Describes the flags that are listed in the partition table.

Partition
A slice number. It is described further in

Table 2-2 on page 2-36.

Tag
A value used to indicate how the slice is being used. It is described further in Table 2-2 on page 2-36.

Flags
The 00 flag is read/write, mountable; 01 is read/write, unmountable; and 10 is read only. These are described further in Table 2-2 on page2-36.

First Sector
Defines the first sector of the slice.

Sector Count
Defines the total number of sectors in the slice.

Last Sector
Defines the last sector number in the slice.

推薦閱讀