man vxfenadm
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的更多相关文章
随机推荐
- JavaScript中的this详解
前言 this用法说难不难,有时候函数调用时,往往会搞不清楚this指向谁?那么,关于this的用法,你知道多少呢? 下面我来给大家整理一下关于this的详细分析,希望对大家有所帮助! this指向的 ...
- lr12介绍2
1.HTTP组成 请求1)方法,host ,协议,协议版本 2)请求头:客户端环境 3)请求正文: 响应:1)协议类型,协议版本,状态码 2)服务器环境 3)响应正文 2.cookie是采用客户端保存 ...
- https环境搭建(本地搭建)
1.创建自签名证书 2. 在iis中绑定https 先解析一个域名. 运行网站 示不安全,点击继续浏览即可.在实际的环境中,你拿到的是一个实际的证书,所以不会产生类似的报告安全证书有问题.
- 一位资深Java架构师的晋级心得
架构师是什么? 是一个既需要掌控整体又需要洞悉局部瓶颈并依据具体的业务场景给出解决方案的团队领导型人物.一个架构师得需要足够的想像力,能把各种目标需求进行不同维度的扩展,为目标客户提供更为全面的需求清 ...
- How to find out which version of tensorflow is installed in my pc? - 如何找出我的电脑中安装了哪个版本的 tensorflow?
I'm using tensorflow and have got some weired issues. I'm told it might be related to the version of ...
- Java作业:第二次过程性考核 ——长春职业技术学院 16级网络工程
## 时间有限,脑力不足 ## 只给出代码部分(附带注释) 码云 https://gitee.com/SoridoD/codes 7-5: import java.util.Scanner; clas ...
- ansj分词
本文转载至:https://blog.csdn.net/bitcarmanlee/article/details/53607776 最近的项目需要使用到分词技术.本着不重复造轮子的原则,使用了ansj ...
- Exploit-Exercises nebule 旅行日志(五)
接着上次的路程继续在ubuntu下对漏洞的探索练习,这次是level04了 先看下level04的问题描述: (level4.c) #include <stdlib.h> #include ...
- python中对文件、文件夹,目录的基本操作
一.python中对文件.文件夹操作时经常用到的os模块和shutil模块常用方法.1.得到当前工作目录,即当前Python脚本工作的目录路径: os.getcwd()2.返回指定目录下的所有文件和目 ...
- 使用IdentityServer4,在一个ASPNetCore项目中,配置oidc和api的AccessToken两种认证授权
1.配置两种认证方式 JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Clear(); services.AddAuthentication(op ...