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的更多相关文章
随机推荐
- EF Core 生成数据库
1.运行cmd,切换到打开项目所在文件夹,输入下面的命令 dotnet ef migrations add Initial 建立并初始化数据库 dotnet ef database update ...
- Python3+Selenium获取session和token供Requests使用教程
一.背景说明 之前写了一款简单的api模糊测试工具,之前系统可以使用http Base认证现在改成session形式并加上了token. 最简单的改造方法,是自己先在浏览器手动登录,然后提取出sess ...
- Linux系统下进入目录文件需要什么权限?
在Linux下进入目录需要什么权限? 1--让我们先来了解一下Linux下一个文件有哪些权限?(在linux下一切皆文件) 一个文件可以具有的权限有:可读.可写.可执行权限 r 可读权限---read ...
- shell脚本学习之for循环
1.数字循环 [root@zabbix ~]# for i in {1..10};do echo $(expr $i \* 3);done;36912151821242730 [root@zabbix ...
- 初遇sass的两个小问题
关于sass大家都知道是一种css的开发工具,原本的css没有变量 参数一类的东西,所以比较死 效率较慢. sass就是在css里面加入了一些编程的元素如变量等,让css能够更灵活,提高效率. 刚接触 ...
- numpy通用函数
numpy的通用函数可以对数组进行向量化操作,可以提高数组元素的重复计算的效率. 一.numpy的算数运算符都是对python内置符的封装 算数运算符 >>> import nump ...
- 类型限定词——const
类型限定词有三个:const volatile restrict. const:一般也叫常量修饰符. 作用:是修饰变量,被修饰的变量就变成常量了,不能被二次修改了. const int a=12:a ...
- 简要log4j配置
若排版紊乱可查看我的个人博客原文地址 1. 配置效果 下面的log4j日志配置最终能达到的效果是对于全局日志可以根据级别输入到对应级别的日志文件中,注意低级别的日志文件会同时包含高级别的日志信息,例如 ...
- linux 免密码登陆
1.Linux下生成密钥 ssh-keygen的命令手册,通过”man ssh-keygen“命令: 通过命令”ssh-keygen -t rsa“ 生成之后会在用户的根目录生成一个 “.ssh”的文 ...
- 机器学习之朴素贝叶斯&贝叶斯网络
贝叶斯决决策论 在所有相关概率都理想的情况下,贝叶斯决策论考虑基于这些概率和误判损失来选择最优标记,基本思想如下: (1)已知先验概率和类条件概率密度(似然) (2)利用贝叶斯转化为后验概 ...