Campus cluster: disks bad tagged
Created: 13 Mar 2013 | Updated: 14 Mar 2013 | 8 comments
This issue has been solved. See solution.
Hello,
¿is it possible to change a disk tag without stopping the vxvm? Lets say we have a 2 node cluster in 2 sites: Y and T. The dg has 8 disks and the tag of 2 of them are wrong:
- disk 00 is tagged as T when should be Y
- disk 01 is tagged as Y when should be T
Both disks are 50 GB big and the DG has 130GB of free space.
Questions:
Can we just remove the disk and reattach them? how (there are volumes on them)?
Any easy way of exchanging the tags?
Regards,
joaquín
Operating Systems:
Discussion Filed Under:
Comments 8 Comments • Jump to latest comment
Hi
Could you post a vxprint or vxdisk list, showing the examples of the tags ? I just wanted to check if these are disk tags or something else (disk media name, Disk access Name)
thanks
tony
You don't need to reattach disks to change tags - you just use rmtag and settag whilst the volumes are in use (mounted) - example:
Mike
UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows
If this post has helped you, please vote or mark as solution
If you meant can you change the diskmedia record - you can do this too - I think the only thing you can't change online is the volume name as this changes the access path, but even this does not require you to reattach disk (you would just umount, rename volume and mount using new path). To change the diskmedia record name, you use vxedit - example:
Mike
UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows
If this post has helped you, please vote or mark as solution
More info:
NODE2:~ # vxdisk listtag
DEVICE NAME VALUE
ibm_ds8x000_1f00 site Y
ibm_ds8x000_1f01 site T // should be Y
ibm_ds8x001_8a02 site T
ibm_ds8x001_8a03 site T
ibm_ds8x001_8b00 site T
ibm_ds8x001_8b01 site Y // should be T
ibm_ds8x002_ec00 site Y
ibm_ds8x002_ed00 site Y
NODE2:~ # vxdg list
NAME STATE ID
shareddg enabled,cds,siteconsistent 1339422132.11.NODE1
NODE2:~ # vxlist | grep ^dg -B1
TY DISKGROUP IMPORT STATUS SIZE FREE ID
dg shareddg private enabled 339.27g 139.75g 1339422132.11.NODE1
OK, I understand that I can retag the disks online. If I execute:
vxdisk -g shareddg rmtag site=T ibm_ds8x000_1f01
vxdisk -g shareddg settag site=Y ibm_ds8x000_1f01
Would the data of this disk copy to the rest of disks of site T to keep the mirror??? and if the answer is yes... is it possible because of the free space of the dg (I mean in that site)???
Retagging disks will not move any data, but I see where you are coming from now, as the retag will probably fail if the retag would mean you have 2 plexes of the same volume with the same tag, and this depends on your volume layout, so please post "vxprint -thg shareddg".
If you need to move data the process will probably be something like:
Can you also provide output of "vxdg free"
Mike
UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows
If this post has helped you, please vote or mark as solution
So to summarise:
So this is what I would do:
vxexac -g sharedg ibm_ds8x000_1f01 ibm_ds8x002_ed00
vxexac -g sharedg ibm_ds8x001_8b01 ibm_ds8x001_8a03
vxdisk -g shareddg rmtag site=Y ibm_ds8x001_8b01
vxdisk -g shareddg settag site=Y ibm_ds8x000_1f01
vxdisk -g shareddg settag site=T ibm_ds8x001_8b01
If you try to remove tags on a disks that contains volumes it will fail and you could get round this by turning off allsites and siteconsistent flag on CARGAS_lv volume:
vxvol -g sharedg set allsites=off CARGAS_lv
vxvol -g sharedg set siteconsistent=off CARGAS_lv
but this does not get round your issue of the volume having 2 plexes on the same array, so you need to move the data
Mike
UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows
If this post has helped you, please vote or mark as solution
That looks like the solution I was looking for. I dont know when I will get "permission" to execute but I will post the results.
Thanks very much mike!
Would you like to reply?
Login or Register to post your comment.