您好,欢迎访问三七文档
当前位置:首页 > 建筑/环境 > 工程监理 > NetApp常用管理命令总结
一、系统相关:sysconfig-v查看硬件信息,主要显示了硬件平台、版本、序列号、适配器(网卡、光纤卡等)、硬盘等硬件信息sysconfig-r显示磁盘、raid、volume信息,等同于volstatus-r-每个RAID会显示RAID的类型、RAID中每个磁盘是属于数据盘(data)、校验盘(parity或dparity);-volume的划分信息;-磁盘基本信息,不属于RAID中的spare是本控制器的,partner是对端控制器的;-磁盘详细信息,HA=hostadapter,比如4a表示slot4槽上卡的a口;shelf表示磁盘柜编号(如1表示1号盘柜);BAY表示在盘柜的第几块;-当有盘损坏的时候,可以用sysconfig-r命令来看具体是那块盘损坏了;二、配置RAID组:2.1查看aggr信息aggrshow_space-haggr0查看aggr空间的使用情况(-h是以MB为单位,-g是以GB为单位,如果不指定aggr,则列出所有aggr的space使用情况)volstatus-r可以看到每个aggr包含几个raid组(rg),每个raid组有几块磁盘等信息,并列出所有spare磁盘aggrstatusaggr0-r列出指定的aggr0的信息-aggrstatus[atv-name][-d|-r|-v|-l|-c|-b|-s|-f|-i|-?]nas3020a*aggrstatusAggrStateStatusOptionsaggr0onlineraid_dp,aggrrootnas3020a*aggrstatus-vaggr2查看aggr2的一些options的值,如raidsize默认是16(16块盘一个RAID,超过16块盘会创建一个新的raid组)AggrStateStatusOptionsaggr2onlineraid_dp,aggrnosnap=off,raidtype=raid_dp,raidsize=16,ignore_inconsistent=off,snapmirrored=off,resyncsnaptime=60,fs_size_fixed=off,snapshot_autodelete=on,lost_write_protect=onVolumes:nonePlex/aggr2/plex0:online,normal,activeRAIDgroup/aggr2/plex0/rg0:normalnas3020a*aggrhelpoptions查看aggr相关的options的帮助信息(options的功能介绍和使用方法)aggroptionsaggr-nameoption-nameoption-valThefollowingcommandsareavailable;formoreinformationtypeaggrhelpoptionscommandfs_size_fixedraidsizeresyncsnaptimesnapmirroredlost_write_protectraidtyperootsnapshot_autodeletenosnapnas3020a*aggrhelpoptionsraidtype查看aggr的raidtype的说明和使用方法aggroptionsatv-nameraidtypenew-type={raid4|raid_dp}-changeaggregateortraditionalvolumeatv-name'sRAIDtypetonew-type2.2创建aggraggrcreateaggr1-d0a.200a.210a.220a.230a.24指定哪些盘组成aggr1aggrcreateaggr28指定由8块盘组成aggr2nas3020a*aggrstatusaggr2-r查看aggr2的信息,可知系统自动从oa和ob各选择4块盘组成aggr2(负载分担)Aggregateaggr2(online,raid_dp)(blockchecksums)Plex/aggr2/plex0(online,normal,active)RAIDgroup/aggr2/plex0/rg0(normal)RAIDDiskDeviceHASHELFBAYCHANPoolTypeRPMUsed(MB/blks)Phys(MB/blks)-------------------------------------------------------------------------dparity0b.250b19FC:A-FCAL10000136000/278528000137104/280790184parity0a.350a23FC:A-FCAL10000136000/278528000137104/280790184data0b.320b20FC:A-FCAL10000136000/278528000137104/280790184data0a.250a19FC:A-FCAL10000136000/278528000137104/280790184data0b.260b110FC:A-FCAL10000136000/278528000137104/280790184data0a.360a24FC:A-FCAL10000136000/278528000137104/280790184data0b.350b23FC:A-FCAL10000136000/278528000137104/280790184data0a.260a110FC:A-FCAL10000136000/278528000137104/280790184nas3020a*aggrstatusaggr1-r查看aggr1的信息,由自定义的5块盘组成Aggregateaggr1(online,raid_dp)(blockchecksums)Plex/aggr1/plex0(online,normal,active)RAIDgroup/aggr1/plex0/rg0(normal)RAIDDiskDeviceHASHELFBAYCHANPoolTypeRPMUsed(MB/blks)Phys(MB/blks)-------------------------------------------------------------------------dparity0a.200a14FC:A-FCAL10000136000/278528000137104/280790184parity0a.210a15FC:A-FCAL10000136000/278528000137104/280790184data0a.220a16FC:A-FCAL10000136000/278528000137104/280790184data0a.230a17FC:A-FCAL10000136000/278528000137104/280790184data0a.240a18FC:A-FCAL10000136000/278528000137104/2807901842.3扩展aggraggradd命令的用法:nas3020aaggrhelpaddaggraddaggr-name[-f][-n][-graid-group|new|all]disk-list-adddiskslistedindisk-listtoaggregateaggr-name;disk-listiseither:ndisks[@disk-size]or-ddisk-name1disk-name2...disk-nameN[-ddisk-name1disk-name2...disk-nameN].参数说明:-n预演命令的执行,如:nas3020aaggraddaggr2-n3aggraddaggr2-d0b.210a.270b.45-g可以将盘加入指定的RG中(raid-group),或加入到一个新建的RG中(new),而使用all选项,则会先向存在的RG里面添加磁盘,直到它们满了,然后再新创建RG如果没有使用-g选项,则磁盘首先被加入到最近创建的RG里面,直到它满了才会创建新的RG(同-gall)-d指定具体的磁盘,如:aggraddaggr2-d0b.200a.240b.42...Additionof3diskstotheaggregatehascompleted.实例演示:nas3020a*aggraddaggr13往aggr1中增加3块盘nas3020a*aggrstatusaggr1-r再次查看后,发现在aggr1中原来的raid组中增加了3块数据盘(而不是增加一个raid组)Aggregateaggr1(online,raid_dp)(blockchecksums)Plex/aggr1/plex0(online,normal,active)RAIDgroup/aggr1/plex0/rg0(normal)RAIDDiskDeviceHASHELFBAYCHANPoolTypeRPMUsed(MB/blks)Phys(MB/blks)-------------------------------------------------------------------------dparity0a.200a14FC:A-FCAL10000136000/278528000137104/280790184parity0a.210a15FC:A-FCAL10000136000/278528000137104/280790184data0a.220a16FC:A-FCAL10000136000/278528000137104/280790184data0a.230a17FC:A-FCAL10000136000/278528000137104/280790184data0a.240a18FC:A-FCAL10000136000/278528000137104/280790184data0b.360b24FC:A-FCAL10000136000/278528000137422/281442144data0a.370a25FC:A-FCAL10000136000/278528000137104/280790184data0b.270b111FC:A-FCAL10000136000/278528000137104/280790184nas3020a*aggroptionsaggr1raidsize4设置随后加入aggr1中的盘,由4块盘组成一个raid组,但是不影响前面已创建好的raid组nas3020a*aggraddaggr14然后再往aggr1中增加4块盘nas3020a*aggrstatusaggr1-r再次查看aggr1的信息,发现aggr1中增加了一个4块盘组成的raid组Aggregateaggr1(online,raid_dp)(blockchecksums)Plex/aggr1/plex0(online,normal,active)RAIDgroup/aggr1/plex0/rg0(normal)RAIDDiskDeviceHASHELFBAYCHANPoolTypeRPMUsed(MB/blks)Phys(MB/blks)-------------------------------------------------------------------------dparity0a.200a14FC:A-FCAL10000136000/278528000137104/280790184parity0a.210a15FC:A-FCAL10000136000/278528000137104/280790184data0a.
本文标题:NetApp常用管理命令总结
链接地址:https://www.777doc.com/doc-4733539 .html