コメント (6)

1 rgpr_pravin によるコメント登録時刻 固定リンク

Hi Brain, that's a cool perlie!!.. I wrote a similar one in shell scripting last year when I had struggle doing manually. Not an effecient scripting, but served my purpose.

 
#
#
# NAME
# gen_migratelp.sh
#
# DESCRIPTION
# This program will generage the migratelp command for the VGs that require change of type or scaling the VG
#
# USAGE
# gen_migratelp.sh { all | <vg name> }
# - all ---> Works for all the VGs except rootvg
# - <vg name> ---> Specify VG name
# MODIFICATION HISTORY
# PR 05/09/12 Initial Version
#

2 Anthony English によるコメント登録時刻 固定リンク

Hi Brian, <div>&nbsp;</div> I agree about the scaleable VGs. <div>&nbsp;</div> Do you know why the script is reporting that a VG is locked for some of the commands. Does the sleep 1 need to be replaced with a test to see if the previous command is fixed (or maybe just a sleep 2)? I would have thought migratelp wasn't running in background, so I wonder why the VG is reporting that it's locked. Is it something to do with the pipe to ksh? <div>&nbsp;</div> Also, worth noting that changing a volume group from small vg to big vg using chvg -B can be done online, as long as the volume group is not concurrent. But changing a VG to scaleable using chvg -G can't be done on a volume group that is varied on (active). So the change to big vg can usually be done online, but not to scaleable. See chvg command for details (http://bit.ly/1dhRnVh). <div>&nbsp;</div> Anthony

3 brian_s によるコメント登録時刻 固定リンク

Anthony, thanks for the comments. From what I can tell mipgratelp does not run in the background, so I'm not sure why it sometimes reports the volume group is locked. However, everything still works as expected as the migratelp command retries until the lock is free (which by watching the screen doesn't appear to take longer than a couple seconds). I'll play around with it some more and see if I can narrow down why it is reporting it is locked.

4 XJPG_Naveen_Ramalingam によるコメント登録時刻 固定リンク

Hi Brain, <div>&nbsp;</div> Thanks for the wonderful script. <div>&nbsp;</div> I'm have an serious issue in my environment and need your help <br /> Setup is like , Dual VIO and no SAN storage. We have create LV and mapped to client servers.On the Client side the VG will be mirrored. We use to find some issue while rebooting the VIOs . Its because few lv's are not mirrored with both the disk in the vg. <div>&nbsp;</div> So i need your help to check the status of the lv using an script.

5 brian_s によるコメント登録時刻 固定リンク

I did a previous post/script on checking mirror status: https://www.ibm.com/developerworks/community/blogs/brian/entry/make_sure_all_your_lv_s_are_mirrored_in_a_aix_volume_group20?lang=en

6 XJPG_Naveen_Ramalingam によるコメント登録時刻 固定リンク

Brain, <div>&nbsp;</div> Thanks for the link again https://www.ibm.com/developerworks/community/blogs/brian/entry/make_sure_all_your_lv_s_are_mirrored_in_a_aix_volume_group20?lang=en <div>&nbsp;</div> I have checked the script and its working fine for the rootvg. But for the datavg I found few issue. The script is checking not working for more than 2 disk in the VG. <br /> Here is the setup <div>&nbsp;</div> hdisk2 datavg ( Coming from VIO A) <br /> hdisk3 datavg ( Coming from VIO B) <br /> hdisk4 datavg ( Coming from VIO A) <br /> hdisk5 datavg ( Coming from VIO B) <div>&nbsp;</div> Here is the mirror sample <div>&nbsp;</div> hdisk2 0125 hdisk5 <br /> hdisk2 0126 hdisk5 <br /> hdisk3 0369 hdisk4 <br /> hdisk3 0370 hdisk4 <br /> hdisk3 0371 hdisk4 <br /> hdisk3 0372 hdisk4 <br /> hdisk3 0373 hdisk4 <br /> hdisk3 0374 hdisk4 <br /> hdisk3 0375 hdisk4 <br /> hdisk3 0376 hdisk4 <br /> hdisk3 0377 hdisk4 <br /> hdisk3 0378 hdisk4 <br /> hdisk3 0379 hdisk4 <br /> hdisk3 0380 hdisk4 <br /> hdisk3 0381 hdisk4 <br /> hdisk3 0382 hdisk4 <br /> hdisk3 0383 hdisk4 <br /> hdisk3 0384 hdisk4 <br /> hdisk3 0385 hdisk4 <br /> hdisk3 0386 hdisk4 <br /> hdisk3 0387 hdisk4 <br /> hdisk3 0388 hdisk4 <br /> hdisk3 0389 hdisk4 <br /> hdisk3 0390 hdisk4 <br /> hdisk3 0391 hdisk4 <br /> hdisk3 0392 hdisk4 <br /> hdisk3 0393 hdisk4 <br /> hdisk3 0394 hdisk4 <br /> hdisk4 0153 hdisk5 <br /> hdisk4 0154 hdisk5 <br /> hdisk4 0155 hdisk5 <div>&nbsp;</div> So i need a script to check the LV has two copies ( in both VIO's)