Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1908721
  • 博文数量: 346
  • 博客积分: 10221
  • 博客等级: 上将
  • 技术积分: 4079
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-01 19:43
文章分类

全部博文(346)

文章存档

2012年(1)

2011年(102)

2010年(116)

2009年(127)

我的朋友

分类: 服务器与存储

2009-12-08 10:11:07

NetApp 存储的常用概念和命令

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 做备份.(比对整个卷要快和容易).

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.

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 .

Snapshot 管理

Snapshotnetapp的快照技术,它有占用空间少,不影响性能,生成简便,恢复数据灵活快捷等突出优点。

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

NetApp Cluster Failover

Clusterfiler的双机双活配置,当一台机器发生故障,另一台可完全接管坏机的工作。

检查cluster 状态:cf status

Enable/Disable Clustercf enable

cf disable

强制接管:cf takeover

在接管模式下切换到partner 管理界面:partner

在接管模式下,将服务返回给原节点:cf giveback

6NetApp Filer 常用命令

Filer> version 查看OS 版本

Filer> sysconfig v 查看filer 基本配置

Filer> help 查看所有命令

Filer> ifconfig a 查看网口状态

Filer> sysstat 查看filer 运行情况

阅读(1368) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~