https://wenku.baidu.com/view/bb74f4416bec0975f565e20e.html

http://blog.itpub.net/31442725/viewspace-2135567/

常用检查命令
************************************* **************************************************************************
environment status 查看环境信息

version 查看OS版本
sysconfig -v 查看系统信息(设备序列号 系统软、硬件信息等)
sysconfig -a 查看系统信息详情
sysconfig -av sysconfig -r 查看RAID信息(spare盘及故障硬盘会在这里显示)
license 查看许可信息
cf status 查看HA状态
qtree status 显示qtree状态
vif status VIF所有端口是否正常
ifconfig -a 查看网络配置
disk show 查看磁盘分配信息
disk show -v 查看磁盘owner信息
aggr status 查看raid组信息
aggr status -r 查看raid组详情
vol status 查看卷状态
vol status -r 查看卷详情
lun show lun show -v 查看LUN信息
igroup show 查看igroup信息
df -Vh 查看卷空间
df -Ah 查看aggr空间
snap list 查看快照情况
fcp status 查看FCP服务是否开启
fcp show initiator 查看FCP连接
fcp show adapter 查看FC端口
igroup show 查看map情况
igroup show -v 查看map详情
lun show -m 查看lun的map情况
sysstat -x 2 查看系统当前性能信息
rdfile /etc/messages 查看系统日志信息

Data ONTAP 操作系统

1.查看硬盘信息
credit-2> sysconfig -r     
2.查看主机光纤接口的信息
credit-2> fcp show initiator     
3.查看卷的信息
data> qtree  
4.查看LUN空间使用情况
credit-2> df -g 
5.查看存储所建组的信息
credit-2> df –Ag
6.检查网络接口
credit-2> ifconfig -a
7.检查cluster状态是否正常
credit-2> cf status
8.性能检查
credit-2> sysstat 3
credit-netapp1> sysstat -x 1 
9.查看系统日志:
仔细检查是否有failed,error,warning等字样
credit-2> rdfile /etc/messages
10.检查所有硬件
credit-2> sysconfig -v
11.检查网络是否正常
credit-2> ping 192.168.1.200
12.在aggr0中创建jydb卷,大小为200g
credit-1>vol create jydb aggr0 200g
13.动态给jydb卷增加100g
credit-1> vol size jydb +100g
减少卷大小:
credit-netapp1> vol size neirong -7t;      
14.删除credit卷,要先offline再destroy
credit-1> vol offline credit
credit-1> vol destroy credit
15.输出exportfs
先把复制内容
credit-2> rdfile /etc/exports
/vol/cps  -sec=sys,rw=172.16.10.0/24,root=172.16.10.0/24,nosuid
/vol/hetong     -sec=sys,rw=172.16.10.0/24,root=172.16.10.0/24,nosuid
/vol/weixin     -sec=sys,rw=172.16.10.102:172.16.10.122,root=172.16.10.102:172.16.10.122,nosuid
然后在执行:
credit-2> wrfile /etc/exports
黏贴刚才复制的内容,必须回车结束,最后一行才能生效
ctl+c退出并保存
执行exportfs命令,输出目录:
credit-2>exportfs -a
-----------------------------------------------------------------------------------

netapp> exportfs -i -o rw=10.1.15.125,root=10.1.15.125 /vol/test

-i -o 是当前生效,配置如写入/etc/exports文件,重启恢复
netapp> exportfs -p sec=sys,rw=10.1.15.125,root=10.1.15.125 /vol/test
在/etc/exports中原先/vol/test配置被"#"注释,并产生了对应的新的配置
---------------------------------------------------------------------------------- 
16.删除快照

credit-1> snap delete -a dbbk

Are you sure you want to delete all snapshots for volume dbbk? y
Deleted dbbk snapshot hourly.5.
Deleted dbbk snapshot nightly.1.
Deleted dbbk snapshot hourly.4.
Deleted dbbk snapshot hourly.3.
Deleted dbbk snapshot hourly.2.
Deleted dbbk snapshot hourly.1.
Deleted dbbk snapshot nightly.0.
Deleted dbbk snapshot hourly.0.
credit-1> snap reserve dbbk 0
credit-1> snap sched dbbk 0 0 0 
17.添加NetApp默认路由命令
credit-2> route add default 172.16.10.1 1 
 配置文件:
credit-1> rdfile /etc/rc
#Auto-generated by setup Mon Jan  7 17:20:14 CST 2013
hostname credit-1
ifgrp create lacp vif01 -b ip e0b e0a
ifconfig vif01 `hostname`-vif01 mediatype auto partner vif01
#route add default NONE 1
route add default 172.16.10.1 1 
routed on
options dns.enable off
options nis.enable off 
18.修改文件系统inode

可以通过maxfiles vol_name命令修改
maxfiles vol_name查看
maxfiles vol_name max_num_files修改
可以修改的数值为卷的大小除以4KB
credit-1> maxfiles ruleengine 120000000
The new maximum number of files specified is more than twice as big as

it needs to be, based on current usage patterns.  This invocation of the
operation on the specified volume will allow disk space consumption for
files to grow up to the new limit depending on your workload. The maxfiles
setting cannot be lowered below the point of any such additional disk space
consumption and any additional disk space consumed can never be reclaimed.
Also, such consumption of additional disk space could result in less
available memory after an upgrade, which means you might not be able to
run WAFL_check.
The new maximum number of files will be rounded to 119999989.

Are you sure you want to change the maximum number of files? maxfiles: Maximum number of files not changed.

19.添加chenyu用户
useradmin user add chenyu -g administrators    用户名/口令:chenyu/Chenyu#2013
20.设置时钟服务器
credit-netapp1> options timed.servers 10.151.20.63,10.151.20.73
credit-netapp1> options timed.enable on
21.查看磁盘,raid组情况
credit-netapp1> sysconfig -r
22.查看aggr的状态
credit-netapp1> aggr status -v
23.进入高级模式
credit-netapp1> priv set advanced
24.移除硬盘机头归属
credit-netapp1*> disk remove_ownership 0a.30.23 
25.查看没有归属机头的磁盘
credit-netapp1*> disk show -n
26.把所有没有归属机头的磁盘,分配给该机头
credit-netapp1*> disk assign all
27.给aggr添加磁盘
credit-netapp1*> aggr add aggr0 -n 11
aggr add aggr0 -d 0a.30.5 0a.20.7 0a.30.4 0a.20.6 0a.30.3 0a.20.5 0a.30.2 0a.20.4 0a.30.1 0a.20.3 0a.30.0
28.添加snapmirror的许可。
credit-2> license add JOJTQPJ
A snapmirror 90 day site license has been installed.
29.查看snapmirror的状态
credit-2> snapmirror status
Snapmirror is on.
30.设置卷的状态为限制模式
credit-netapp1> vol restrict huizheng
Volume 'huizheng' is now restricted.
31.创建snapmirror的增量同步策略
credit-netapp1> rdfile /etc/snapmirror.conf
credit-1:hetong credit-netapp1:hetong - 0 23 * *
credit-2:huizheng credit-netapp1:huizheng - 5 23 * *
- - - - - 5个横杠代表不自动执行增量同步。
- * * * * 4个横杠4个星代表一分钟执行一次。
32.在源端设置目的端IP为信任关系
credit-2> options snapmirror.access host=172.16.10.250,172.16.10.251
33.第一次全量同步
credit-netapp1> snapmirror initialize -S credit-1:hetong credit-netapp1:hetong
34.增量同步
credit-netapp1> snapmirror update -S credit-1:hetong credit-netapp1:hetong
35.查看当前cifs共享
credit-netapp1> cifs shares
36.添加cifs共享
credit-netapp1> cifs shares -add rural /vol/rural
37.删除cifs共享
credit-netapp1> cifs shares -delete rural
38.在windows操作系统上面使用netapp默认的administrator用户访问
credit-netapp1> useradmin user list
Name: root
Info: Default system administrator.
Rid: 0
Groups:
Name: administrator                   
Info: Built-in account for administering the filer
Rid: 500
Groups: Administrators
Name: chenyu                          
Info: 
Rid: 131073
Groups: Administrators 
39.挂载netapp日志卷给linux主机
#mount 172.16.10.250:/vol/vol0 /mnt 
40.检查卷的参数设置

credit-netapp2> vol options dss_hetong
nosnap=off, nosnapdir=off, minra=off, no_atime_update=off, nvfail=off, 
ignore_inconsistent=off, snapmirrored=off, create_ucode=on, 
convert_ucode=off, maxdirsize=73400, schedsnapname=ordinal, 
fs_size_fixed=off, guarantee=volume, svo_enable=off, svo_checksum=off, 
svo_allow_rman=off, svo_reject_errors=off, no_i2p=off, 
fractional_reserve=100, extent=off, try_first=volume_grow, 
read_realloc=off, snapshot_clone_dependency=off, dlog_hole_reserve=off,
nbu_archival_snap=off

-----------------------------------------------------------------------------
添加路由:# route add -net 172.16.10.0 netmask 255.255.255.0 gw 172.16.20.1
windows操作系统添加路由:route add 172.16.10.0 mask 255.255.255.0 172.16.20.1
登录netapp存储
# ssh root@172.16.10.10
口令是:credit#2013
创建50g大小
credit-1>vol create cps aggr0 50g

Netapp常用命令相关推荐

  1. 【Netapp】NetApp常用命令

    Data ONTAP 操作系统 1.查看硬盘信息 credit-2> sysconfig -r      2.查看主机光纤接口的信息 credit-2> fcp show initiato ...

  2. Kubectl 常用命令, 开发人员常用k8s命令

    Kubectl 常用命令: 什么是常用,我用的,就是常用的

  3. docker常用命令详解

    docker常用命令详解 本文只记录docker命令在大部分情境下的使用,如果想了解每一个选项的细节,请参考官方文档,这里只作为自己以后的备忘记录下来. 根据自己的理解,总的来说分为以下几种: Doc ...

  4. 客快物流大数据项目(十五):DockeFile常用命令

    目录 DockeFile常用命令 一.FROM 二.​​​​​​​MAINTAINER 三.​​​​​​​RUN

  5. 客快物流大数据项目(九):Docker常用命令

    目录 Docker常用命令 一.帮助命令 二.镜像命令 1.搜索镜像

  6. linux常用命令(转载)

    Linux常用命令大全(非常全!!!) 最近都在和Linux打交道,感觉还不错.我觉得Linux相比windows比较麻烦的就是很多东西都要用命令来控制,当然,这也是很多人喜欢linux的原因,比较短 ...

  7. maven发布项目到私服-snapshot快照库和release发布库的区别和作用及maven常用命令

    maven发布项目到私服-snapshot快照库和release发布库的区别和作用及maven常用命令 在日常的工作中由于各种原因,会出现这样一种情况,某些项目并没有打包至mvnrepository. ...

  8. linux kvm虚拟化命令,Linux系统下kvm虚拟化(三)日常管理常用命令和配置说明

    根据我们之前创建和一些操作可以知道,KVM虚拟机的管理主要是通过virsh命令对环境下kvm虚拟机进行管理,下边这里整理一些常用的配置说明以及如何进行日常管理维护. 1,查看KVM虚拟机配置文件 KV ...

  9. kubectl常用命令_《蹲坑学kubernetes》之十五:kubectl命令详解

    kubectl用于运行Kubernetes集群命令的管理工具.本章节主要讲了kubectl基本语法和使用方法.在以后的实际工作中,使用越来越多,也会越来越熟悉. 1.kubectl语法 kubectl ...

最新文章

  1. springboot配置cxf
  2. (转帖)eclipse 下 搭建 django开发环境
  3. MVC5 模型 生成EF
  4. 1. CMake 系列 - 从零构建动态库和静态库
  5. python web开发-flask访问请求数据request
  6. 华为修改优先级命令_(完整版)华为设备基本配置命令
  7. Spark DataFrameRDD案例实现
  8. 我在百度运维的成长经历 之五
  9. Cortex-M开发板密码登陆界面
  10. win10 android驱动安装失败,win10系统下小米手机驱动安装失败如何解决
  11. 关于双层原子台阶的形成机制
  12. ps cc 2014 智能切图
  13. 小肩膀易语言四期POST+JS
  14. Black Hat USA 2011: Alexander Polyakov - CTO - ERPScan
  15. 3.4.3 区域与图像的平均灰度值
  16. [C++] 将 mp3 等音乐资源以资源形式嵌入 exe 文件中
  17. 老男孩教育46期-丁温郝
  18. html火焰字效果,如何用PS制作火焰字特效
  19. 位(bit)、字节(Byte)、MB(兆位)换算关系
  20. OKCC外呼中心为什么要把语音引入WEB中?

热门文章

  1. 【吴恩达机器学习】第五周课程精简笔记——代价函数和反向传播
  2. H3C对接外部Portal+Radius认证计费系统实现mac-trigger快速认证Mac无感知认证并结合L2TP实现阿里云部署对接配置
  3. NekoHTML 和 XPath
  4. 怎样写权利要求书(原创)
  5. android 循环弹幕,Android自定义View实现弹幕效果
  6. 什么是Hbuilder?
  7. iPhone手机热点连接不稳定
  8. Linux自动化运维部署+运维
  9. 开启「浏览器多线程下载」选项
  10. 虚拟机上的Linux系统如何联网?