這篇文章主要講解了“NetApp常用命令總結(jié)”,文中的講解內(nèi)容簡(jiǎn)單清晰,易于學(xué)習(xí)與理解,下面請(qǐng)大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“NetApp常用命令總結(jié)”吧!
這篇文章主要講解了“NetApp常用命令總結(jié)”,文中的講解內(nèi)容簡(jiǎn)單清晰,易于學(xué)習(xí)與理解,下面請(qǐng)大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“NetApp常用命令總結(jié)”吧!
Data ONTAP 操作系統(tǒng)
1.查看硬盤信息
credit-2> sysconfig -r
2.查看主機(jī)光纖接口的信息
credit-2> fcp show initiator
3.查看卷的信息
data> qtree
4.查看LUN空間使用情況
credit-2> df -g
5.查看存儲(chǔ)所建組的信息
credit-2> df –Ag
6.檢查網(wǎng)絡(luò)接口
credit-2> ifconfig -a
7.檢查cluster狀態(tài)是否正常
credit-2> cf status
8.性能檢查
credit-2> sysstat 3
credit-netapp1> sysstat -x 1
9.查看系統(tǒng)日志:
仔細(xì)檢查是否有failed,error,warning等字樣
credit-2> rdfile /etc/messages
10.檢查所有硬件
credit-2> sysconfig -v
11.檢查網(wǎng)絡(luò)是否正常
credit-2> ping 192.168.1.200
12.在aggr0中創(chuàng)建jydb卷,大小為200g
credit-1>vol create jydb aggr0 200g
13.動(dòng)態(tài)給jydb卷增加100g
credit-1> vol size jydb +100g
減少卷大?。?br/>credit-netapp1> vol size neirong -7t;
14.刪除credit卷,要先offline再destroy
credit-1> vol offline credit
credit-1> vol destroy credit
15.輸出exportfs
先把復(fù)制內(nèi)容
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
然后在執(zhí)行:
credit-2> wrfile /etc/exports
黏貼剛才復(fù)制的內(nèi)容,必須回車結(jié)束,最后一行才能生效
ctl+c退出并保存
執(zhí)行exportfs命令,輸出目錄:
credit-2>exportfs -a
-----------------------------------------------------------------------------------
netapp> exportfs -i -o rw=10.1.15.125,root=10.1.15.125 /vol/test
-i -o 是當(dāng)前生效,配置如寫入/etc/exports文件,重啟恢復(fù)
netapp> exportfs -p sec=sys,rw=10.1.15.125,root=10.1.15.125 /vol/test
在/etc/exports中原先/vol/test配置被"#"注釋,并產(chǎn)生了對(duì)應(yīng)的新的配置
----------------------------------------------------------------------------------
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默認(rèn)路由命令
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 .enable off
options nis.enable off
18.修改文件系統(tǒng)inode
可以通過maxfiles vol_name命令修改
maxfiles vol_name查看
maxfiles vol_name max_num_files修改
可以修改的數(shù)值為卷的大小除以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.設(shè)置時(shí)鐘
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的狀態(tài)
credit-netapp1> aggr status -v
23.進(jìn)入高級(jí)模式
credit-netapp1> priv set advanced
24.移除硬盤機(jī)頭歸屬
credit-netapp1*> disk remove_ownership 0a.30.23
25.查看沒有歸屬機(jī)頭的磁盤
credit-netapp1*> disk show -n
26.把所有沒有歸屬機(jī)頭的磁盤,分配給該機(jī)頭
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的狀態(tài)
credit-2> snapmirror status
Snapmirror is on.
30.設(shè)置卷的狀態(tài)為限制模式
credit-netapp1> vol restrict huizheng
Volume 'huizheng' is now restricted.
31.創(chuàng)建snapmirror的增量同步策略
credit-netapp1> rdfile /etc/snapmirror.conf
credit-1:hetong credit-netapp1:hetong - 0 23 * *
credit-2:huizheng credit-netapp1:huizheng - 5 23 * *
- - - - - 5個(gè)橫杠代表不自動(dòng)執(zhí)行增量同步。
- * * * * 4個(gè)橫杠4個(gè)星代表一分鐘執(zhí)行一次。
32.在源端設(shè)置目的端IP為信任關(guān)系
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.查看當(dāng)前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操作系統(tǒng)上面使用netapp默認(rèn)的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主機(jī)
#mount 172.16.10.250:/vol/vol0 /mnt
40.檢查卷的參數(shù)設(shè)置
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操作系統(tǒng)添加路由:route add 172.16.10.0 mask 255.255.255.0 172.16.20.1
登錄netapp存儲(chǔ)
# ssh root@172.16.10.10
口令是:credit#2013
創(chuàng)建50g大小
站在用戶的角度思考問題,與客戶深入溝通,找到丁青網(wǎng)站設(shè)計(jì)與丁青網(wǎng)站推廣的解決方案,憑借多年的經(jīng)驗(yàn),讓設(shè)計(jì)與互聯(lián)網(wǎng)技術(shù)結(jié)合,創(chuàng)造個(gè)性化、用戶體驗(yàn)好的作品,建站類型包括:成都網(wǎng)站設(shè)計(jì)、網(wǎng)站制作、企業(yè)官網(wǎng)、英文網(wǎng)站、手機(jī)端網(wǎng)站、網(wǎng)站推廣、國際域名空間、虛擬主機(jī)、企業(yè)郵箱。業(yè)務(wù)覆蓋丁青地區(qū)。
credit-1>vol create cps aggr0 50g
當(dāng)前文章:NetApp常用命令總結(jié)
當(dāng)前路徑:http://jinyejixie.com/article16/ejjcgg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供建站公司、面包屑導(dǎo)航、響應(yīng)式網(wǎng)站、標(biāo)簽優(yōu)化、網(wǎng)站收錄、品牌網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)