庞大资源库的计算机教程网站!
设为首页
加入收藏
总编信箱
投稿或申请专栏请先 [登 陆]
首页 操作系统 程序设计 图形图像 媒体动画 机械电子 WEB开发 数 据 库 办公系列 路由技术 网络原理 网络应用
认证考试 安全技术
首页>操作系统>Solaris>系统管理>正文
资料搜索
Google搜索
Google
返回上级列表

推荐文章

快速保存网页中所有图片的方法
Windows中让光驱巧妙“隐身”技
防范非法用户入侵Win 2000/XP系
两款比较典型的ASP木马防范方法
有关表格边框的css语法整理
Windows XP中可以被禁用的服务
SQL Server导出导入数据方法
Javascript所有对象的属性的获
网页(HTML)中的特殊字符
与篮球共舞,尽显模式本色
QQ病毒的手工清除方法
Photoshop为极品美女打造性感睫
天衣无缝:IIS与PHP水火也相容
SQL Server存储过程编写和优化

sa239学习笔记

 作者:wjg023    日期:2005-4-19
字号选择〖 〗/ 双击滚屏 单击停止   
理解不对的地方请指出

Module 1 Solaris操作系统文件结构

学习目标:
叙述/根目录下的子目录;
叙述文件组成;
了解文件类型;
用文件硬链接

/ 根目录下的子目录:

根目录与子目录逻辑上是父子目录关系,但物理上并不是;
man -s5 filesystem 查看文件目录结构

find . -inum 11203 显示块11203的链接文件,
ls -lL 显示当前文件类型,如是符号文件,显示它的链接文件的类型;

ls -li 显示文件块号;


Module2 管理逻辑硬盘

显示系统硬件:

Using the /etc/path_to_inst file 这个文件最好不要手动改
Using the prtconf command
Using the format command

只显示已经附加上的设备:

# 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

为检测指定设备名字的:

devfsadm -i driver_name

例如:
devfsadm -i sd 只检测 sd 支持的磁盘
devfsadm -i st 只检测st 支持的磁盘
devfsadm -i dad 只检测dad支持的磁盘

根据devfsadm发现新硬件修改/devices和/dev目录的内容

devfsadm -v

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




用format 对磁盘进行分区:

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.

Mount Directory
If the field is empty, the slice is currently not

mounted and no entry exists in the /etc/vfstab

file.


可以用prtvtoc 命令把磁盘的VTOC保存到一个文件中:

例如: prtvtoc /dev/rdsk/c1t0d0s2 > /vtoc/c1t0d0

可以把prtvtoc命令的输出内容导入到另外一块硬盘中去:

例如: fmthard -s datafile /dev/rdsk/c #t #d #s2



注意: fmthard 命令不能修改未加label的磁盘,你可以用format来完成fmthard这一要求;

Caution – The fmthard command cannot write a disk label on an
unlabeled disk. Use the format utility for this purpose.
上一篇:sa239学习笔记之二管理文件系统    下一篇:Solaris8性能监控软件SE Toolkit安装使用文档  
[发送给好友]  [关闭窗口]  [返回顶部]   转载请注明来源:www.it00.com   
特别声明: 本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
责任编辑: 原点 投稿作者: wjg023
信息来源: 网络 录入时间: 2005-4-19
关于我们 - 广告服务 - 版权申明 - 网站地图 - 联系方式 - 总编信箱 - 会员投稿