Purpose
verparvsd - Verifies IBM Virtual Shared Disk system partitioning.
Syntax
verparvsd [-F] [-o output_file] layout_directory [new_partition ...]
Flags
Operands
Description
Use this command to verify that the system partition proposed in the layout_directory will work for all the existing IBM Virtual Shared Disk data. The spapply_config command invokes this command to partition the IBM Virtual Shared Disk data during a system partition operation. The verparvsd command extracts all IBM Virtual Shared Disk data from nodes involved in the system partitioning and writes SDR commands to the output file that will reload the IBM Virtual Shared Disk SDR data into the correct new system partitions. This file is executed during the system partitioning process to partition the IBM Virtual Shared Disk data.
|The verparvsd command is not valid on a system with an SP |Switch2 switch or on a switchless clustered enterprise server |system.
The spapply_config command invokes this command and its output to effect IBM Virtual Shared Disk system partitioning. You can also invoke the command prior to invoking the spapply_config command to see how well suited the desired layout is for the existing IBM Virtual Shared Disk configuration as defined in the SDR.
This command only checks and processes the new system partitions listed on the command line. If some existing system partitions are to be unchanged in the system partitioning operation, do not list those system partition names on the command line. If no new system partitions are listed, the default is to process all system partitions in the layout directory.
This command checks to see if the IBM Virtual Shared Disk data can be partitioned as specified by the layout directory without any problems. The command reports any problems it identifies, as well as reports how it would fix the problem.
The verparvsd command places global volume groups (GVGs) in the system partition containing their primary server node. Virtual shared disks are placed in the system partition of their GVG. HSDs are placed in the system partition containing their first virtual shared disk.
The verparvsd command looks for the following types of errors in each new system partition:
As a corollary, if an HSD with .BAD at the end of its name is found in the new system partition to have all its virtual shared disks in the system partition, the .BAD will be removed from its name.
Files
Exit Values
The verparvsd command looks for error types (described previously) in each new system partition and corrects them as specified:
In either case, verparvsd processes all the IBM Virtual Shared Disk data, and generates a complete list of errors on standard error, and a complete SDR command list to the output file.
Security
You must have write access to the SDR to run this command.
Prerequisite Information
PSSP: Managing Shared Disks
Related Information
Commands: defhsd, defvsd, spapply_config, spdisplay_config, vsdnode, vsdvg
Examples
To see how well suited the configuration specified in the config.4_4_8/layout.6 layout directory is to your IBM Virtual Shared Disk configuration, enter:
verparvsd config.4_4_8/layout.6
Purpose
vhostname - Sets or displays the virtual host name of the local host.
Syntax
vhostname [-s] [ host_name]
Flags
Operands
Description
Use this command to display or set the virtual host name of the local host. Only users with root authority can set the virtual host name. The host_name is stored in the /etc/vhostname file.
If displaying the virtual host name and the virtual host name has not been set and the /etc/vhostname file does not exist, vhostname will return the real host name from the kernel variable.
When setting the virtual host name, if the /etc/vhostname file does not exist, it will be created. If it does exist, the file contents will be overwritten by the new virtual host name.
To clear the virtual host name so that the virtual host name no longer exists, remove the /etc/vhostname file.
The virtual host name is used in fail over situations when an application has associated the host name in the kernel of a particular machine to the service it is providing. When the application is restarted on the fail over node that has a different host name, the application may not work or work incorrectly. If the application needs to associate a host name with a particular service and it cannot handle having multiple host names, a virtual host name can be provided. The application can call vhostname instead of hostname and get the host name of the node it normally runs on. This eliminates the need to change the real host name in the kernel on the fail over node. It should be noted that changing the real host name in the kernel can cause problems with other applications that rely on the real host name in the kernel to identify the physical machine.
Files
Exit Values
Security
You must have root authority to use the host_name operand.
Related Information
Subroutines: getvhostname, setvhostname
AIX commands: hostname
AIX subroutines: gethostname, sethostname
Examples
vhostname
vhostname spcw_prim
vhostname -s
A vhostname of donald prints out.
rm /etc/vhostname
Purpose
vsdatalst - Displays IBM Virtual Shared Disk subsystem definition data from the System Data Repository (SDR).
Syntax
vsdatalst [-G] {-g | -n | -v} [-c]
Flags
Only one of the following flags can be specified with each invocation of vsdatalst:
Operands
None.
Description
Use this command to display one of several kinds of information to standard output.
You can use the System Management Interface Tool (SMIT) to run the vsdatalst command. To use SMIT, enter:
smit list_vsd
and select the option for the kind of IBM Virtual Shared Disk SDR information you want to see.
Security
You must be in the AIX bin group to run this command.
Prerequisite Information
PSSP: Managing Shared Disks
Related Information
Commands: lsvsd, updatevsdnode, vsdnode
Examples
vsdatalst -g
The system displays a message similar to the following:
VSD Global Volume Group Information Global Volume Local Server Node Numbers: eio_ Group name VG name primary backup recovery Recovery ---------------- -------- ----------- -------- -------- -------- hunter-rileysvg rileysvg 1 0 0 0 ppstest1-rootvg rootvg 3 0 0 0 tattooine-rootvg rootvg 2 0 0 0
vsdatalst -n
The system displays a message similar to the following:
VSD Node Information Initial Maximum VSD rw Buddy Buffer: node VSD cache cache req. req. min. max. size: # # host_name adapt. buffers buffers count count size size maxbufs ---- --------- ------ ------- ------- ----- ----- ---- ---------------- 1 hunter tr0 64 256 256 48 4096 65536 4 2 tattooine tr0 64 256 256 48 4096 65536 4 3 ppstest1 tr0 64 256 256 48 4096 65536 4
vsdatalst -v
The system displays a message similar to the following:
VSD Table VSD name logical volume Global Volume Group minor# option ----------------- --------------- ----------------------- ------ ------ vsd.rlv01 rlv01 hunter-rileysvg 2 cache vsd.rlv02 rlv02 hunter-rileysvg 3 cache vsd.vsd1 vsd1 tattooine-rootvg 1 nocache vsd.vsdp1 vsd1 ppstest1-rootvg 4 nocache
Purpose
vsdchgserver - Switches the server function for one or more virtual shared disks from the node that is currently acting as the server node to the other.
Syntax
Flags
Operands
None.
Description
The vsdchgserver command allows the serving function for a global volume group defined on a primary node to be taken over by the secondary node, or to be taken over by the primary node from the secondary node. This allows an application to continue to use virtual shared disks in situations where the cable or adapter between the physical disks and one of the attached nodes is not working.
The Recoverable Virtual Shared Disk subsystem automatically updates the virtual shared disk devices if, and only if, the vsdchgserver command is used to flip the currently-defined primary node and secondary node in the global volume group specified in the -g flag.
Security
You must be in the AIX bin group and have write access to the SDR to run this command.
Prerequisite Information
PSSP: Managing Shared Disks
Related Information
Refer to PSSP: Managing Shared Disks for information on how to use this command in writing applications.
Location
/usr/lpp/csd/bin/vsdchgserver
Examples
To change the primary server node for the global volume group node12vg to node 1 and the secondary node to node 2, with EIO recovery, enter:
vsdchgserver -g node12vg -p 1 -b 2 -o 1
Purpose
vsddiag - Displays information about the status of virtual shared disks.
Syntax
vsddiag
Flags
None.
Operands
None.
Description
This command displays information about virtual shared disks that can help you determine their status and collect information that helps IBM service representatives diagnose system problems.
Security
You must have access to the virtual shared disk subsystem via the sysctl service to run this command.
Prerequisite Information
PSSP: Managing Shared Disks
Location
/usr/lpp/csd/bin/vsddiag
Related Information
Commands: vsdatalst, vsdsklst
Examples
To display information about the virtual shared disks in your system or system partition, enter:
vsddiag
If all virtual shared disks are created and configured correctly, the output is:
Checking server vsds Checking VSD request sequence number. Checking device drivers. end of vsdl1diag:checkvsdl1 program.
If there are no virtual shared disks defined, the output is:
k5n02.ppd.pok.ibm.com VSD_ERROR:3:No IBM Virtual Shared Disks are configured on this node. k5n01.ppd.pok.ibm.com VSD_ERROR:3:No IBM Virtual Shared Disks are configured on this node. Checking server vsds Checking VSD request sequence number. Checking device drivers. end of vsdl1diag:checkvsdl1 program.
If there is something wrong with the virtual shared disks, the output is:
k5n02.ppd.pok.ibm.com VSD_ERROR:3:No IBM Virtual Shared Disks are configured on this node. k5n01.ppd.pok.ibm.com VSD_ERROR:3:No IBM Virtual Shared Disks are configured on this node. Checking server vsds Checking VSD request sequence number. Checking device drivers. vsdl1diag:checkvsdl1: 0034-619 Device driver on node 14 is not at the same level as others on this SP system or system partition. vsdl1diag:checkvsdl1: 0034-620 VSD Maximum IP Message Size on node 14 is not at the same level as others on this SP system or system partition.
Purpose
vsdelnode - Removes IBM Virtual Shared Disk information for a node or series of nodes from the System Data Repository (SDR).
Syntax
vsdelnode node_number ...
Flags
None.
Operands
Description
This command is used to remove IBM Virtual Shared Disk data for a node or series of nodes from the SDR.
The vsdelnode command makes the listed nodes no longer virtual shared disk nodes so that no virtual shared disks can be accessed from them. This command is unsuccessful for any nodes that are servers for any global volume groups.
You can use the System Management Interface Tool (SMIT) to run the vsdelnode command. To use SMIT, enter:
smit delete_vsd
and select the Delete Virtual Shared Disk Node Information option.
Security
You must be in the AIX bin group and have write access to the SDR to run this command.
Restrictions
If you have the Recoverable Virtual Shared Disk software installed and operational, do not use this command. The results may be unpredictable.
See PSSP: Managing Shared Disks.
Prerequisite Information
PSSP: Managing Shared Disks
Related Information
Commands: vsdatalst, vsdnode
Examples
To delete virtual shared disk node information for nodes 3 and 6, enter:
vsdelnode 3 6
Purpose
vsdelvg - Removes virtual shared disk global volume group information from the System Data Repository (SDR).
Syntax
vsdelvg [-f] global_group_name ...
Flags
Operands
Description
Use this command to remove virtual shared disk global volume group information from the SDR. If any virtual shared disks are defined on a global volume group, the vsdelvg command is unsuccessful unless -f is specified. If -f is specified, any such virtual shared disks must be unconfigured and in the defined state on all the virtual shared disk nodes to be deleted.
You can use the System Management Interface Tool (SMIT) to run the vsdelvg command. To use SMIT, enter:
smit delete_vsd
and select the Delete Virtual Shared Disk Global Volume Group Information option.
Security
You must be in the AIX bin group and have write access to the SDR to run this command.
Prerequisite Information
PSSP: Managing Shared Disks
Location
/usr/lpp/csd/bin/vsdelvg
Related Information
Commands: undefvsd, vsdatalst, vsdvg
Examples
To delete the virtual shared disk information associated with global volume group vg1n1 from the SDR, enter:
vsdelvg vg1n1
Purpose
vsdnode - Enters IBM Virtual Shared Disk information for a node or series of nodes into the System Data Repository (SDR).
Syntax
Flags
None.
Operands
Buddy buffers are only used on the servers. On client nodes you may want to set max_buddy_buffers to 1.
Description
Use this command to make the specified nodes virtual shared disk nodes and to assign their IBM Virtual Shared Disk operational parameters. The operational parameters are: adapter name, initial cache buffer count, maximum cache buffer count, read/write request count, virtual shared disk request count, and buddy buffer parameters. If this information is the same for all nodes, run this command once. If the information is different for the nodes, run this command once for each block of nodes that should have the same virtual shared disk information.
You can use the System Management Interface Tool (SMIT) to run the vsdnode command. To use SMIT, enter:
smit vsd_data
and select the IBM Virtual Shared Disk Node Information option.
Security
You must be in the AIX bin group and have write access to the SDR to run this command.
Prerequisite Information
PSSP: Managing Shared Disks
Location
/usr/lpp/csd/bin/vsdnode
Related Information
Commands: updatevsdnode, vsdatalst, vsdelnode
Refer to PSSP: Managing Shared Disks for defining virtual shared disk information in the SDR.
Examples
The following example adds SDR information for a css0 network and nodes 1 through 8.
vsdnode 1 2 3 4 5 6 7 8 css0 64 256 256 48 4096 262144 32 61440
Purpose
vsdsklst - Produces output that shows you the disk resources used by the IBM Virtual Shared Disk subsystem across a system or system partition.
Syntax
vsdsklst [-v] [-d] {-a | -n node_number[, node_number2, ...]} [ -G]
Flags
Operands
None.
Description
Use this command to check disk utilization across a system or system partition.
Security
You must have access to the virtual shared disk subsystem via the sysctl service to run this command.
Prerequisite Information
PSSP: Managing Shared Disks
Location
/usr/lpp/csd/bin/vsdisklist
Related Information
Commands: vsdatalst
Examples
This command:
vsdsklst -dv -a
displays the following information on a system that has volume groups and virtual shared disks defined on nodes 1, 3, 5, 7, 10, and 12. Node 5 is temporarily inactive.
k7n12.ppd.pok.ibm.com Node Number:12; Node Name:k7n12.ppd.pok.ibm.com Volume group:rootvg; Partition Size:4; Total:537; Free:315 Physical Disk:hdisk0; Total:537; Free:315 Volume group:vsdvg; Partition Size:4; Total:537; Free:533 Physical Disk:hdisk1; Total:537; Free:533 VSD Name:1HsD8n12{lv1HsD8n12}; Size:2 VSD Name:1HsD20n12{lv1HsD20n12}; Size:2
k7n01.ppd.pok.ibm.com Node Number:1; Node Name:k7n01.ppd.pok.ibm.com Volume group:rootvg; Partition Size:4; Total:537; Free:210 Physical Disk:hdisk0; Total:537; Free:210 Volume group:vsdvg; Partition Size:4; Total:537; Free:533 Physical Disk:hdisk1; Total:537; Free:533 VSD Name:1HsD1n1{lv1HsD1n1}; Size:2 VSD Name:1HsD13n1{lv1HsD13n1}; Size:2
k7n05.ppd.pok.ibm.com No response
k7n10.ppd.pok.ibm.com Node Number:10; Node Name:k7n10.ppd.pok.ibm.com Volume group:rootvg; Partition Size:4; Total:537; Free:303 Physical Disk:hdisk0; Total:537; Free:303 VSD Name:vsdn10v1{lvn10v1}; Size:4 VSD Name:vsdn10v2{lvn10v2}; Size:4 VSD Name:vsdn10v3{lvn10v3}; Size:4 Volume group:vsdvg; Partition Size:4; Total:537; Free:533 Physical Disk:hdisk1; Total:537; Free:533 VSD Name:1HsD6n10{lv1HsD6n10}; Size:2 VSD Name:1HsD18n10{lv1HsD18n10}; Size:2
k7n03.ppd.pok.ibm.com Node Number:3; Node Name:k7n03.ppd.pok.ibm.com Volume group:rootvg; Partition Size:4; Total:537; Free:269 Physical Disk:hdisk0; Total:537; Free:269 VSD Name:vsdn03v1{lvn03v1}; Size:4 VSD Name:vsdn03v2{lvn03v2}; Size:4 VSD Name:vsdn03v3{lvn03v3}; Size:4 Volume group:vsdvg; Partition Size:4; Total:537; Free:533 Physical Disk:hdisk1; Total:537; Free:533 VSD Name:1HsD2n3{lv1HsD2n3}; Size:2 VSD Name:1HsD14n3{lv1HsD14n3}; Size:2
k7n07.ppd.pok.ibm.com Node Number:7; Node Name:k7n07.ppd.pok.ibm.com Volume group:rootvg; Partition Size:4; Total:537; Free:300 Physical Disk:hdisk0; Total:537; Free:300 VSD Name:vsdn07v1{lvn07v1}; Size:4 VSD Name:vsdn07v2{lvn07v2}; Size:4 VSD Name:vsdn07v3{lvn07v3}; Size:4 Volume group:vsdvg; Partition Size:4; Total:537; Free:533 Physical Disk:hdisk1; Total:537; Free:533 VSD Name:1HsD4n7{lv1HsD4n7}; Size:2 VSD Name:1HsD16n7{lv1HsD16n7}; Size:2
To view the output for a specific node, type:
vsdsklst -n 12
The output is:
k7n07.ppd.pok.ibm.com Node Number:7; Node Name:k7n07.ppd.pok.ibm.com Volume group:rootvg; Partition Size:4; Total:537; Free:300 Physical Disk:hdisk0; Total:537; Free:300 VSD Name:vsdn07v1{lvn07v1}; Size:4 VSD Name:vsdn07v2{lvn07v2}; Size:4 VSD Name:vsdn07v3{lvn07v3}; Size:4 Volume group:vsdvg; Partition Size:4; Total:537; Free:533 Physical Disk:hdisk1; Total:537; Free:533 VSD Name:1HsD4n7{lv1HsD4n7}; Size:2 VSD Name:1HsD16n7{lv1HsD16n7}; Size:2
If both the rootvg and testvg volume groups are varied on, the system displays output similar to the following:
Node Number:12; Node Name:k21n12.ppd.pok.ibm.com Volume group:rootvg; Partition Size:4; Total:537; Free:47 Physical Disk:hdisk0; Total:537; Free:47 VSD Name:1HsD1n12[lv1HsD1n12]; Size:5 VSD Name:1HsD2n12[lv1HsD2n12]; Size:5 VSD Name:vsd4n12[lvvsd4n12]; Size:4 VSD Name:vsd5n12[lvvsd5n12]; Size:4 VSD Name:vsd6n12[lvvsd6n12]; Size:4 Volume group:testvg; Partition Size:4; Total:537; Free:313 Physical Disk:hdisk1; Total:537; Free:313 VSD Name:vsd14n12[lvvsd14n12]; Size:4
If the testvg volume group is not varied on, the system displays output similar to the following:
Node Number:12; Node Name:k21n12.ppd.pok.ibm.com Volume group:rootvg; Partition Size:4; Total:537; Free:47 Physical Disk:hdisk0; Total:537; Free:47 VSD Name:1HsD1n12[lv1HsD1n12]; Size:5 VSD Name:1HsD2n12[lv1HsD2n12]; Size:5 VSD Name:vsd4n12[lvvsd4n12]; Size:4 VSD Name:vsd5n12[lvvsd5n12]; Size:4 VSD Name:vsd6n12[lvvsd6n12]; Size:4 Volume group:testvg is not varied on. Physical Disk:hdisk1;
Instead of issuing this command directly, you should use the appropriate SMIT panels to view it in the best format. To view information about volume groups,type:
smit lsvg
To view information about logical volumes, type:
smit lslv
To view information about physical volumes, type:
smit lspv
Purpose
vsdvg - Defines a virtual shared disk global volume group.
Syntax
Flags
Operands
This can be specified in four different ways:
Description
Use this command to define volume groups for use by the IBM Virtual Shared Disk subsystem. This is done by specifying the local volume group name, the node on which it resides, and the name by which the volume group will be known throughout the cluster.
If eio_recovery is set (to a value of 1) due to disk error (EIO error), the IBM Recoverable Virtual Shared Disk system will perform a full recovery by flipping the current primary node and the secondary node and doing one more retry on the new primary node.
You can use the System Management Interface Tool (SMIT) to run the vsdvg command. To use SMIT, enter:
smit vsd_data
and select the Virtual Shared Disk Global Volume Group Information option.
Security
You must be in the AIX bin group and have write access to the SDR to run this command.
Restrictions
The secondary_server_node operand is used only by the Recoverable Shared Disk subsystem.
Prerequisite Information
PSSP: Managing Shared Disks
Location
/usr/lpp/csd/bin/vsdvg
Related Information
Commands: vsdelvg
Examples
vsdvg vg2n17 17
vsdvg vg1p3s15 3 15
Purpose
vsdvgts - Reads the timestamp from the volume group descriptor area (VGDA) of the physical disks and sets the value in the System Data Repository (SDR).
Syntax
vsdvgts [-a] [ volgrp]
Flags
Operands
Description
Use this command to update the timestamp that the Recoverable Virtual Shared Disk subsystem uses to determine if a twin-tailed volume group has changed. When the subsystem detects a change, the recovery scripts export the volume group and then import the volume group.
This command can be used to avoid exporting the volume group and then importing the volume group during recovery in situations where the export and import operations are not really necessary. This command should be used very carefully.
Exit Values
Security
You must be in the AIX bin group and have write access to the SDR to run this command.
Implementation Specifics
This command is part of the Recoverable Virtual Shared Disk optional component of PSSP.
Prerequisite Information
See PSSP: Managing Shared Disks.
Location
/usr/lpp/csd/bin/vsdvgts
Examples
To update the timestamp associated with the virtual shared disk volume group vsdvg1 for just this node, enter:
vsdvgts vsdvg1
Purpose
vsdvts - Verifies that the IBM Virtual Shared Disk component works.
Syntax
vsdvts [-b block_size] [-n number_of_blocks] vsd_name [file]
Flags
Operands
Description
Attention |
---|
Data on vsd_name and its underlying logical volume is overwritten and, therefore, destroyed. Use this command after you have defined a virtual shared disk (including its underlying logical volume), but before placing application data on it. |
Use this command to verify that the vsd_name is in the active state and then to write the specified part of file to the raw vsd_name device, /dev/rvsd_name. This command reads the data back from the virtual shared disk, then compares it to file. If the data is the same, the test is successful and vsdvts succeeds. Otherwise, vsdvts is unsuccessful. The dd command is used for all I/O operations.
Try vsdvts on both a server and client node (for example, on both the node with a logical volume and one without it).
Security
You must be in the AIX bin group and have write access to the SDR to run this command.
Prerequisite Information
PSSP: Managing Shared Disks
Related Information
Commands: vsdnode, vsdvg, defvsd, cfgvsd, startvsd, dd
The preceding commands are listed in their order of use.
Examples
To verify that the IBM Virtual Shared Disk component works, choose a newly created vsd that has no application data on it, say vsd1, and enter:
vsdvts vsd1
Purpose
wrap_test - Checks the function of a link.
Attention |
---|
ATTENTION - READ THIS FIRST: Do not activate the switch advanced diagnostic facility until you have read this section completely, and understand this material. If you are not certain how to properly use this facility, or if you are not under the guidance of IBM Service, do not activate this facility. Activating this facility may result in degraded performance of your system. Activating this facility may also result in longer response times, higher processor loads, and the consumption of system disk resources. Activating this facility may also obscure or modify the symptoms of timing-related problems. |
Syntax
Flags
Operands
None.
Description
The wrap_test command checks the functionality of a suspected link, and points to the faulty part of the link that should be replaced. You must specify either the Frame-Switch-BulkHead-Jack, or the switch_chip_id and switch_chip_port number that identify the switch chip port connected to the link. If the suspected link connects two switches, you might also specify the cable_length parameter. This will help the wrap test to choose the correct technique for the cable testing.
If the link under test connects a switch to a node, you are required to fence the node before running the test. If the link under test connects two switches, the link will be disabled during the test.
|Security
|When restricted root access (RRA) is enabled, this command can only be run |from the control workstation.
Location
/usr/lpp/ssp/bin/spd/wrap_test
Examples
|wrap_test -j E01-S17-BH-J6 -c 15
|wrap_test -s 23 -p 3
|switch_stress -n 1