zoukankan      html  css  js  c++  java
  • NetApp 存储的常用概念和命令

                                                             NetApp 存储的常用概念和命令

    1. Volume 和qtree

    卷(volume)是filer 上的一个基本空间单位,它可以是基于aggr划出的灵活卷(flexvol),也可以是直接由物理盘组成的传统卷(traditional volume)。存放系统数据的称为
    根卷(root volume). 其他存放数据的卷称为普通卷. 一个filer 有且只有一个根卷.
    查看卷的状态:
    Filer> vol status (-r)
    查看卷的使用情况:
    Filer> df
    查看卷的inode 使用情况:
    Filer> df –i


    Qtree 是一种特殊的卷顶级子目录. 对qtree
    1) 你可以设置quotas(限额). 这样一来qtree 就相当于软分区(soft partitions)
    2) 你也可以对qtree 设置security style 和oplocks
    3) 对qtree 做备份.(比对整个卷要快和容易).

    2. NFS exports
    NFS 提供UNIX 环境里的文件共享。
    NFS 可以通过两种方式进行管理: 命令行和Filerview
    A. 命令行
    用户通过管理/etc/exportfs 文件和exportfs 命令来管理NFS export
    F840> rdfile /etc/exports
    /vol/vol0 -rw,root=10.64.60.65,anon=0,nosuid
    /vol/vol0/home -rw,root=10.64.60.65
    /vol/vol1/data1
    -rw=10.64.60.111:10.64.60.65,root=10.64.60.111:10.64.60.65,sec=sys
    exportfs 命令
    F840> exportfs -help
    exportfs -a (all) List of paths comes from /etc/exports
    exportfs -c (check/cache) Check the access cache for permissions
    exportfs -d (revert) Revert the /etc/exports file to an older format
    exportfs -f (flush) Flush access cache entries
    exportfs -i (ignore) Ignore options for a path specified in /etc/exports
    exportfs -o (options) Option list to apply to the export
    exportfs -r (reload) Reload all entries in /etc/exports and unload all entries
    not found in /etc/exports
    exportfs -s (storage) Determine the storage path used for an export using -actual
    exportfs -u (unexport) Remove from memory the export
    exportfs -v (verbose) Be chatty about operations
    exportfs -k (signal) Send a signal to mountd to start an action
    B. Filerview
    Filerview->NFS->Manager NFS Exports
    你可以增加一个export 和管理/删除某个export, 修改完毕后需要export all.
    3. CIFS Shares
    CIFS shares 用于提供windows client的文件共享,可以被下面几种方式管理:命令行;windows NT 或windows 2000 管理器;Filerview
    A. 命令行
    创建一个共享:
    cifs shares –add sharename path [ -comment description] [ -forcegroup groupname ] [ - maxusers n]
    example:
    filer> cifs shares –add library /vol/vol0/home/lib ‘New file library’
    设置访问权限:
    filer> cifs access library ‘Everyone’ Full Control
    The share named library is now shared out to ‘Everyone” with Full Control
    管理一个共享:
    example:
    filer>cifs shares –change sharename [ -comment description / -nocomment]
    [ -forcegroup groupname | -noforcegroup ] [ -maxusers n | -nomaxusers]
    删除一个共享:
    cifs shares –delete sharename
    Example:filer>cifs shares –delete library
    查看一个共享:
    filer> cifs shares
    B. 用windows NT 或windows 2000 管理
    找一台在域中的client,并以domain administrator帐户来登陆. 通过计算机管理中的连接其他机器连入filer.,就可以象管理其他windows file server一样来管理filer了,包括增减cifs共享,改变access grant 等.
    4. Snapshot 管理
    Snapshot是netapp的快照技术,它有占用空间少,不影响性能,生成简便,恢复数据灵活快捷等突出优点。
    snapshot 常用命令:
    COMMAND MEANING
    snap list volume_name Lists all available snapshots
    snap create volume_name snapshot_name Creates a snapshot with a specified name
    snap delete volume_name snapshot_name Deletes a specified snapshot
    snap rename volume_name from to Renames a snapshot
    snap reserve n Reserves a percentage of the disk space
    snap sched volume_name Schedules automatic snapshot
    snapshot options
    可以让NFS 和CIFS 用户看见snapshot 目录。
    让.snapshot 目录不可见 -vol options nosnapdir [on|off]
    让~snapshot 目录对CIFS 用户可见 -options cifs.show_snapshot [on|off]
    定期snapshots (schedule snapshots)
    schedule snapshot 可以用filerview 来设置。可以制定累计20 个snapshots。
    5. NetApp Cluster Failover
    Cluster即filer的双机双活配置,当一台机器发生故障,另一台可完全接管坏机的工作。
    检查cluster 状态:cf status
    Enable/Disable Cluster:cf enable
    cf disable
    强制接管:cf takeover
    在接管模式下切换到partner 管理界面:partner
    在接管模式下,将服务返回给原节点:cf giveback

    6.NetApp Filer 常用命令
    Filer> version 查看OS 版本
    Filer> sysconfig –v 查看filer 基本配置
    Filer> help 查看所有命令
    Filer> ifconfig –a 查看网口状态
    Filer> sysstat 查看filer 运行情况

    蓦然回首,那人却在,灯火阑珊处。
  • 相关阅读:
    【Mongodb教程 第九课 】MongoDB 删除文档
    【Mongodb教程 第八课 】MongoDB 更新文档
    【Mongodb教程 第七课 】MongoDB 查询文档
    【Mongodb教程 第六课 】MongoDB 插入文档
    【Mongodb教程 第五课 】MongoDB 删除集合
    【Mongodb教程 第四课 】MongoDB 创建集合
    【Mongodb教程 第三课 】MongoDB 删除数据库
    【Mongodb教程 第二课 】 MongoDB 创建数据库 use 命令
    题解 P2821 【变幻数】
    题解 P6249 【神帖】
  • 原文地址:https://www.cnblogs.com/linux-186/p/13594432.html
Copyright © 2011-2022 走看看