• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

[原]sa239学习笔记

发布: 2007-6-08 22:43 | 作者: seanhe | 来源: | 查看: 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.

 wjg023 回复于:2005-01-12 13:58:00
怎么不支持表格????/晕

 pptt0520 回复于:2005-01-12 18:36:20
不错!就是看到你的头像有点吓人,差点没心情看下去!换个吧!

 飞天二狭 回复于:2005-01-12 19:14:07
有同样的感觉

 geniiking 回复于:2005-01-13 09:47:53
头像看起来还很清秀,可以搞得更恶心一点。

 wjg023 回复于:2005-01-13 09:50:19
我长着就这样,大家就将就着看吧,人就长成这样了,唉!!!这绝对是我的真人照,绝对没有经过photoshop处理.就是我的照片!!

 wjg023 回复于:2005-01-13 09:57:11
如果有兴趣的朋友想看我张经典一刻,高清晰,数码照的话,留个mail,我发给大家,大家可以更清晰看到一个真实的我,看是否经过处理的,我保证是绝对没有处理过的底版照!!

 jyhuang 回复于:2005-01-17 20:20:40
兄弟好英俊啊,佩服

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网