Yesterday I encountered one issue where I couldn't able to add the disk into Veritas Diskgroup. Later I fixed the issue and executed the change successfully. I just want to share same to you all through this post. This may help you lot when you encountered the similar issue.
Actual request is to extend the mirrored Volume. When we add the disk into the DG, getting below error. which indicates that might be mismatch between Veritas kernel and disk configurations.
[root@unixrock ~]# vxdg -g UNIXDG adddisk unixrock_site_01=unixstore-asp2_09ab VxVM vxdg ERROR V-5-1-10128 Configuration daemon error 441 [root@unixrock ~]#
as a workaround we can use "Vxdg flush DG", it will update or rewrites all the disks configuration as like disk headers, copies of kernel log, copies of configuration for the specified VxVM disk group. If we are not mentioned any specific diskgroup, then it will consider to update or rewrite all available diskgroups. "vxdg flush" also will enable the configuration copies, if any configuration copies were disabled status.
NOTE : If this filesystem is controlled by VCS, then recommended to freeze the SG which is part the DG.
[root@unixrock ~]# [root@unixrock ~]# vxdg flush UNIXDG [root@unixrock ~]#Checking the status of the DG
[root@unixrock ~]# vxdg list NAME STATE ID UNIXDG enabled,cds 1201549779.11.unixrock LABDG enabled,cds 1398286849.18.unixrock [root@unixrock ~]#Trying to add the disk into spicified DG
[root@unixrock ~]# [root@unixrock ~]# vxdg -g UNIXDG adddisk unixrock_site_01=unixstore-asp2_09ab [root@unixrock ~]# [root@unixrock ~]# vxdg -g UNIXDG adddisk unixrock_site_02=unixstore-asp3_0sb3 [root@unixrock ~]#After adding the disks, checking the possibilities of extendtions
[root@unixrock ~]# vxassist -g UNIXDG maxsize Maximum volume size: 922343424 (450363Mb) [root@unixrock ~]# vxassist -g UNIXDG maxgrow LVOL01 layout=mirror Volume LVOL01 can be extended by 461170688 to: 2998471008 (1464097Mb+352 sectors) [root@unixrock ~]#Extending the Volume by using vxresize command
[root@unixrock ~]# [root@unixrock ~]# vxresize -g UNIXDG LVOL01 +200GChecking the status of extendtions in another sesstions
[root@unixrock ~]# vxtask list TASKID PTID TYPE/STATE PCT PROGRESS 188 RDWRBACK/R 06.87% 2537300320/2956730720/2566121824 RESYNC LVOL01 UNIXDG [root@unixrock ~]#HINTS : If vxdg flush doesnt work as we expected, then we have to get the downtime and import/export DG or Server reboot may required.
Thanks for reading this post, please leave your valuable comments and queries, I will respond to you at earliest possible.