VxVM vxisforeign ERROR V-5-1-6218 vxisforeign: Cannot stat cciss/c0d4
Issue:
# vxdisk list
DEVICE TYPE DISK GROUP STATUS
cciss/c0d0 auto:none - - online invalid
cciss/c0d1 auto:none - - online invalid
cciss/c0d2 auto:cdsdisk - - online
cciss/c0d3 auto:cdsdisk - - online
cciss/c0d4 auto:none - - online invalid
# /opt/VRTS/bin/vxdisksetup -i cciss/c0d4
VxVM vxisforeign ERROR V-5-1-6218 vxisforeign: Cannot stat cciss/c0d4
However, all below steps succeed.
# vxdg init testdg testdg01=cciss/c0d4
# vxassist -g testdg make testvol 2g
# mkfs -t vxfs /dev/vx/rdsk/testdg/testvol
# mount -t vxfs /dev/vx/dsk/testdg/testvol /test
The command vxdisksetup posts error, but completes successfully. 'vxisforeign' is used as a check to determine if the disk is in use by any foreign volume managers. Even with this error 'vxforeign' returns 1 (indicating no foreign volume managers using the disk)...hence vxdisksetup was able to continue with the disk initialization.
Solution:
This error does not prevent the initialization of the devices and using the devices in volume manager.
The workaround:
# cd /dev
# /etc/vx/bin/vxdisksetup -i cciss/c0d2
Etrack incident 2061066 is filed for this.