man vxfenadm
Reformatting page. Please Wait... done

VCS 6.0.1 VXFENADM(1M)

NAME
vxfenadm - Manage SCSI-3 disk registrations and reservations
for I/O fencing and display information on I/O fencing
operations.

SYNOPSIS
vxfenadm -s diskpath | -s all -f disk_filename

vxfenadm -G diskpath | -G all -f disk_filename

vxfenadm -R diskpath | -R all -f disk_filename

vxfenadm -a -k|K key -f disk_filename

vxfenadm -m -k|K key -f disk_filename

vxfenadm -n -k|K key -f disk_filename

vxfenadm -x -k|K key -f disk_filename

vxfenadm -p -k|K key -f disk_filename -v victim_node_key

vxfenadm -g diskpath | -g all -f disk_filename

vxfenadm -r diskpath | -r all -f disk_filename

vxfenadm -c -k|K key -f disk_filename

vxfenadm -i diskpath

vxfenadm -t diskpath

vxfenadm -d diskpath

vxfenadm -h

AVAILABILITY
VRTSvxfen

DESCRIPTION
The vxfenadm utility enables the vxfen driver to manage
SCSI-3 registrations and reservations on disks for purposes
of I/O fencing. In the event of a split-brain condition, I/O
fencing allows only a system with a valid registration to
write to a disk. Thus, I/O fencing prevents data corruption
on the disks.

System administrators can use the -a, -m, -n, -x, -p, -s,
and -r flags to validate the accessibility of the disks and
to perform troubleshooting tasks; these options do not
actually implement fencing

SunOS 5.10 Last change: 2012-09-03 1

VCS 6.0.1 VXFENADM(1M)

Note: While using -x and -p options, make sure I/O fencing
is not configured; these options will overwrite valid
keys used by VxVM.

A disk_filename contains the list of all disks and each path
(in the event of multiple paths) in a disk group.

If administrators use the -p, -a, -m, -n, or -x options, the
key is 8-bytes whatever the user supplies. Administrators
can use the utility to display state information,
registration and reservation information, and key
definitions. The vxfenadm utility supports both character
and numeric key formats.

Character Key Format

-k key

key is a character string. If key is less than 8 bytes in
length, then vxfenadm will append it with - (hyphen).

For keys shorter than 8 bytes, use -K KEY where KEY is in
the numeric (ascii value) format.

Numeric Key Format

-K KEY

KEY is in numeric (ascii value) format. For example, the
equivalent numeric format for the key APGR000 is
65,80,71,82,48,48,48,0. Because the key is seven bytes long,
0 is used for the eighth byte.

OPTIONS
-k The key consisting of eight bytes defined for this set
of disks.

-K Same as -k, but in numeric sequence.

-f Option flag preceding the name of the file,
disk_filename, that contains all of the fully qualified
path(s) to each disk; a disk can be accessible by
multiple paths.

-p Removes the registrations and reservations made for
disks in disk_filename made with key used by the victim
node (-v victim_node_key).

-v Key used by the victim node to register/reserve disks.

-a Registers with the disks in disk_filename using
RegisterIgnore operation.

SunOS 5.10 Last change: 2012-09-03 2

VCS 6.0.1 VXFENADM(1M)

-m Registers with the disks in disk_filename.

-n Reserves with the disks in disk_filename.

-x Unregisters with the disks in disk_filename.

-s Reads the keys registered on a disk specified by
diskpath or reads the keys which are registered in all
disks listed in disk_filename. Keys are displayed in
numeric, character and node format.

-g Reads the keys registered on a disk specified by
diskpath or reads the keys which are registered on all
disks listed in disk_filename. Keys are displayed in
numeric and character format.

-G Reads the keys on a disk and if possible prints node ID
based on first byte of the key. Specify a diskpath or a
disk_filename (a listing of paths), and print formatted
results.

-r Reads the reservations on a disk specified by diskpath
or reads the reservations on all disks listed in
disk_filename.

-R Reads the reservations on a disk specified by diskpath
or reads the reservations on all disks listed in
disk_filename, and print the results in numeric format.

-c Clears persistent reservations done by all nodes on
disks mentioned in disk_filename. For this command to
be successful, the node where this command is run must
have its key registered with all disks in
disk_filename.

-i Reads the SCSI inquiry information from the disk listed
in diskpath.

-t Issue SCSI TEST UNIT command and return 0 if
successful.

-d Displays cluster-wide system state.

-h Displays the usage for vxfenadm command.

EXAMPLES
If you enter the following command to register a key AVCS:

# vxfenadm -m -k AVCS -f disk_filename

-k AVCS will convert the key to AVCS---- before the SCSI-3
command is issued to the device. AVCS will register as

SunOS 5.10 Last change: 2012-09-03 3

VCS 6.0.1 VXFENADM(1M)

AVCS---- on the disk. The same holds for other SCSI-3
commands. If you try to unregister a key with character
format that is less than 8 bytes, the unregistration fails.
For example: Read the keys registered on a disk using the
following command:

# vxfenadm -g all -f disk_filename
Device Name: <diskpath>
Total Number Of Keys: 2
key[0]:
Key Value [Numeric Format]: 65,80,71,82,48,48,48,0
Key Value [Character Format]: APGR000

If you unregister the key using the following command, the
unregistration fails:

# vxfenadm -x -k APGR000 -f disk_filename
VCS FEN vxfenadm ERROR V-11-2-1204 Command 0 FAILED for:diskpath
VCS FEN vxfenadm ERROR V-11-2-1120 Unregistration FAILED for:diskpath
VCS FEN vxfenadm ERROR V-11-2-1133 Error returned

In this case, the key registered on the disks is APGR000.
But the vxfenadm command implicitly converted the key to
APGR000-. Hence the unregistration failed. The
unregistration will succeed with the numeric format.

To successfully unregister the key, enter the following
command:

# vxfenadm -x -K 65,80,71,82,48,48,48,0 -f disk_filename
VCS FEN vxfenadm NOTICE Deleted the key:[APGR000] from device diskpath

To clear all reservations on a disk, enter the following
command at a node having reservation on the disk:

# vxfenadm -c -k VF000001 -f disk_filename
DMP Clear completed for disk path: disk_path

SEE ALSO
vxfenconfig(1M), vxfentsthdw(1M), vxfendebug(1M),
vxfenmode(4M), vxfenclearpre(1M)

COPYRIGHTS
Copyright (c) 2012 Symantec.

All rights reserved.

SunOS 5.10 Last change: 2012-09-03

man vxfenadm的更多相关文章

随机推荐

  1. 学号 20175212童皓桢 《Java程序设计》第8周学习总结

    学号 20175212童皓桢 <Java程序设计>第8周学习总结 教材学习内容总结 泛型 class People<E> 其中People是泛型类的名称,E是其中的泛型,也就是 ...

  2. Django中 media资源配置

    # 用户上传的文件可以在外网通过接口直接访问 配置媒体跟路由: settings.py 用来存放用户上传的静态文件,可以对外公开的文件!!! MEDIA_ROOT = os.path.join(BAS ...

  3. 【tomcat环境搭建】Linux和Windows下tomcat开机自启动设置

    目前很多项目都部署在tomcat上,频繁操作中,每次启动或关闭tomcat都稍显麻烦,那如何设置tomcat的开机自启动? Linux下tomcat的开机自启动设置 网上主要有两种方式,一种是shel ...

  4. 总结AWS使用要点

    最近做毕业设计,要用AWS跑代码,以前只用过一次,这次踩了很多坑,记录一下.. AWS命令行管理S3 bucket AWS官方文档: http://docs.amazonaws.cn/cli/late ...

  5. 五、docker网络技术

    五 docker网络技术 1.本章环境: 源码文件目录: 2.网络基础回顾 通道: NAT将私有地址和端口号翻译成公有的地址和端口号项某网站发出数据包.某网站根据数据表查出私有ip和端口号返回数据. ...

  6. Git 工具 - 储藏(Stashing)

    储藏(Stashing) 经常有这样的事情发生,当你正在进行项目中某一部分的工作,里面的东西处于一个比较杂乱的状态,而你想转到其他分支上进行一些工作.问题是,你不想提交进行了一半的工作,否则以后你无法 ...

  7. content-type的几种取值

    四种常见的 POST 提交数据方式 我们知道,HTTP 协议是以 ASCII 码传输,建立在 TCP/IP 协议之上的应用层规范.规范把 HTTP 请求分为三个部分:状态行.请求头.消息主体.类似于下 ...

  8. String.split()方法

    如果用“(”作为分隔的话,必须是如下写法,String.split("\\("),这样才能正确的分隔开,不能用String.split("("); 如果用“)” ...

  9. jmeter如何链接数据库并拿到相应值用到请求中

    很久以前学习了jmeter如何使用数据库连接并请求相应值.jmeter如何上传文件 结果现在忘记了很多...,现在重头学习一遍,所以说 还是边学边记录,那天忘记了 ,自己看看笔记 分步骤来写 1.数据 ...

  10. Java虚拟机学习-对象的创建

    虚拟机遇到一条new指令时,首先将去检查这个指令的参数是否能在常量池中定位到一个类的符号引用,并且检查这个符号引用代表的类是否已经被加载.解析和初始化过.如果没有,必须先执行相应类的加载过程. 类加载 ...