Use the 'vxdisksetup' command to add disks to a disk group when 'vxdiskadm' fails

book

Article ID: 100029583

calendar_today

Updated On:

Resolution

The issue:
The diskgroup may not be 'cdsdisk' (Cross-platform Data Sharing) type.
 
The reason for the failure:
The text menu program 'vxdiskadm' defaults to 'cdsdisk' when initializing disks.
Disk groups created on versions of Veritas Volume Manager prior to 4.0 will not be 'cdsdisk'.
Disks that are added to older disk groups must be initialized in 'simple' or 'sliced' format prior to addition to the disk group.  
 
Toresolve the issue:
1) Run the 'vxdctl enable' command after attaching and configuring the new storage / disk devices on the system.
# vxdctl enable
2) Examine your 'vxdisk list' output and verify the new device(s) are shown.
 
In the following example, all devices on controller 3 are new:
#vxdisk list
DEVICE      TYPE          DISK        GROUP      STATUS
c1t0d0s2    auto:none      -          -           online invalid
c1t1d0s2    auto:none      -          -           online invalid
c3t0d0s2    auto:none      -          -           online invalid
c3t1d0s2    auto:none      -          -           online invalid
 
3)Initialize disks for use with the non-cds disk group by using the following syntax:
#vxdisksetup -i format=  
 
In the following example, c3t1d0s2 is put under Volume Manager control:
#vxdisksetup -i c3t1d0s2 format=sliced  
 
4) Verify that the disk is now listed as online.
#vxdisk list
DEVICE      TYPE          DISK        GROUP      STATUS
c1t0d0s2    auto:none      -          -           online invalid
c1t1d0s2    auto:none      -          -           online invalid
c3t0d0s2    auto:none      -          -           online invalid
c3t1d0s2    auto:sliced    -          -           online
 
5) Add thedisk to the disk group by using the following syntax:
#vxdg -g adddisk =  
 
In the following example, c3t1d0 is added to the disk group datadg:
#vxdg -g datadg disk01=c3t1d0s2  
 
6) Verify that the disk is now listed in the disk group.
#vxdisk list
DEVICE      TYPE          DISK        GROUP      STATUS
c1t0d0s2    auto:none      -          -           online invalid
c1t1d0s2    auto:none      -          -           online invalid
c3t0d0s2    auto:none      -          -           online invalid
c3t1d0s2    auto:sliced    disk01      datadg      online
 
Note: It maybe desirable to change the default setting in vxdiskadm to initialize disks in simple or slice format if a large number of disk groups exist that are non-cds,.
 
The following procedure changes the disk initialization default:
1) Enter the vxdiskadm menu utility:
#vxdiskadm
2) Choose the option labeled "Change/Display the default disk layouts".
3) Choose the option labeled "Change/View preferences for use when initializing newdisks".
4) Choose the option labeled "Store preferred format for initializing new disks".
5) Change the default by typing "simple" or "sliced" at the prompt.
 
All disks initialized with vxdiskadm will now be in the chosen format.
 

 

Issue/Introduction

Use the 'vxdisksetup' command to add disks to a disk group when 'vxdiskadm' fails