Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HAMCP cl_mirrorvg run in background 1

Status
Not open for further replies.

MoreFeo

Technical User
Nov 29, 2002
547
ES
Hi,

I'm migrating some HACMP clusters to new disks, from another storage.
What I wanted to do is, from C-SPOC menus, add the new disks, mirror the shared VGs, and then unmirror these VGs.

I've started with just one VG in a cluster, and from the "Mirror a Shared VG" menu I selected the Background option, but it's running in the Foreground, it's showing the COMMAND STATUS, Command: running.

I've checked with ps -ef, and I see it has launched the following commands:
Code:
/bin/ksh /usr/sbin/cluster/cspoc/smitlvm -15 rg_sapr3 -Rclnode1 -S sapr3vg hdisk24

/bin/ksh /usr/es/sbin/cluster/sbin/cl_mirrorvg -cspoc -g rg_sapr3 -Rcl_node1 -S sapr3vg hdisk24

I see both commands have been launched with -S option, that should mean background, but it's running in the foreground (at least it doesn't returno to smit menu).

Has anyone run cl_mirrorvg manually, instead from the smit hacmp menus?

I think I will mirror next VGs manually, but I want to be sure the -S option (background) works.

Another option is to run the cl_mirrorvg command from a script in background, with nohup. Would you recommend such a thing?

Thanks.
 
Thanks a lot. Problem is I'm not going to plan an APAR installation right now in 7 clusters, so I think I'm going to try running cl_mirrorvg manually.

Thanks.
 
Finally I'm running it from smit hacmp menus, with screen.
I've installed screen from the AIX Toolbox for Linux, and this lets me running smit interactive menus without losing the session, even if I lose connection. If I lose connection I just have to reattach the screen session that's still running.

I've done this since I've seen that the smit menu and the commands run from this menu do export some environment variables, and I'm not sure if I should also export the same variables when running cl_mirrorvg manually.

Thanks anyway unprophete for the bug info, and I'll install the apar some day.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top