ISSUE ASREPORTED:
-The customer received the following error when trying to import a diskgroup.
Aug 217:05:08 fwewic03a vxvm:vxconfigd: [ID 702911 daemon.warning]
V-5-1-663Group ewic04-o-arch-dg: Duplicate virtual device number(s):
Aug 217:05:08 fwewic03a vxvm:vxconfigd: [ID 702911 daemon.warning]
Volumeewic04-o-arch-v01 remapped from 322,21000 to 322,131070
ERROR CODE/MESSAGE:
-V-5-1-663Group ewic04-o-arch-dg: Duplicate virtual device number(s)
WHY DOESTHIS HAPPEN:
RESOLUTION:
The base minor number for a diskgroup can be modified using
"vxdg reminor " command.
Example: To change the minor number for diskgroup dle.
#ls -l/dev/vx/dsk/dle
brw------- 1root root 75, 27000 Feb 14 11:31 vol1
#vxdgreminor dle 48000
#ls -l/dev/vx/dsk/dle
brw------- 1root root 75, 48000 Mar 9 10:58 vol1
So fore wic04-o-arch-dg :
/dev/vx/dsk/ewic04-o-arch-dg:
total4
drwxr-xr-x 2root root 512 Aug 2 17:05 .
drwxr-xr-x14 root root 512 Aug 2 17:05 ..
brw------- 1root root 322, 21001 Aug 2 17:05 ewic04-o-arch-v01
brw------- 1root root 322, 21001 Aug 2 17:05 ewic04-o-arch-v02
For some reason both luns above had 322, 21001
brw------- 1root root 322, 131070 Aug 2 17:05 ewic04-o-arch-v01
#vxdgreminor ewic04-o-arch-v01 21002
EXAMPLE OF AREMINOR:
I created a diskgroup, file system, and mounted it. I also copied data to the newly created volume.
v timvol01 -ENABLED ACTIVE 6291456 SELECT - fsgen
pltimvol01-01 timvol01 ENABLED ACTIVE 6291456 CONCAT - RW
sdtimdg01-01 timvol01-01 timdg01 0 4400896 0 c3t216000C0FF804C1Ed0 ENA
sdtimdg02-01 timvol01-01 timdg02 0 1890560 4400896 c3t216000C0FF804C1Ed1ENA
# mkfs -F vxfs /dev/vx/rdsk/timdg/timvol01
version 7layout
6291456sectors, 3145728 blocks of size 1024, log size 16384 blocks
largefilessupported
# mount -Fvxfs /dev/vx/dsk/timdg/timvol01 /timvol01
# cp /etc/*/timvol01
# cd/dev/vx/dsk/
#ls
timdg
# cdtimdg
# ls-l
total0
brw------- 1root root 299, 37000 Aug 13 15:58 timvol01
# vxdg reminor timdg 21000
VxVM vxdgWARNING V-5-1-3858 Volume timvol01: Device is open, will renumber on import
# ls-l
total0
brw------- 1root root 299, 37000 Aug 13 15:58 timvol01
Now I deported it, and imported timdg.
# umount /timvol01
# vxdg deport timdg
# vxdg import timdg
# ls -l //dev/vx/dsk/timdg
total0
brw------- 1root root 299, 21000 Aug 13 16:21 timvol01
As you can see the diskgroup has the new minor number.