05-19-2011 10:50 PM
Hi,
The disk status in below two outputs of vxdisk command using different arguments are different. Can anyone explain the reason or is it a bug.
host1 $ vxdisk list
DEVICE TYPE DISK GROUP STATUS
Disk_0 auto:none - - online invalid
Disk_1 auto:none - - online invalid
Disk_2 auto:none - - online invalid
Disk_3 auto:none - - online invalid
Disk_4 auto:none - - online invalid
Disk_5 auto:none - - online invalid
Disk_6 auto:none - - online invalid
Disk_7 auto:none - - online invalid
EMC0_0 auto:cdsdisk - - online
EMC0_1 auto:cdsdisk - - online
EMC0_2 auto:cdsdisk - - online
host1 $ vxdisk -eo alldgs list
DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME
Disk_0 auto - - online c1t10d0s2
Disk_1 auto - - online c1t11d0s2
Disk_2 auto - - online c2t8d0s2
Disk_3 auto - - online c2t9d0s2
Disk_4 auto - - online c0t8d0s2
Disk_5 auto - - online c0t9d0s2
Disk_6 auto - - online c3t11d0s2
Disk_7 auto - - online c3t10d0s2
EMC0_0 auto - (dg1) online c6t5006048452A7535Cd371s2
EMC0_1 auto - (dg1) online c6t5006048452A75372d369s2
EMC0_2 auto - (dg1) online c6t5006048452A75372d370s2
Thanks
Solved! Go to Solution.
05-20-2011 04:27 AM
the disk status in both cases is ONLINE
vxdisk -o alldgs list also reports additional information in that it shows the disk is "invalid" (ie: does not contain a valid VxVM configuration); however, the disk is still online, so the (physical/connection) status is the same.
The additional "invalid" status is not reported using the -e option, as the -e option is primarily to show the underlying OS paths. The disk is still shown as being in online status, so there is no mismatch, it is just not reporting the additional information.
Note: In 5.0MP3 RP4(? between rp1 and rp4) vxdisk -e list does seem to have been modified to show the enhanced information (ie: the version you are using must be earlier that 5.0MP3RP4) - see below:
5.0MP3 RP1
# vxdisk -o alldgs list DEVICE TYPE DISK GROUP STATUS disk_0 auto:none - - online invalid disk_1 auto:none - - online invalid # vxdisk -e list DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME ATTR disk_0 auto - - online c0t0d0s2 - disk_1 auto - - online c0t1d0s2 - # vxdisk -e -o alldgs list DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME ATTR disk_0 auto - - online c0t0d0s2 - disk_1 auto - - online c0t1d0s2 -
5.0MP3RP4
# vxdisk -o alldgs list DEVICE TYPE DISK GROUP STATUS disk_0 auto:none - - online invalid disk_1 auto:none - - online invalid # vxdisk -e list DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME ATTR disk_0 auto:none - - online invalid c0t0d0s2 - disk_1 auto:none - - online invalid c0t1d0s2 - # vxdisk -e -o alldgs list DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME ATTR disk_0 auto:none - - online invalid c0t0d0s2 - disk_1 auto:none - - online invalid c0t1d0s2 -
05-19-2011 11:31 PM
Hello,
If you are talking about online / online-invalid & then I don't believe thats a bug .. thats how are the command options show the results...
purpose of vxdisk -eo is different that a normal vxdisk list ... vxdisk -o would be used for some extended options like for e.g -o alldgs will list you disks whether imported or deported diskgroups & -e would be listing OS native names ..
point to note, disk is shown online in both the outputs (since path to disk can be read) however vxdisk list command can detect that there is no private region installed on the disk that is why it is shown invalid... in simple terms disk is not initialized in veritas (may be because you are using them uder OS )
G
05-20-2011 04:27 AM
the disk status in both cases is ONLINE
vxdisk -o alldgs list also reports additional information in that it shows the disk is "invalid" (ie: does not contain a valid VxVM configuration); however, the disk is still online, so the (physical/connection) status is the same.
The additional "invalid" status is not reported using the -e option, as the -e option is primarily to show the underlying OS paths. The disk is still shown as being in online status, so there is no mismatch, it is just not reporting the additional information.
Note: In 5.0MP3 RP4(? between rp1 and rp4) vxdisk -e list does seem to have been modified to show the enhanced information (ie: the version you are using must be earlier that 5.0MP3RP4) - see below:
5.0MP3 RP1
# vxdisk -o alldgs list DEVICE TYPE DISK GROUP STATUS disk_0 auto:none - - online invalid disk_1 auto:none - - online invalid # vxdisk -e list DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME ATTR disk_0 auto - - online c0t0d0s2 - disk_1 auto - - online c0t1d0s2 - # vxdisk -e -o alldgs list DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME ATTR disk_0 auto - - online c0t0d0s2 - disk_1 auto - - online c0t1d0s2 -
5.0MP3RP4
# vxdisk -o alldgs list DEVICE TYPE DISK GROUP STATUS disk_0 auto:none - - online invalid disk_1 auto:none - - online invalid # vxdisk -e list DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME ATTR disk_0 auto:none - - online invalid c0t0d0s2 - disk_1 auto:none - - online invalid c0t1d0s2 - # vxdisk -e -o alldgs list DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME ATTR disk_0 auto:none - - online invalid c0t0d0s2 - disk_1 auto:none - - online invalid c0t1d0s2 -