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 运行情况
NetApp 存储的常用概念和命令相关推荐
- 一些常用的SAS命令
一些常用的SAS命令 1. 转换文本数据文件的数据步的一般形式为: data 数据集名:infile 文件名: input 变量输入设定: run: 2. 指定逻辑文件名语句的一般形式为:file ...
- 计算机基础——常用的Dos命令
d:--切换指定硬盘分区 cd--切换目录,例如:cd D:\下载(使用此命令之前先使用 d: 命令) netstat -ano--查看所有端口号 netstat -a--查看开启了哪些端口 nets ...
- K8S-持久化存储及常用存储方案
K8S-持久化存储及常用存储方案 1. 存储知识的回顾 1.1 块存储 传统的文件系统,是直接访问存储数据的硬件介质的.介质不关心也无法去关心这些数据的组织方式以及结构,因此用的是最简单粗暴的组织方式 ...
- Python零基础入门(2)——常用的快捷命令、数据类型、输入输出格式、变量介绍
1.常用快捷名命令 pycharm设置界面(ctrl + alt + s) 快速创建文件(alt + insert) 格式化python代码(ctrl + alt + l) 快速注释代码(ctrl + ...
- 达梦数据库操作记录_达梦数据库常用功能及命令记录 -- 持续更新
达梦数据库常用功能及命令记录 -- 持续更新 达梦数据库常用功能及命令记录 达梦数据库语句的使用总体来说跟 oracle 很接近的, 这篇文章主要是把常用的情况和语句做了记录, 并且后续还会不断的持续 ...
- 【CMake】Android Studio 中使用 CMake 编译单个 C++ 源文件 ( 常用的 CMake 命令解析 )
文章目录 一.Android Studio 中使用 CMake 编译单个 C++ 源文件 二.cmake_minimum_required 命令设置最小 CMake 版本 三.project 命令设置 ...
- 【分享】Oracle 常用运维命令大全
教材下载 ORACLE OCP 19C 官方电子教材 ORACLE OCP 12C官方电子教材 课程介绍 DBA数据库管理必备认证:ORACLE OCP 19C Oracle 常用运维命令大全 一.o ...
- 总结一些常用Android adb 命令
2019独角兽企业重金招聘Python工程师标准>>> 总结一些常用的adb 命令 引言 Android开发中我们有时候需要借助一些命令帮助更好的高效率定位解决问题,本文就来介绍一些 ...
- 常用window cmd命令
常用window cmd命令 services.msc---本地服务设置 notepad--------打开记事本 calc-----------启动计算器 regedit.exe----注册表 ms ...
最新文章
- SAP SD基础知识之免费订单
- CSS :active 伪类
- unity3d模拟树叶飘动_Unity3D独立游戏开发日记(一):动态生成树木
- 面向对象设计启发规则
- Java小白进阶笔记(2)-变量和数据类型
- c语言20152016真题及答案,2016年计算机二级《C语言》基础练习题及答案(15)
- 3D空间中射线与三角形的交叉检测算法
- android elf 加固_APK一键自动化加固脚本
- 编译错误:[Error] initializer-string for array of chars is too long [-fpermissive]
- 宅在家里写数据库中DQL(查询)
- tensorflow 版本列表_最新|谷歌发布TensorFlow 1.3.0版本,都更新了哪些内容?
- 计量笔记(二) | OLS估计量性质
- python 随机生成6位数字+字母的密码
- 微信小程序报错“对应的服务器证书无效”
- RHCE证书考试报名流程
- Linux下提高硬盘读写速度
- html测试工具手机版,SP META Tool(手机测试工具)
- Oracle分区简介
- java实现整理药名
- 鸿蒙不会代替安卓,华为鸿蒙2.0可以替代安卓吗,华为鸿蒙2.0优势在哪