软件测试:solaris性能监控

发表于:2008-1-18 17:04

字体: | 上一篇 | 下一篇 | 我要投稿

 作者:未知    来源:网络转载

第四节:磁盘,卷和文件系统监控
1、solaris

查看文件系统空间

#df -h
文件系统               大小   用了   可用 容量      挂接在
/dev/dsk/c1t0d0s0      480M   278M   154M    65%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
......

查看文件系统类型

# fstyp /dev/rdsk/c1t0d0s1
ufs

solaris中类似的命令为prtvtoc,可列出指定磁盘的分区信息:

# prtvtoc /dev/rdsk/c1t0d0s2
* /dev/rdsk/c1t0d0s2 partition map
*
* Dimensions:
*     512 bytes/sector
*      32 sectors/track
*     128 tracks/cylinder
*    4096 sectors/cylinder
*    4094 cylinders
*    4092 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00    1052672   1048576   2101247   /
       1      7    00    2101248   1273856   3375103   /var
       2      5    00          0  16760832  16760831
       3      3    01       4096   1048576   1052671
       5      0    00    3375104   1048576   4423679   /opt
       6      4    00    4423680  11288576  15712255   /usr
       7      8    00   15712256   1048576  16760831   /export/home
       8      1    01          0      4096      4095

 

33/3<123
《2023软件测试行业现状调查报告》独家发布~

关注51Testing

联系我们

快捷面板 站点地图 联系我们 广告服务 关于我们 站长统计 发展历程

法律顾问:上海兰迪律师事务所 项棋律师
版权所有 上海博为峰软件技术股份有限公司 Copyright©51testing.com 2003-2024
投诉及意见反馈:webmaster@51testing.com; 业务联系:service@51testing.com 021-64471599-8017

沪ICP备05003035号

沪公网安备 31010102002173号