1、10netapp存储配置练习检查健康状态与性能NetApp存储基础学习汇总(第十部分)目 录一、检查状态及性能 11.1、概述 11.2、几个有用的管理命令 131.3、使用statit命令 151.4、执行特殊的BOOT命令 17二、检查状态及性能管理 192.1、检查系统 192.1.1、sysconfig 192.1.2、sysstat 212.1.3、与优化CPU性能的options命令 22一、检查状态及性能1.1、概述 识别管理权限命令(priv admin) 解释管理权限命令的功能 定义一些对于管理员非常有用的普通命令命令行提供4种类型的命令用于基本的系统管理或者排错。 普通权限
2、的管理命令用于日常管理 高级权限的管理命令用于特殊任务,比如系统调优、测试、统计等。这种命令如果使用不当可能毁坏数据,所以推荐别在高级权限模式长时间停留。 Options类的命令 Flash启动命令在设备启动阶段可以获得普通权限的命令在命令行打问号可以获得提示,主要是为了磁盘管理、网络和系统管理、物理或者虚拟接口管理等。下面是一系列普通权限的命令:Configuration类黄色的是这一类命令一些命令解释(software、source):tan softwar命令用于从HTTP或HTTPS服务器下载DataONTAP软件镜像到filer,管理软件并安装或升级它们,一般是SETUP.EXE(N
3、ETAPP发布的)文件,软件下载后保存在根卷的/etc/software。tan arp a =将IP地址解析成MAC地址? (192.168.0.1) at (incomplete)tan arp -n tantan (192.168.0.105) - no entrytan source -v /etc/rc =读取和执行包含filer命令的文件、一行行执行,但是其中一行出错,并不报错,继续执行,但执行结果会有问题,文件写全路径名,因为DataONTAP没有当前路径的概念。#Auto-generated by setup Wed Mar 24 05:06:20 GMT 2010hostna
4、me tanifconfig ns0 hostname-ns0 mediatype autoroute add default 192.168.0.1 1add net default: gateway 192.168.0.1: entry already existsrouted onoptions dns.enable offoptions nis.enable offDisk Management类一些命令解释,storage命令详解:dns 显示DNS信息,控制DNS子系统tan dns info =显示DNS解析器的状态DNS is disabledtan dns flush =删除
5、DNS cache中的所有条目DNS cache flushed.storage 这个命令用来管理存储子系统中的磁盘、SCSI和光纤卡。可以enable或者disable卡,列出disk 的信息。tan storage show adapterSlot: v0 = 适配器在哪个slotDescription: Fibre Channel Host Adapter v0 (Network Appliance VHA rev. 15)Firmware Rev: 42FC Node Name: d:c7b:f40500:000000FC Packet Size: 2112Link Data Rate
6、: 0 GbitSRAM Parity: YesExternal GBIC: NoState: EnabledIn Use: YesRedundant: Yes = 是否冗余Slot: v1Description: Fibre Channel Host Adapter v1 (Network Appliance VHA rev. 15)Firmware Rev: 42FC Node Name: d:d7b:f40500:000000FC Packet Size: 2112Link Data Rate: 0 GbitSRAM Parity: YesExternal GBIC: NoState:
7、EnabledIn Use: YesRedundant: Yes。tan storage show adapter v0 = 指定适配器的名字,显示具体某个适配器Slot: v0Description: Fibre Channel Host Adapter v0 (Network Appliance VHA rev. 15)Firmware Rev: 42FC Node Name: d:c7b:f40500:000000FC Packet Size: 2112Link Data Rate: 0 GbitSRAM Parity: YesExternal GBIC: NoState: Enable
8、dIn Use: YesRedundant: Yestan storage show = 显示所有元件Slot: v0Description: Fibre Channel Host Adapter v0 (Network Appliance VHA rev. 15)Firmware Rev: 42FC Node Name: d:c7b:f40500:000000FC Packet Size: 2112Link Data Rate: 0 GbitSRAM Parity: YesExternal GBIC: NoState: EnabledIn Use: YesRedundant: Yesstor
9、age show hub -a not implemented for simulatorstorage show expander -a not implemented for simulatorDISK SHELF BAY SERIAL VENDOR MODEL REV- - - - - -v4.16 1 0 13740500 NETAPP VD-100MB 0042v4.17 1 1 13740501 NETAPP VD-100MB 0042v4.18 1 2 13740502 NETAPP VD-100MB 0042v5.16 1 0 10604900 NETAPP VD-500MB
10、0042v5.17 1 1 10604901 NETAPP VD-500MB 0042tan storage show shelfstorage show shelf -a not implemented for simulatortan storage show tapestorage show tape | mc not implemented for simulatortan storage disable adapter v0 =将slot v0上的适配器disbale了,比如更换这个适配器上连接的外接SCSI设备,但此设备不能热插拔,则需要一定的操作,然后才可以更换。Thu Apr
11、1 04:18:41 GMT rc:notice: Taking loop attached to Fibre Channel adapter v0 offline.Host adapter v0 disable succeededtan storage show adapter v0Slot: v0Description: Fibre Channel Host Adapter v0 (Network Appliance VHA rev. 15)Firmware Rev: 42FC Node Name: d:c7b:f40500:000000FC Packet Size: 2112Link D
12、ata Rate: 0 GbitSRAM Parity: YesExternal GBIC: NoState: DisabledIn Use: NoRedundant: Yestan 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
13、.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 onlineHost adapter v0 ena
14、ble succeededtan storage show disk -pPRIMARY 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 ca
15、pacity Mounted on/vol/vol0/ 241MB 89MB 152MB 37% /vol/vol0/tan df -mFilesystem total used avail capacity Mounted on/vol/vol0/ 241MB 89MB 152MB 37% /vol/vol0/tan df -gFilesystem total used avail capacity Mounted on/vol/vol0/ 0GB 0GB 0GB 37% /vol/vol0/tan df -kFilesystem total used avail capacity Moun
16、ted on/vol/vol0/ 247644KB 91512KB 156132KB 37% /vol/vol0/tan df -tFilesystem 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
17、 13MB 0MB 0MB /vol/vol0/.snapshottan 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% System and networking Management类一些命令解释:maxfiles命令 增加卷可以拥有的文件数量tan maxfiles vol0Vo
18、lume vol0: maximum number of files is currently 19990 (6054 used).tan maxfiles vol0 30000 =增加vol0的文件数The new maximum number of files specified is more than twice as big asit needs to be, based on current usage patterns. Increasing themaximum number of files consumes disk space, and the number can ne
19、verbe decreased. Configuring a large number of inodes can also result in lessavailable memory after an upgrade, which means you might not be able torun WAFL_check.The new maximum number of files will be rounded to 29985.Are you sure you want to increase the maximum number of files? yestan maxfiles v
20、ol0 Volume vol0: maximum number of files is currently 29985 (6053 used).tan uptime =系统已经启动多长时间5:32am up 2:11 0 NFS ops, 0 CIFS ops, 0 HTTP ops, 0 FCP ops, 0 iSCSI opsvscan命令 控制存储上面文件的病毒扫描tan vscan onWarning: CIFS clients will not be allowed to open files because there are no virus scanners registere
21、d with the filer. Are you sure? yesThu Apr 1 05:39:35 GMT vscan.server.connectedNone:warning: CIFS: Virus scanning is enabled but no vscan (anti-virus)servers are connected to the filer.Thu Apr 1 05:39:35 GMT vscan.enable:info: CIFS: Virus scanning has been enabled.Virus scanning is enabled tan vsca
22、nVirus scanning is enabled. No vscan servers are connected.List of extensions to scan:001,002,386,3GR,?_,ACE,ACM,ADE,ADP,ADT,AP?,ARC,ARJ,ASA,ASD,ASP,AX?,B64,BA?,BIN,BMP,BO?,BZ?,CAB,CC?,CDR,CDX,CEO,CGI,CHM,CL?,CMD,CNV,CO?,CPL,CPT,CPY,CRT,CSC,CSS,CSV,D?B,DAT,DEV,DIF,DL?,DO?,DOC,DOT,DQY,DRV,EE?,EFV,EML
23、,EX?,EXE,FDF,FMT,FO?,FPH,FPW,GF?,GIM,GIX,GMS,GNA,GW?,GWI,GZ?,HDI,HHT,HLP,HT?,HWD,ICE,ICS,IM?,IN?,IQY,ISP,ITS,JAR,JP?,JS?,LGP,LIB,LNK,LWP,LZH,M3U,MB0,MB1,MB2,MBR,MD?,MHT,MOD,MPD,MPP,MPT,MRC,MS?,MSG,MSO,NAP,NEW,NWS,OB?,OC?,OFT,OL?,OLE,OTM,OV?,PCD,PCI,PD?,PDF,PF?,PHP,PI?,PLG,POT,PP?,PPZ,PRC,PWZ,QLB,QPW
24、,QQY,QTC,RAR,REG,RMF,RQY,RTF,SCR,SCT,SH?,SIS,SKV,SLK,SMM,SPL,SRF,SWF,SYS,TAR,TAZ,TBZ,TD0,TFT,TGZ,TLB,TSP,UNP,URL,UUU,VB?,VBS,VS?,VVV,VWP,VXD,WBK,WIZ,WMV,WP?,WRI,WRL,WRZ,WS?,X32,XL?,XML,XRF,XSL,XTP,XX?,Z0M,Z?,ZI?,ZIP,ZL?,ZZZList of extensions not to scan: Extensions-not-to-scan list is empty.Number o
25、f files scanned: 0Number of scan failures: 0Number of throttled requests: 0useradmin命令 管理存储的访问控制useradmin user command argument.useradmin domainuser command argument.useradmin group command argument.useradmin role command argument.useradmin whoamiuser可以放到一个或多个group里domainuser:必须CIFS起来,通过windows域来验证。
26、group是user和domainuser的容器,可以有一个或多个角色role一组能力(可以执行某些动作的能力)有六组内置的能力: login-*, cli-*,api-*, security-*, compliance-* and filerview-readonlytan useradmin role add tanyx -a login-*,cli-help*,cli-ifconfig* =新建一个roleThu Apr 1 06:57:58 GMT useradmin.added.deleted:info: The role tanyx has been added.Role adde
27、d.tan useradmin group add test -r tanyx =新建一个groupThu Apr 1 07:00:31 GMT useradmin.added.deleted:info: The group test has been added.Group added.tan useradmin user add wangjun -g test =新建一个userNew password:Retype new password:User added.tan Thu Apr 1 07:02:32 GMT useradmin.added.deleted:info: The us
28、er wangjun has been added.-试验使用这个新用户可以做什么-Data ONTAP (tan.)login: wangjunPassword: tan Thu Apr 1 07:03:43 GMT console_login_mgr:info: wangjun logged in from consoletan useradmin whoamiThu Apr 1 07:03:53 GMT useradmin.unauthorized.user:warning: User wangjun denied access - missing required capability
29、: cli-useradminPermission denied, user wangjun does not have access to useradmintan ifconfig -ans0: flags=848043 mtu 1500 inet 192.168.0.105 netmask 0xffffff00 broadcast 192.168.0.255 ether 00:50:56:11:e6:ba (auto-100tx-fd-up)ns1: flags=8042 mtu 1500 ether 00:50:56:12:e6:ba (auto-unknown-cfg_down)lo: flags=1948049 mtu 9188 inet 127.0.0.1 netmask 0xff000000 broadcast 127.0.0.1用此命令创建的group、user与/etc/passwd、/etc/group没关系routed命令 routed是一个boot的时候启动的管理路由表的后台进程tan routed statusRIP snooping is onGateway Me
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1