/usr/sbin/vxmend – UnixArena’s Manual page
/usr/sbin/vxmend – mend simple problems in configuration records
The vxmend utility performs various Veritas Volume Manager (VxVM) usage-type-specific operations on subdisk, plex, and volume records.
Tasks |
Switches |
Put the named plexes or volumes into an offline state | vxmend [-g diskgroup] [-o useopt] [-U usetype] off name… |
Take the named plexes or volumes out of the offline state | vxmend [-g diskgroup] [-o useopt] [-U usetype] on name… |
Change the state of a volume or plex | vxmend [-g diskgroup] [-o useopt] [-U usetype] fix how name [arg…] |
Clear specified utility fields for each named record in the disk group | vxmend [-fprsvV] [-g diskgroup] [-o useopt] [-U usetype] clear field name … |
vxmend – command line examples
Offline Volume and its associated plexes
[box type=”warning” ]Make sure the volume is disabled using ‘vxvol stop’ to avoid file system corruption.[/box]
v oravol - DISABLED CLEAN 1024000 SELECT - fsgen pl oravol-01 oravol DISABLED CLEAN 1024000 CONCAT - RW sd oradisk01-01 oravol-01 oradisk01 0 1024000 0 c3t1d0 ENA pl oravol-02 oravol DISABLED CLEAN 1024000 CONCAT - RW sd oradisk02-01 oravol-02 oradisk02 0 1024000 0 c3t2d0 ENA # vxmend -g oradg -U fsgen -o force -r off oravol v oravol - DISABLED CLEAN 1024000 SELECT - fsgen pl oravol-01 oravol DISABLED OFFLINE 1024000 CONCAT - RW sd oradisk01-01 oravol-01 oradisk01 0 1024000 0 c3t1d0 ENA pl oravol-02 oravol DISABLED OFFLINE 1024000 CONCAT - RW sd oradisk02-01 oravol-02 oradisk02 0 1024000 0 c3t2d0 ENA
Online Volume and its associated plexes
# vxmend -g oradg -U fsgen -o force -r on oravol v oravol - DISABLED CLEAN 1024000 SELECT - fsgen pl oravol-01 oravol DISABLED STALE 1024000 CONCAT - RW sd oradisk01-01 oravol-01 oradisk01 0 1024000 0 c3t1d0 ENA pl oravol-02 oravol DISABLED STALE 1024000 CONCAT - RW sd oradisk02-01 oravol-02 oradisk02 0 1024000 0 c3t2d0 ENA
[box type=”note” ]Note: To enable the volume, use ‘vxmend fix clean’ & ‘vxvol start’ commands.[/box]
Taking Plex offline for Maintenance
v oravol - ENABLED ACTIVE 1024000 SELECT - fsgen pl oravol-01 oravol ENABLED ACTIVE 1024000 CONCAT - RW sd oradisk01-01 oravol-01 oradisk01 0 1024000 0 c3t1d0 ENA pl oravol-02 oravol ENABLED ACTIVE 1024000 CONCAT - RW sd oradisk02-01 oravol-02 oradisk02 0 1024000 0 c3t2d0 ENA # vxmend -g oradg -o force off oravol-01 v oravol - ENABLED ACTIVE 1024000 SELECT - fsgen pl oravol-01 oravol ENABLED ACTIVE 1024000 CONCAT - RW sd oradisk01-01 oravol-01 oradisk01 0 1024000 0 c3t1d0 ENA pl oravol-02 oravol DISABLED OFFLINE 1024000 CONCAT - RW sd oradisk02-01 oravol-02 oradisk02 0 1024000 0 c3t2d0 ENA
Re-enables a plex for use
# vxmend -g oradg on oravol-02 v oravol - ENABLED ACTIVE 1024000 SELECT - fsgen pl oravol-01 oravol ENABLED ACTIVE 1024000 CONCAT - RW sd oradisk01-01 oravol-01 oradisk01 0 1024000 0 c3t1d0 ENA pl oravol-02 oravol DISABLED STALE 1024000 CONCAT - RW sd oradisk02-01 oravol-02 oradisk02 0 1024000 0 c3t2d0 ENA
Setting the state of a plex in an unstartable volume to CLEAN
# vxmend -g oradg -o force fix clean oravol-02 v oravol - DISABLED CLEAN 1024000 SELECT - fsgen pl oravol-01 oravol DISABLED STALE 1024000 CONCAT - RW sd oradisk01-01 oravol-01 oradisk01 0 1024000 0 c3t1d0 ENA pl oravol-02 oravol DISABLED CLEAN 1024000 CONCAT - RW sd oradisk02-01 oravol-02 oradisk02 0 1024000 0 c3t2d0 ENA
To clear the aborted operation
Example:
Caught interrupt signal
VxVM vxplex ERROR V-5-1-1797 vol_commit in progress, interrupt twice to quit
Caught interrupt signal
# vxmend -g oradg clear tutil0 oravol-01 # vxmend -g oradg clear att1 oravol-01