注意:资源与内容较老,参考即可
目 录
一、检查状态及性能........................................................................................................ 1
1.1、概述.................................................................................................................. 1
1.2、几个有用的管理命令....................................................................................... 13
1.3、使用statit命令................................................................................................ 15
1.4、执行特殊的BOOT命令................................................................................... 17
二、检查状态及性能管理............................................................................................... 19
2.1、检查系统......................................................................................................... 19
2.1.1、sysconfig................................................................................................ 19
2.1.2、sysstat.................................................................................................... 21
2.1.3、与优化CPU性能的options命令............................................................ 22
1.1、概述
l 识别管理权限命令(priv admin)
l 解释管理权限命令的功能
l 定义一些对于管理员非常有用的普通命令
命令行提供4种类型的命令用于基本的系统管理或者排错。
l 普通权限的管理命令用于日常管理
l 高级权限的管理命令用于特殊任务,比如系统调优、测试、统计等。这种命令如果使用不当可能毁坏数据,所以推荐别在高级权限模式长时间停留。
l Options类的命令
l Flash启动命令在设备启动阶段可以获得
普通权限的命令在命令行打问号可以获得提示,主要是为了磁盘管理、网络和系统管理、物理或者虚拟接口管理等。下面是一系列普通权限的命令:
Configuration类—黄色的是这一类命令
一些命令解释(software、source):
tan> softwar命令用于从HTTP或HTTPS服务器下载DataONTAP软件镜像到filer,管理软件并安装或升级它们,一般是SETUP.EXE(NETAPP发布的)文件,软件下载后保存在根卷的/etc/software。 tan> arp –a ç====将IP地址解析成MAC地址 ? (192.168.0.1) at (incomplete) tan> arp -n tan tan (192.168.0.105) -- no entry tan> source -v /etc/rc ç=读取和执行包含filer命令的文件、一行行执行,但是其中一行出错,并不报错,继续执行,但执行结果会有问题,文件写全路径名,因为DataONTAP没有当前路径的概念。 #Auto-generated by setup Wed Mar 24 05:06:20 GMT 2010 hostname tan ifconfig ns0 `hostname`-ns0 mediatype auto route add default 192.168.0.1 1 add net default: gateway 192.168.0.1: entry already exists routed on options dns.enable off options nis.enable off |
Disk Management类
一些命令解释,storage命令详解:
dns –显示DNS信息,控制DNS子系统 tan> dns info ç===显示DNS解析器的状态 DNS is disabled tan> dns flush ç===删除DNS cache中的所有条目 DNS cache flushed. storage –这个命令用来管理存储子系统中的磁盘、SCSI和光纤卡。可以enable或者disable卡,列出disk 的信息。 tan> storage show adapter Slot: v0 ç== 适配器在哪个slot Description: Fibre Channel Host Adapter v0 (Network Appliance VHA rev. 15) Firmware Rev: 42 FC Node Name: d:c7b:f40500:000000 FC Packet Size: 2112 Link Data Rate: 0 Gbit SRAM Parity: Yes External GBIC: No State: Enabled In Use: Yes Redundant: Yes ç= 是否冗余
Slot: v1 Description: Fibre Channel Host Adapter v1 (Network Appliance VHA rev. 15) Firmware Rev: 42 FC Node Name: d:d7b:f40500:000000 FC Packet Size: 2112 Link Data Rate: 0 Gbit SRAM Parity: Yes External GBIC: No State: Enabled In Use: Yes Redundant: Yes
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 tan> storage show adapter v0 ç=== 指定适配器的名字,显示具体某个适配器 Slot: v0 Description: Fibre Channel Host Adapter v0 (Network Appliance VHA rev. 15) Firmware Rev: 42 FC Node Name: d:c7b:f40500:000000 FC Packet Size: 2112 Link Data Rate: 0 Gbit SRAM Parity: Yes External GBIC: No State: Enabled In Use: Yes Redundant: Yes tan> storage show ç== 显示所有元件 Slot: v0 Description: Fibre Channel Host Adapter v0 (Network Appliance VHA rev. 15) Firmware Rev: 42 FC Node Name: d:c7b:f40500:000000 FC Packet Size: 2112 Link Data Rate: 0 Gbit SRAM Parity: Yes External GBIC: No State: Enabled In Use: Yes Redundant: Yes
storage show hub [ -a ] [ <hub-name> ] not implemented for simulator storage show expander [ -a ] [ <expander-name> ] not implemented for simulator DISK SHELF BAY SERIAL VENDOR MODEL REV --------------------- --------- ---------------- -------- ---------- ---- v4.16 1 0 13740500 NETAPP VD-100MB 0042 v4.17 1 1 13740501 NETAPP VD-100MB 0042 v4.18 1 2 13740502 NETAPP VD-100MB 0042 v5.16 1 0 10604900 NETAPP VD-500MB 0042 v5.17 1 1 10604901 NETAPP VD-500MB 0042 tan> storage show shelf storage show shelf [ -a ] [ <shelf-name> ] not implemented for simulator tan> storage show tape storage show { tape | mc } not implemented for simulator tan> storage disable adapter v0 ç==将slot v0上的适配器disbale了,比如更换这个适配器上连接的外接SCSI设备,但此设备不能热插拔,则需要一定的操作,然后才可以更换。 Thu Apr 1 04:18:41 GMT [rc:notice]: Taking loop attached to Fibre Channel adapter v0 offline. Host adapter v0 disable succeeded tan> storage show adapter v0 Slot: v0 Description: Fibre Channel Host Adapter v0 (Network Appliance VHA rev. 15) Firmware Rev: 42 FC Node Name: d:c7b:f40500:000000 FC Packet Size: 2112 Link Data Rate: 0 Gbit SRAM Parity: Yes External GBIC: No State: Disabled In Use: No Redundant: Yes tan> storage show disk –p -p选项显示了连接到磁盘设备的首选和备份路径。比如磁盘设备可以通过A端口和B端口连接,如果两个都通,则一个是首选一个是备选。 PRIMARY PORT SECONDARY PORT SHELF BAY ------- ---- --------- ---- --------- v4.16 B 1 0 ç=我们上面把v0 disable了,则v4变成了首选路径,备份路径没了 v4.17 B 1 1 v4.18 B 1 2 v5.16 B v1.16 A 1 0 v5.17 B v1.17 A 1 1 v5.18 B v1.18 A 1 2 v5.19 B v1.19 A 1 3 v5.20 B v1.20 A 1 4 v5.21 B v1.21 A 1 5 v5.22 B v1.22 A 1 6 tan> storage enable adapter v0 ç===将v0激活后,再看,发现v0变成了首选路径,v4是备选路径 Thu Apr 1 04:33:06 GMT [rc:notice]: Bringing loop attached to Fibre Channel adapter v0 online Host adapter v0 enable succeeded tan> storage show disk -p PRIMARY PORT SECONDARY PORT SHELF BAY ------- ---- --------- ---- --------- v0.16 A v4.16 B 1 0 v0.17 A v4.17 B 1 1 v0.18 A v4.18 B 1 2 v5.16 B v1.16 A 1 0 v5.17 B v1.17 A 1 1 v5.18 B v1.18 A 1 2 ç=从这可以看出来v0,v4互相备份,v5和v1互相备份 df命令显示磁盘空闲空间 tan> df –h ç===以适合阅读的格式输出,尺寸单位自适应 Filesystem total used avail capacity Mounted on /vol/vol0/ 241MB 89MB 152MB 37% /vol/vol0/ tan> df -m Filesystem total used avail capacity Mounted on /vol/vol0/ 241MB 89MB 152MB 37% /vol/vol0/ tan> df -g Filesystem total used avail capacity Mounted on /vol/vol0/ 0GB 0GB 0GB 37% /vol/vol0/ tan> df -k Filesystem total used avail capacity Mounted on /vol/vol0/ 247644KB 91512KB 156132KB 37% /vol/vol0/ tan> df -t Filesystem total used avail capacity Mounted on /vol/vol0/ 0TB 0TB 0TB 37% /vol/vol0/ 上面几个命令按不同单位显示空闲空间 tan> df -r –h ç==显示卷上的预留空间 Filesystem total used avail reserved Mounted on /vol/vol0/ 241MB 89MB 152MB 0MB /vol/vol0/ /vol/vol0/.snapshot 0MB 13MB 0MB 0MB /vol/vol0/.snapshot tan> df -A –m ç=显示aggr的空间使用情况 Aggregate total used avail capacity aggr0 256MB 243MB 13MB 95% aggr0/.snapshot 13MB 12MB 0MB 95% aggr2 2137MB 0MB 2137MB 0% aggr2/.snapshot 112MB 0MB 112MB 0% |
更多内容请下载附件查看:
网友留言: