Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1976177
  • 博文数量: 593
  • 博客积分: 20034
  • 博客等级: 上将
  • 技术积分: 6779
  • 用 户 组: 普通用户
  • 注册时间: 2006-02-06 14:07
文章分类

全部博文(593)

文章存档

2016年(1)

2011年(101)

2010年(80)

2009年(10)

2008年(102)

2007年(16)

2006年(283)

我的朋友

分类: 服务器与存储

2010-11-01 09:57:41

first day
---------------------------------------------------------
Data ONTAP 7.2 Operating System
WAFL :文件系统 write anywhere file layout
NVRAM: 非易失RAM,由锂电池供电。
clustering:存储的共享。
存储系列:
FAS6000 /3000 series unified enterprise-class storage  ----- Data center storage 数据中心
FAS200 Remote and departmental storage  -----  Remote  Dept。 storage 部门级存储
NearStore on FAS    ---- near-line storage  近线存储
Economical
secondary storage
V-Series                                          -------Storage virtualization   虚拟带库
Dynamic virtualization for heterogeneous storage -------可以兼容别的存储,以raid0方式共享
数据中心和近线存储的主要区别在与性能上,系统一样,操作一样。
NETAPP 存储的与其他存储的兼容: V-series 把其他厂商的存储虚拟成netapp的存储
WORM: write one read multiple
ILM:Information Lifecycle Management 信息生命周期管理
das:直连存储
FAS 系列的存储:
series:  fas6000           fas900                fas3000         fas2000   
:fas200已经停产了,只有一个光纤接口
fas250:FC port 只对磁带,不能建san,
fas270:FC 建san 或对磁带
checking Disk Shelf ID numbers
一个loop最多 7个shelf,可以有多个loop
shelfID: 要设置每个loop的shelfID,近机头的为 shelf 1
NAS VS SAN
Direct-attached storage : 直接的存储
SAN: Storage Area Network   存储网络    实现结构:user----application------file system---SAN----storage
NAS:Network Attached Storage 在网络上的附加存储,如: NFS CIFS   实现结构: user---application---LAN---file system --storage
NETAPP的NAS有自己的文件系统: WAFL
NETAPP:存储构架
                磁  盘
                  |
              WAFL文件系统
              |           |
         filesystem   block server
              |           |
       NAS-NFS-CIFS  SAN blocks 虚拟的SAN

启动 ONTAP
#cd /sim/node1/
#./runsim.sh    启动 filer--- 就是netapp的存储
#halt  关闭filer
#./setup.sh   保证关闭 ONTAP的情况下,重新配置 filer
意外非正常退出 telnet ,则需要运行
# rsh IP -l 用户名:密码 logout telnet
> priv set  advanced   进入高级模式
*> priv set admin  进入管理模式   
#man priv  查看帮助文件
基本系统配置命令:
> sysconfig -v   显示详细 I/O 设备信息
> vol status -r   显示系统raid的信息
> sysconfig -r 同上
> sysconfig -c  检查配置是否错误
option  设置环境变量, 会改动/etc/registry 文件
vol options
> options 显示出 option 环境变量
> options  aut   把以aut开头的列出来
> options security   显示安全规则
> option telnet.enable [on|off]  
options telnet.access [legacy|*| -l [host=hostname]]
           rsh.enable [on|off]
options rsh.access host=host3
options trusted.hosts -  关闭IE filerview
options trusted.hosts *  打开
options ssh   查看 ssh 的现在状态
ONTAP:
根目录: /vol 类似 linux  /
特殊: 存在 /etc/rc,其实是 /vol/vol0/etc
编辑文件:
# rdfile  full_path     查看文件

#wrfile full_path  回车首先清空该文件,再记录写下的内容,最后回车结束,最后一行才能生效, ctl+c 退出并保存了。
所以编辑文件前首先 rdfile ,以方便把原内容粘贴回去。
#wrfile -a /etc/rc  lkdsfsdjfj  在最后一行增加

administrative access control  管理 访问控制
# useradmin user
            group
            role
> useradmin role list  显示相关的角色 的信息和权限
> passwd   修改密码
> useradmin user add  名字 -g  组名
用户作用: 管理filer 、访问sim 的认证 。。。
***   autoSupport   ----- 一个监控存储的服务进程,通过设置能触发 e-mail 到网络技术支持中心。
   存储系统没有邮件服务器,需要邮件服务器,而且是匿名发送的。
触发事件:
low NVRAM LITHIUM battery
disk fail
。。。。。。
。。。
邮件的内容:
命令的输出结果:
df 。。。。。。。
激活autosupport 及相关配置
options autosupport.support.enable [on|off]
                    .mailhost [host1,...,host5]
                    .to [adress1,...,address5]
                    .from
                    .content
                    .noteto
                    .doit
                  
----------------------------------------------------------------------------------------------------------------------------
second day
-----------------------------------------------------------------------------------------------------------------------------
     
RAID0: 条带化
RAID1:镜像
RAID5: 条带化,容量是 N-1块盘
RAID4: 条带化,一个固定盘做校验,性能瓶颈在检验盘,校验盘被频繁读写,成为热点盘。扩容时,比较容易。
RAID-DP: double parity 两块校验盘。采用两种不同的校验方式来做 奇偶校验,RAID-DP 的性能优于RAID5
RAID GROUP Size
NETAPP对raid组磁盘个数的限制:
RAID-DP
             minimum Group size        max     default
R200             3                     16         14
R150             3                     16         12
R100             3                     12         12
ALL OTHE         3                     28         16
RAID4
R200    2  7   7
R150    2  6   6
R100    2  8   8
FAS250  2  14  7
other   2  14  8
spare 盘,是系统的一部分,不属于 RAID Group,是全局的。
netapp是软件raid,磁盘raid跟位置无关,可以插到任意位置。也可以把一个机头的整个raid 直接插到另一个机头中。
查看那个磁盘坏的命令:
#sysconfig -r
#vol status -r
#aggr status -r
degraded mode 降级模式 : 坏盘,而且有没有 spare,默认系统可以工作 在降级模式 24个小时,没有数据丢失,之后就关机。
可以修改时间,但最好不要修改:
#options raid.timeout 24
mixing and matching Disks 磁盘混用
hot-spare 和 parity 校验盘用最大的。
推荐最好用 大小一样的磁盘。
options.raid.reconstruct.perf_impact value   重构时的资源控制
value: low ,medium (default),high
#options.raid.scrub.enable [on|off]      对磁盘进行介质扫描,排除错误,并修复,延长磁盘寿命。默认是开放的
raid scrub to occur automatically at defualt time and day(1:00 a.m on sundays)
#options.raid.scrub.perf_impact value
#disk command:
#disk scrub start
#disk fail disk_name
#disk remove disk_name
#disk replace start disk_name
#disk sanitize start disk_name  ;start remove all disk data
#disk sanitize abort disk_name  ;stop
#disk zero spares             ;zero all non-zeroed RAID spare disks,把non-zero盘,变为zero,spare盘才能马上使用。会占用系统资源
#disk.auto.assign             ;default on  两个控制器时,可以分配给那个控制器
#disk_fw_update disk_list
DISK磁盘命名:
device ID: 从右边开始数 DS14系列: shelf1:16-29  shelf2: 32-45  shelf3: 61-48   shelf4:77-64  FCX : 6-0   14-8  22-16  30-24 38-32 46-40 54-48
FCport: 主板上的 0a,0b,。。。  扩展槽 4 上的,则: 4a,4b,....
diskID:4a.16   , 4a的光纤端口.DeviceID
Aggregates 聚集:
RAID Group: 多个磁盘组成
Plexes: 一个或多个 RAID group
aggregate :一个或两个 plexes ,假如raid level是镜像时,会包含两个 plexes 。软件sync-mirror,需要license ,RAID4+1 或 RAID-DP+1
volume: depends on its aggregate for all of its physical storage。这种是 plexes volume
         逻辑的存储实体。
创建aggregate ,格式: aggr command argument
#aggr create aggrname [options]   options: -t: 类型 raid4  raid-dp(default)  -r:raid size min:2  max:14 ,组成 raid 磁盘数量  -n: 多少个spare盘。
#aggr create aggr1 -t raid-dp  -r 4   7      ;做了一个 rg0:2+2  rg1:1+2
#aggr add aggrname 3                        向 aggrname 加 3块盘,由于 -r 是 rg2: 1+2
#aggr options aggrname raidsize 7         可以修该raid size 属性,修改后只对以后增加有效
#aggr options aggrname raidtype raid-dp   可以把raid4改为raid_dp,此时应该保证有spare盘存在,或raid_dp改为raid4
#aggr status aggrname  -r  查看当前aggr的状态,并列出raid 组的信息
#aggr status -v          查看所有aggr的状态
#aggr  rename aggrname  newname
#aggr offline
#aggr online
#aggr destroy aggrname
#df -Ah      A:Aggregate   h:human readable  查看aggragate的容量
#aggr add aggr1 -f -g rg0 -d v0.19 v0.20      -f 忽略错误  -g 指定raid组  -d 指定增加的disk
创建volume ,最小20M 最大 16T,
#vol create volname aggrname  100M      :单位:M G T
#vol size volname +100M                :volume的在线扩容,最小4k,也可以 -1G
#vol create volname -s none aggrname maxsize    创建volume的最大空间,但暂时不占,也就是aggr的空间没有减少。
#vol options volname guarantee none      
#df -h   查看 vol的空间利用情况  。
netapp存储 cluster , 两个控制器 ative  active 是独立的。不能实现均衡。
两个机头,两个机柜
心跳线

      CPU----CPU
       | \  / |  
       X /  \ Y
metro-cluster 解决方案-------高度冗余
    。。CPU   CPU。。
    |  |  \ /  |   |
    |  X  / \  Y   |
    |  |  /  \ |   |
    |。X'/    \Y'。|
NETWORK
1、主机名解析method
* /etc/hosts
* network information service (NIS) server    option dns
* Domain Name system (DNS)server              option nis
#> rdfile  /etc/nsswitch.conf
#Auto-generated by setup Mon Sep  1 04:54:08 GMT 2008
hosts: files       nis     dns
passwd: files      nis     ldap
netgroup: files    nis  ldap
group: files       nis     ldap
shadow: files      nis
Vitual interface (VIF) 虚拟接口
把多条物理链路虚拟成一个接口
1、sigle_mode trunk
Provides Failover Capabilities ,提供一个 ativelink  和 inativelink ,当active fail时,自动切换到 另一个 inactive link

2、multimode trunk
需要 交换机的 etherChannel Trunk 支持
多条路经,均衡工作
The vif commands:
#vif create [single | multi]  -b [rr | ip |mac ] []
#vif delete  [interface_list]
#vif destroy
#vif [favor | nofavor ]
#vif status []
#vif stat vif_name [interval]
#ifconfig vif_name
上面这些命令不会保持,除非写到/etc/rc 文件中
VLAN
优势: 能有效管理
       安全性
       网口缺少时用
#vlan create -g on  
#valn delete [-q]  
#vlan add  
#vlan stat  
#vlan modify -g [on | off]
把vlan看做一个 独立的 interface ,可以通过 ifconfig 命令配置 ip
这些命令不会保持,除非学到/etc/rc文件中。
vlan 应用在网口缺少时的情况,可以为一个网口设多个ip地址,把一个filer 虚拟成多份额filer,这样就能在网络上隔离存储。与license:

-----------------------------------------------------------------------------------------------------------------
                        the third day
------------------------------------------------------------------------------------------------------------------
CIFS(common internet  file system)通用因特网文件系统
微软的windows中应用
before you can request resource from a server ,these function are required:
* user authentication : 开始会话之前的认证,这样可以访问server
*user authentication :permission to access to share
认证: 1、本地认证 基于 workgroup
       2、域控制器认证
********license cifs **********
#license add license_code
或 在filerview中 filer 菜单下有
#cifs setup 在这之前应该先停止cifs   #cifs terminate
。。。。Hiden share:看不见的,以$ 结束的
。。。。admin share: 只允许管理组 administrator组的成员访问
默认创建的几个共享:
C$    hiden admin 共享根目录
ETC$  hiden admin 共享/etc目录
home  all can control 共享 /home
#cifs shares  查看当前共享
#cifs shares -add sharename  path  -comment decriptions    sharename: 访问时的名字   path格式: /vol/vol2    -comment 可以不指定,此时为空
#cifs shares -delete sharename
#options cifs.enable_share_browsing [on | off] 目录是否可见
#useradmin user list  查看用户,看那些用户有权登陆cifs,这种认证适用于 windows workgroup。
#qtree security /vol/vol2 ntfs   
非windows workgroup 访问的认证,在/etc/passwd ,/etc/group下认证
在windows 下,运行:
[url=file://\\IP\sharename]\\IP\sharename[/url]
在windows 下停止,cifs访问: 运行 cmd
#net use  查看当前网络使用
#net use /delete *   删除当前网络使用,再次运行时,会提示输入用户名和密码
ONTAP下修改用户密码:
#passwd
#cifs access sharename user  right 权限的控制
#cifs access -delete sharename right  删除相关的权限
#cifs sessions 查看连接信息
#cifs terminate  停止cifs服务
CIFS认证的三步:
1、连接时,根据是否是workgroup 或 Domain 采用那种认证,允许登陆。
2、share 权限的认证,exportfs 出去的权限,也就是共享的权限
3、检查文件的属性,是否可以 rwx ,或可读,可写。。。,这里需要usermapping
在options walf.default 中可以看到默认的 mapping user 为 pcuser ,假如上面的文件为空,则采用默认的 pcuser
默认值在:
#options wafl 中。
wafl.default_nt_user                    
wafl.default_qtree_mode      0777      
wafl.default_security_style  unix      
wafl.default_unix_user       pcuser     
wafl.group_cp                off        
wafl.inconsistent.buf_limit  10         
wafl.inconsistent.ino_limit  5         
wafl.inconsistent.snap_limit 5         
wafl.maxdirsize              1310      
wafl.nt_admin_priv_map_to_root on         
wafl.root_only_chown         on         
wafl.wcc_minutes_valid       20   
     
NFS  ---- 编辑文件
/etc/exports
或命令 exportfs
exports格式:
/vol/vol0/pubs  -rw=host1:host2,root=host1
/vol/vol0/pubs  -rw=host1:host2:-host3,root=host1      -host3:代表排除host3,也可以定义网络组。。
/vol/vol0/home  -rw=host1:host2,ro
--------------------------------------------------------------------------
root=host1  host1挂载时,分配文件的权限是 owner,UID 为 0  ,
ro          采用默认的 UID=65534   
rw          同上
anon=UID    挂载的所有主机分配给root用户的 UID

网络组格式:
-rw=子网/子网位数

-rw=netgroup
#exportfs -a    从新加载 /etc/exports的内容
#exportfs -r    把内存清空,再重新加载
#exportfs      列出内存中的输出规则
#exportfs -u  path          取消当前路径输出
#exportfs -i  -o  rw  /vol/vol1       i :忽略当前的内存中规则,只启用本规则   ,-o  option 读写权限  
#exportfs -p                             persistent,可以写到文件中并能生效
#exportfs -z path         内存中取消,并在文件中注释掉
#options nfs.auto-update 默认on ,建议关闭 off
#vol create vol3 aggr1 30m
#exportfs
#rdfile /etc/exports
可以看到内存和文件都有这个规则。
flex volume 在整个系统的数量限制是 500个
qtree :
vol1:是 ntfs(ACL) or unix(rwxrwxrwx) UDI GID 认证时,不同的系统访问会出现问题 windows只能访问 ntfs ,访问不了 unix 的vol
qtree 就是目录树,它有一些属性: 对于一个新建的vol 默认的权限是 777 root:root ,修改的应该在options wafl 中。
#qtree  查看vol的style
#qtree security path [ ntfs | unix ]  把vol的style改为 :ntfs(cifs) or unix(nfs)
#options wafl.default_security_style  value    value:为 unix 或 ntfs
#qtree security /vol/vol2 ntfs     把一个vol的tyle改为 ntfs
也可以做 usermapping,在文件:/etc/usermap.cfg
NTuser => unixuser
NTuser
增加
#cifs passwd admin123    密码加密,用于给用户添加密码
#cifs sessions  可以看到用户是unix用户
-----------------------------------------------------------------------------------------------
the fourth day
-----------------------------------------------------------------------------------------------
Snapshot Copies
----------------------------------------
Snopshot copy  备份用
在存储上有一个 .snapshot 的隐含目录。  snapshot 的对象是vol,建一个vol 都会有预留有snapshot的空间
snapshot copy is a read-only image of a volume
snapshot 备份和恢复几乎是瞬时的
snapshot technology is the foundation for:
snapRestore   snapManage
snapDrive     snapMirror
FlexClone     Snapvault
------------
snapshot and WAFL文件系统
WALF uses 4KB blocks
文件的:inode信息 ,存放在 一个4kB block中
文件大小:
level1:小于64B时
inode      4032Byte   inode信息
            1B            data
            1
            2
            。
            64
level2:小于 64KB时
inode         4032byte     inode信息
pointer         4B  --------  4kB
                4B  --------  4kB
                4B  --------  4kB
                4B  --------  4kB
             16 个4B         .   

level3:小于 64M
level4:小于 64G
可以采用:
#df -i  查看inode使用情况
root> df -i
Filesystem               iused      ifree  %iused  Mounted on
/vol/vol1/                 100        697     13%  /vol/vol1/
/vol/vol0/                7377      12613     37%  /vol/vol0/
/vol/vol2/                 101      34473      0%  /vol/vol2/
/vol/vol3/                 100       1033      9%  /vol/vol3/
#maxfiles 可以增加 inode
snapshot works 工作原理:



对数据块的使用的统计:
最多可以 拍 255个快照+加一个active file的使用情况,每 4KB 要用 32B来记录,使用情况, 0 1 0 1 。。。。。    128:1的使用率
应用命令:
aggrgate default snapshot reserve 5% of aggrgate
vol default snapshot reserve 20% of volume
修改的命令:
#sanp reserve [-A | -V] [volume_name] [percent]
预留空间的意思是:预留20% ,不能存储数据,
拍快照命令:
#snap create [-A |- V ] volumename   snapshotname
快照恢复:
1、从快照中复制数据
2、使用 snaprestore

实验:
新建一个共享 vol
在windows下,进入vol,增加文件
#snap create vol snapname
在windows下修改文件。
在windows下,可以访问\\ IP\vol\vol1\.snapshot
在里面看到快照的文件,可以在这里拷贝出来,进行恢复,这些文件是只读的。
snapshot的策略:
#vol options volume nosnap [on | off]    不允许自动的快照
#vol options volume nosnapdir [on | off]   不允许访问 .snapshot 路径
#options cifs.show_snapshot [on | off]
#snap sched [-A | -V] [ [weeks [days [hours[@]]]]]
默认: 1  2  6@ 8,12,16,20    weekly   nightly   hourly   
星期天夜12:00 快照 1 命名 weekly.0
晚上12点 快照留两份,nightly.0  nightly.1  
每天 8 点 12点 16点 20 点 快照,最多六份,进行覆盖。 hourly.0是最新的快照。
策略中都为 0 的话,就不进行快照。
SAN


FCsan

FC : HBA卡,WWN
iscsi components
:ISCSI HBA 卡,自动封装
:普通网卡,需要软件进行封装成 iscsi 包,进行传送
a host‘s initiator is identify by WWPN
搭建san
license san protocal
在 qtree 和vol中都可以创建 lun
igroup组在storage中,可以在lun中mapping到igroup,让组中的用户可以进行切换。
创建lun命令:
lun create
lun setup   启动创建lun的向导
vol的克隆,与快照的区别:
vol的克隆能够修改,snapshot 不能修改
# lun  create -s 30M -t windows /vol/vol2/lun2
#snap create vol2 clone
#lun clone create /vol/vol2/lun2 -b /vol/vol2/lun3 clone
Quota 配额
/etc/quotas 文件
#quato on

mirror镜像
1、同步mirror
     1、先拍快照,不断地逼近快照异步传输到远端,一直到同步。
     2、同步后,client=====> NVRAM  NVRAM    需要远端的NVRAM 收到该操作,返回到近端 NVRAM ,再到client ,一个同步完成。所以这个要求有很高的网络带宽。
  semi-sync  半同步: NVRAM  NVRAM 之间可以定义一个时间,比如 :15s ,则允许 15s 的传输 ,超过 15s 则失败,进入快照传输的逼近同步。
写操作的过程:
client------>RAM  ---->  NVRAM(NVlog记录操作,并在此时返回用户操作成功),写满则触发 CP,---> 把RAM 内容写 到 WAFL 进行磁盘
2、异步mirror
先拍一个snapshot 再传输到远端,不会影响source,source会增加,可以定义一个多少时间传输一次,时间到再拍一次snapshot,把不同的再传输过去。
---------------------------------------------------------------------------------
the fifth day   
---------------------------------------------------------------------------------
Administratering  Backups
#dump  命令可以备份,volume 或 qtree 到磁带上。
到 now网站上查找支持的磁带机
/etc/tape_config 目录下存放着 磁带机的驱动,也可以把不支持的磁带机的驱动放在这里,那么就可以使用了
#sysconfig -t   查看磁带机,支持的磁带文件
Tape drive (v8.0)  NETAPP  VT-100MB         
    rst0l  -  rewind device,        format is: VT-100MB (100 MB)       磁带文件类型    rst0l  l:代表压缩率     rewind:自动倒带
    nrst0l -  no rewind device,     format is: VT-100MB (100 MB)      
    urst0l -  unload/reload device, format is: VT-100MB (100 MB)      
    rst0m  -  rewind device,        format is: VT-100MB (100 MB)      
    nrst0m -  no rewind device,     format is: VT-100MB (100 MB)      
    urst0m -  unload/reload device, format is: VT-100MB (100 MB)      
    rst0h  -  rewind device,        format is: VT-100MB (100 MB)      
    nrst0h -  no rewind device,     format is: VT-100MB (100 MB)      
    urst0h -  unload/reload device, format is: VT-100MB (100 MB)      
    rst0a  -  rewind device,        format is: VT-100MB (w/compression)
    nrst0a -  no rewind device,     format is: VT-100MB (w/compression)
    urst0a -  unload/reload device, format is: VT-100MB (w/compression)
    Tape drive (v8.1)  NETAPP  VT-100MB         
    rst1l  -  rewind device,        format is: VT-100MB (100 MB)      
    nrst1l -  no rewind device,     format is: VT-100MB (100 MB)      
    urst1l -  unload/reload device, format is: VT-100MB (100 MB)      
    rst1m  -  rewind device,        format is: VT-100MB (100 MB)      
    nrst1m -  no rewind device,     format is: VT-100MB (100 MB)      
    urst1m -  unload/reload device, format is: VT-100MB (100 MB)      
    rst1h  -  rewind device,        format is: VT-100MB (100 MB)      
    nrst1h -  no rewind device,     format is: VT-100MB (100 MB)      
    urst1h -  unload/reload device, format is: VT-100MB (100 MB)      
    rst1a  -  rewind device,        format is: VT-100MB (w/compression)
    nrst1a -  no rewind device,     format is: VT-100MB (w/compression)
    urst1a -  unload/reload device, format is: VT-100MB (w/compression)
#dump [option argument ] path
   0ufb  rst0a   63 /vol/vol0
0:dump level
u: update /ect/dumpdates
f: specifies tape file
b :specifies blocking factor (这是磁带上的block --1k )一次传输的block num
对active file dump时,先对volum做一个 snapshot,再dump到磁盘。
dump的对象: file ,derectory ,qtree 和 volume 和snapshot
估计数据总量,准备好磁盘满足这些容量要求,是否时远程备份
#df -h

#quota report
Administering Restores
从磁带上恢复文件:
restore Data from tape corrupt
permissions limitations: 备份ntfs,恢复时,也需要设置恢复为 ntfs ,如果恢复为unix,则采用 NETAPP 的默认 的 ACL
恢复时,/vol/ root卷和 /etc/tmp,要有一定的空间。 restore 命令只恢复,dump 命令备份的东西。
可以增量备份
#restore rfD rst0a  /vol/vol1
#restore    查看备份信息
对磁带的控制:
#mt -f nrsta rewind

NDMP (Network Data Management Protocol)  for backingup data in heterogeneous environment
把控制和传输分开。
NDMP 应用产品:
Veritas : NetBackup
IBM :Tivol
Network Appliance : Data ONTAP
legato:NetWorker Snaplmage Module
Hewlett-Packard :Omniback
Workstation Solutions:Quick Restore
使用NDMP之前的工作:
#ndmpd [on|off]
#ndmpd password [user_name]   要翻译 user的密码,把这些密码,在DMA端输入,就可以访问
#ndmpd status [session ID]    查看 session的状态
#ndmpd probe [session ID]     查看更详细的seesion信息
#ndmpd kill [session ID]     
#ndmpd version [maxversion]
option设置:
options ndmpd.enable on               ;enable NDMP service
options ndmpd.prefered_interface e0    指定ndmp使用某个端口
#optios 
ndmpd.access                 all        
ndmpd.authtype               challenge  
ndmpd.connectlog.enabled     off        
ndmpd.enable                 off        
ndmpd.ignore_ctime.enabled   off        
ndmpd.offset_map.enable      on         
ndmpd.password_length        16         
ndmpd.preferred_interface    disable   
ndmpd.tcpnodelay.enable      off  
#ndmpcopy    拷贝文件,可以在存储之间相互拷贝,也可以在 DMA 

#sysstat -u 1   ;一秒钟显示一下系统信息
Cache age: Cache是先进先出,数据从进入内存,到离开内存的时间,单位:分钟。 读压力
Cache hit : 命中率
Disk write :系统写压力
ONTAP安装:
1、硬件的安装
连接: 机头  -- in out    shelf---shelfID 拨好,shelf的 ---in out 需要 SFP 模块,LC光纤
      串联 和 并联 (性能会好,多个loop)
2、先开shelf 正常后(一般30s后),再开机头;关机先关机头,再关shelf。
ctl+c : 进入boot num
初始化完毕,进入配置:
new a hostname>
。。。。。
进入:
NetAppl>
注册license ,使用cifs or nfs 共享出,/home 目录。
#software list  会创建/etc/
把解压的文件拷贝进 /etc/software
#software install    安装软件包

#software install http://IP netapp的网站   如果能上网的话。
#download    把新内核/etc/boot 写到 CompactFlash card 和磁盘中。
#reboot
系统升级:
#software install http://
#download
在cluster时,升级不会停止服务。
其中一台机升级
#cf giveback      升级完后,再切换回来 。。。
3、cluster配置:
主要应用在 NFS和CIFS 
主要配置,当失败时的接管服务,两边都要license 和 配置,相互failover 的接管。
# cf enable

-----------------------------------------------------------------------------------------------------------------------------------------
netapp 实践篇:
DS14 系列: 连接图:

启动机器: 注意控制器的ID要
使用串口连接进 控制器
CFE> ?            查看命令
CFE> boot ontap   启动ontap 系统
在发生问题时,进入维护模式 5、maintance mode
(1)  Normal boot.
(2)  Boot without /etc/rc.
(3)  Change password.
(4)  Assign ownership and initialize disks for root
ume.
(4a) Same as option 4, but create a flexible root volume.
(5)  Maintenance mode boot.
Selection (1-5)? 5
        You have selected the maintenance boot option:
        the system has booted in maintenance mode allowing the
        following operations to be performed:
        ?                       fcadmin           
        fcstat                  sasadmin         
        sasstat                 halt              
        help                    raid_config      
        storage                 sesdiag           
        version                 vol               
        aggr                    environment      
        led_on                  led_off           
        sata                    scsi              
        disk                    disk_list         
        fcdiag                  fctest            
        disktest                diskcopy         
        xortest                 outb              
        disk_mung         
        Type "help " for more details.
        In a cluster, you MUST ensure that the partner is (and remains) down,
        or that takeover is manually disabled on the partner node,
        because clustering software is not started or fully enabled
        in Maintenance mode.
1、发生连接故障时,应该查看连接是否正常。

*>?   
*> fcadmin    查看两个光纤连接是否正确 online initiator : 连接到机头的    target: 连接到光纤交换机   //查看连接是否正常

  
*>disk show
*>disk_list
*>disk reassign -s 旧机头ID  -d 新机头ID     在机头的ID 不能对应 磁盘时,会发生ontap 起不来的问题,此时应该重新mapping 磁盘到此机头,再重启。
*>halt 停止启动 ontap 系统

2、在发生不能重新启动 系统时,这是需要重新配置 filer
在维护模式下, 选择 4a、重新配置filer 。

重启后,自动配置。

3、升级ontap 系统
首先应该在 now.netapp网站上下载 要升级的最新的软件。
运行该软件,解压更新包,并通过FTP 上传到 filer 的 /etc/目录下。
执行命令:
>download
download 完成之后,重启filer ,即可自动更新升级。

4、常用的一些命令
> setup  初始化filer的一些 基本设置
>sysconfig   显示系统的一些基本设置
>aggr
>vol
>disk
>cf enable  //起用双机功能
5、修改aggr0 的一些设置
1)改变aggr 的raidtype
2) 改变aggr 的 raidsize
3)aggr add   增加磁盘
4)aggr zero spares  磁盘的零化,在其他aggr 是使用过的磁盘要用时,应该零化。

6、netapp iscsi 的实现
#vol create vol1 aggr0  100m
#vol size

CFE> help
Available commands:
version             Print CFE version.
update_flash        Updates the boot flash with the firmware image on the PC-Card.
netboot             Boots the supplied URL off the network.
boot_diags          Boots the diagnostic image off of the PC-Card.
boot_backup         Boots the backup image of Data OnTap off of the PC-Card.
boot_primary        Boots the primary image of Data OnTap off of the PC-Card.
boot_ontap          Boots the correct image of Data OnTap
bye                 Reset the system.
flash               Update a flash memory device
autoboot            Automatic system bootstrap.
go                  Start a previously loaded program.
boot                Load an executable file into memory and execute it
load                Load an executable file into memory without executing it
set date            Set current date
set time            Set current time
ping                Ping a remote IP host.
arp                 Display or modify the ARP Table
ifconfig            Configure the Ethernet interface
show date           Display current time according to RTC
show time           Display current time according to RTC
show devices        Display information about the installed devices.
unsetenv            Delete an environment variable.
set-defaults        Reset all system environmental variables to default values.
setenv              Set an environment variable.
printenv            Display the environment variables
help                Obtain help for CFE commands
For more information about a command, enter 'help command-name'
CFE> boot_ontap


nfs 权限控制的实现
/etc/netgroup    //grou名  (主机,用户,域)
trusted-hosts (host1,,) (host2,,)
untrusted-hosts (host3,,) (host4,,) (host5,,)
all-hosts trusted-hosts untrusted-hosts
/etc/exports   //NIS for authenticating  // 可以不用配置 /etc/netgroup
/vol/vol0 -access=trusted-hosts,root=host1
/vol/vol0/home -access=untrusted-hosts
阅读(1879) | 评论(4) | 转发(0) |
给主人留下些什么吧!~~

h1pan2010-11-04 07:43:00

Cool

h1pan2010-11-04 07:43:00

Cool

chinaunix网友2010-11-01 17:47:06

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com

chinaunix网友2010-11-01 17:47:06

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com