V-5-1-607 after setting the defaultdg

book

Article ID: 100021460

calendar_today

Updated On:

Description

Error Message

VxVM vxassist ERROR V-5-1-607 Diskgroup not found

 

Example:

# vxassist make vol01 1g
VxVMvxassist ERROR V-5-1-607 Diskgroup testdg not found

Resolution

Displaying the defaultdg (Default Diskgroup) with the command `vxdg defaultdg` shows the root cause.
 
# vxdg defaultdg
testdg
 
The vxdg man pages outlines the following:
 
Rules for determining the Default Disk Group
 
It is recommended that you use the -g option to specify a disk group to VxVM commands.If you do not specify the disk group, VxVM uses the following rules in order until it determines a disk group name:
 
1. Use the default disk group name that is specified by the environment variable VXVM_DEFAULTDG. This variable can also be set to one of the reserved system-wide disk group names: bootdg, defaultdg, or nodg. See the section System-Wide Reserved Disk Groups above for details. If this variable is undefined, the following rule is applied.
 
2. Use the disk group that has been assigned to the system-wide default disk group alias,defaultdg. Use the command vxdctl defaultdgd diskgroup to change the name of the default disk group that is assigned to defaultdg. If this alias is undefined, the following rule is applied.
 
3. If the operation can be performed without requiring a disk group name (for example, an edit operation on disk access records), do so.
 
This can be confirmed when the variable VXVM_DEFAULTDG is set and an attempt to change the defaultdg is made with the command `vxdctl defaultdg group`
 
Example:
# exportVXVM_DEFAULTDG=testdg
# env|grepVXVM_DEFAULTDG
VXVM_DEFAULTDG=testdg
 
# vxdctl defaultdg datadg
# vxdctllist
Volbootfile
version:3/1
seqno:0.6
clusterprotocol version: 80
hostid:sprs1950a0-28
defaultdg:datadg
hostguid:{01dcd9a2-1dd2-11b2-b06f-9c192a722ba5}
 
# vxassist make vol01 1g
VxVMvxassist ERROR V-5-1-607 Diskgroup testdg not found
 
RESOLUTION:
1. Verify the environment variable VXVM_DEFAULTDG has been set.
 
# env |grep VXVM_DEFAULTDG
 
2. Unset the variable VXVM_DEFAULTDG
 
# unset VXVM_DEFAULTDG
 
3. After the variable VXVM_DEFAULTDG has been unset verify the defaultdg.
 
# vxdg defaultdg
datadg
 
4. Verify the variable is not set in the file /etc/defaults/vxdg. If so, edit the file and delete the variable setting.
 
5. Verify the variable is not set by any login scripts. i.e. .profile, .cshrc, .bash_profile etc