V-3-20027: Cannot deduce character device name for /dev/vx/dsk/sunsanemc_dg01/sunsanemc_vol01
After a diskgroup is deported, there should be no directories in /dev/vx//dsk or /dev/vx/rdsk that contain the name of the diskgroup.
For example, when the the diskgroup sunsanemc_dg01is imported, we can see the it in /dev/vx/dsk and /dev/vx/rdsk
# vxdg import sunsanemc_dg01
# cd /dev/vx/dsk
# ls -l
total 2
drwxr-xr-x 2 root root 512 Oct 25 14:41 sunsanemc_dg01
# cd /dev/vx/rdsk
# ls -l
total 2
drwxr-xr-x 2 root root 512 Oct 25 14:41 sunsanemc_dg01
The above error is cause when the directory is not removed after a deport.
vxdg deport sunsanemc_dg01
rm: Unable to remove directory /dev/vx/rdsk/sunsanemc_dg01: File exists
Even though the "vxdg deport" succeeded, the "/dev/vx/rdsk/sunsanemc_dg01" did not get removed.
# cd /dev/vx/rdsk
# ls -l
total 2
drwxr-xr-x 2 root root 512 Oct 25 14:41 sunsanemc_dg01
1. cd /dev/vx/rdsk
2. rm -rf sunsanemc_dg01
3. vxdg import sunsanemc_dg01
4. vxvol -g sunsanemc_dg01 start sunsanemc_vol01