04-22-2014 09:52 AM
Hello,
We have SFHA 6.0 installed on Solaris 10. We have changed the hostname of the solaris server and hence I need to change the diskgroup id of a particular diskgroup. What will be the command or procedure for this?
I have enabled the newhostname using vxdctl hostid, but the diskgroup does not changes after this.
04-22-2014 10:30 AM
You don't need to change the ID - this is just a unique identifier, so for instance in a cluster the ID will have the hostname embedded in it for the host where the diskgroup was created, but this still means it is perfectly ok to import on other nodes in the cluster.
Mike
04-22-2014 10:42 AM
Thanks for this.
Just out of curiosity, is there any command/procedure to change the diskgroup id?
04-22-2014 11:14 PM
not to my knowledge .. even the vxedit -g <dg> set options doesn't have attribute to modify this.
I have not really tried if dg id changes if you deport & import diskgroup with a new name. Else, dgid will only change if dg is destroyed & recreated but you wouldn't really want to do that unless there is a major problem because of DG ID.
G
04-23-2014 08:43 PM
This might help
https://www-secure.symantec.com/connect/downloads/script-change-group-id-veritas-disk-group
04-26-2014 11:37 PM
For SF, You may need update volboot :
Update the volboot file and the hostid field of all the disks that are part of an imported disk group.
# vxdctl hostid [new hostid]
For cluster, more work need do.
04-30-2014 02:56 AM
Note the script link provided by Novonil is doing what Gaurav says you would need to do which is to destroy and recreate the diskgroup - this does this with the data intact (in theory !) as detroying a diskgroup only removes the private region so if you recreate diskgroup with exact same volume boundaries, then data is ok.
The script seems well written with some inbuilt error checking but I would not recommend using this script as there are still risks to your data and changing the diskgroup id in your case is just for cosmetic reasons, rather than a necessity for which this script is provided when taking clones of a diskgroup (where if the script fails, you still have original diskgroup so you don't loose data).
Mike
05-04-2014 09:31 PM
Try:
vxdg -C import dgname
If it is certain that a disk is not in use by another host (for example, because a disk group was not
cleanly deported), use the -C option to clear the existing host ID on all disks in the disk group
upon import. A host ID can also be cleared using vxdisk clearimport.
06-15-2014 11:16 PM
This technote is for diskgroup id change: You just need to run the script.
http://www.symantec.com/connect/downloads/script-change-group-id-veritas-disk-group
Following details for Cluster-ID change: