Skip to main content

developerWorks >  IBM Systems  >  Forums  >  IBM System Storage  >  developerWorks

Flashcopy on FAStT700 with AIX 5.2 (P Series Server)    Point your RSS reader here for a feed of the latest messages in this thread


Tags for this thread: 

     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 5 - Pages: 1 - Last Post: Sep 18, 2009 12:13 PM Last Post By: richu

Posts: 4
Registered: Nov 23, 2006 04:12:26 AM
Flashcopy on FAStT700 with AIX 5.2 (P Series Server)
Posted: Nov 23, 2006 04:57:45 AM
Click to report abuse...   Click to reply to this thread Reply
I am hoping somebody with Flashcopy experience on AIX may be able to help. We have had a few issues with the scripts we have been running to import Flashcopies of our databases to our P series host nightly to dump to tape; mostly centering around repository sizing which I have pretty much resolved.

I am struggling with a couple of legacy issues though. First of all we need to add some more disk (LUNS) from the array, and I am concerned about conflicts with pvids on the scripted Flashcopies.

Currently our import/export runs something like this :

Import:

  • Recreate Flashcopy with SMcli(FAStT700)
  • LUN Mapping with SMcli(FAStT700)
  • hot_add (AIX cfgmgr) to import the disk devices to the host
  • chdev -l hdisk -a pv=clear (AIX) to clear the source LVM data structures from the FC's
  • recreatevg (AIX) to recreate the Flashcopy Volume Group
  • mount filesystems

Export:

  • umount filesystems (AIX)
  • varyoffvg (AIX) varyoff the FC volume group
  • exportvg (AIX) export the FC volume group
  • rmdev -l hdisk -d (AIX) completely remove the FC devices from the ODM
  • Remove LUN mapping with SMcli(FAStT700)
  • Disable the Flashcopy with SMcli (FAStT700)

Problem is as we completely remove the FC pvs from AIX each time, they only keep the same pvids each time for scripting purposes because we never add any other volumes to the system.

Somebody on another forum suggested that we should only remove the FCs from AIX using rmdev -l hdisk (no -d flag) in order that they remain defined in the ODM. That theory seems to work; but unfortunately when re-importing the volumes as soon as you run 'chdev -l hdisk -a pv=clear'I can not get the 'defined' volumes to switch back to 'available', and subsequently re-running hot_add (cfgmgr) just brings the FCs on line with new pvids, leaving the original ones as 'defined'.

I have tried throwing a 'chdev -l hdisk -a pv=yes' into the equation and even a 'mkdev -l hdisk' into the mix in various orders but nothing seems to work. Has anybody got any ideas how I can effectively 'hardcode' the FC pvids in the ODM and reuse the same ones each time ?

The other issues we have experienced are failures due to either 'chdev -l hdisk -a pv=clear' fails; or corrupt jfs superblocks when mounting the imported volumes on the host, requiring an fsck or re-running the snapshot.

We shut down the database prior to recreating the FCs to quiesce i/o; but I was wondering if additionally we should be (a) running a synch call prior to recreating the FCs to flush the disk buffers and (b) running a full fsck prior to mounting the volumes as a matter of course.

Does anybody have any ideas/experience here ?

Sorry for the long post - but I'm an HP guy historically and I'm just getting to grips with this Flashcopy stuff; and unfortunately IBM won't ratify our 'home grown' scripts under our support agreement.

I will not duplicate this posting at this time but if anybody thinks it would be better in the AIX forum please let me know.


Posts: 4
Registered: Nov 23, 2006 04:12:26 AM
Re: Flashcopy on FAStT700 with AIX 5.2 (P Series Server)
Posted: Nov 23, 2006 05:53:00 AM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
Further to this; I just found that our recent 'failed to clear pvid' error was actualy due to this error when creating the FC :

20:45:02 SMcli_north_recreate.sh :Created Logical drive for Flash copy 4-1
An internal error, error code 12, has occurred. This is possibly due to
initialization problems when loading the necessary internal files. Please check
your installation of SMclient. If problems continue to persist, re-install SMcli
ent.

SMcli failed.

Anybody got any ideas ? THX.

Posts: 23
Registered: Oct 24, 2006 04:15:23 AM
Re: Flashcopy on FAStT700 with AIX 5.2 (P Series Server)
Posted: Dec 03, 2006 11:54:19 AM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
From my notes here are some general hints for a good FlashCopy:
.
1) just before FlashCopy appl. should be frozen or stoped.
Next step is to unmount the FlashCopy source file systems to ensure that all data is flashed to the disks.
If you don't use unmount, then it's required to run "freeze" and "thaw" AIX commands. See the "chfs -a freeze" and "chfs -a freeze=off" in the man pages.

2) after "freeze" run sync; sync; sync; sleep 5

3) if your FlashCopy source logical volumes are spread over more hdisks, it's required to use disk level"consistency group" on your disk subsytem to ensure all IOs are stoped at the same time.
Without disk level"consistency group" there is a possibility that the target volumes may not be mountable. The failure to mount is not an error in this case. It results from an inconsistency between the file system data and the file system log that can be introduced during the FlashCopy process.

4) I would suggest to use separate jfs/jfs2 log for every FS. Otherwise it must be ensured that all FS's they use same log are stoped or frozen at the same time.

5) on target node (where FlashCopy disks are imported) run
- "recreatevg -f" if you flashed just half of LVM mirred hdisks
- "fsck -y" on all file systems before mounting

For your SMcli problems I have no hints as I don't know SMcli.

Next I don't understand your PVIDs problem... I see nothing wrong if disks are rmdev -dl during "Export". These are only FlashCopy target LUNs, so they will get all LVM and data structure _exactly_the_same_ (including the PVID) as FlashCopy source LUNs. If you want to import target LUNs on some other AIX node, then the "chdev -l hdisk -a pv=clear" and normal recreatevg are not necessary. If you import target LUNs on the same system where are source LUNs, then the "chdev -l hdisk -a pv=clear" and recreatevg are required.

Posts: 4
Registered: Nov 23, 2006 04:12:26 AM
Re: Flashcopy on FAStT700 with AIX 5.2 (P Series Server)
Posted: Dec 08, 2006 05:21:11 AM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
First of all - thanks for your help - and especially all the tips with ensuring the integrity of the Flashcopy.

On the pvid issue (and bear with me here); the problem is that we do import to the same system each night and use recreatevg with the pvids hardcoded in the import script (currently hdisk17 - hdisk22 for instance). Even though we export them using rmdev -dl they always get the same hdisk ids when we run hot_add (cfgmgr) each night to bring them back in.

Problem is if I introduce a new device whilst the FC's are off line, that new device is going to get hdisk17 pvid in the ODM when I run cfgmgr; so subsequently when I next run my FC import I'm screwed because the script is trying to use the same pvid. My Flashcopy volumes would be configured in as hdisks 18-23 this time; so the script would have to be changed.

What I was trying to do was effectively leave the FC volumes permanently defined as hdisk17 - hdisk22, so when I configure a new volume it would be assigned hdisk23 for instance.

It is configuring this functionality that is causing the issue.
richu

Posts: 2
Registered: Feb 09, 2007 09:44:39 AM
Re: Flashcopy on FAStT700 with AIX 5.2 (P Series Server)
Posted: Aug 28, 2009 03:45:28 PM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
I might be missing something here but why would you remove the links to the hdisk?
Wouldn't unmounting the file system, varyoffvg the volume group be sufficient?

In testing what I am doing on aix 5.3 right now, that's all I have to do. Granted I'm using the windows gui storage manager right now to recreate the flash copy manually and I actually have the flash copy itself assigned via the SAN to another machine that would be using that data but I am going to start using SMcli when I am confident.

But still, it is keeping the hdisk info intact. I used the -y option on importvg to create the volume group with a name that is recognizable to me instead of vg00 etc.
richu

Posts: 2
Registered: Feb 09, 2007 09:44:39 AM
Re: Flashcopy on FAStT700 with AIX 5.2 (P Series Server)
Posted: Sep 18, 2009 12:13:10 PM   in response to: richu in response to: richu's post
Click to report abuse...   Click to reply to this thread Reply
Scratch that Now I understand what your trying to accomplish and why.
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums