Syncvg

Hello,

I currently migrate a VG from one storage to another one with mirrorvg.

Does anyone know, if a syncvg copy the whole stale pps, regardless if the overlying fs is nearly empty? Or will only the used space copied?

Regards

OK,

What I suggest is you run the syncvg -l <lvname> , it will change the state of LV from stale to Sync. Then you do mirrorvg rootvg hdiskX .

I presume syncvg will do on whole. As you are mirroring the VG.

When you add the LV copy and synchronise them, the image of the PP is copied irrespective of what it contains or doesn't. I'm afraid you will just have to wait.
It doesn't matter if you use mirrorvg or mklvcopy. It has to copy everything. Use:-

lsvg yourvg | grep STALE

... to see how you are getting on. This may get locked out if you are running mirrorvg in the default auto-sync mode. You can ease this by running mirrorvg with the -s (lower case S) flag. This will create the LV copies and then you can synchronise them with syncvg -v yourvg

Make sure when you remove the LV copy, that you specify the hdisk to remove the copy from, else it may well just pick the newly created one.

Caution

Do not interrupt these processes else the ODM and the VG disk information may get out of step leaving you unable to complete the sync. There is a way out, but it's a bit messy.

I hope that this helps,
Robin
Liverpool/Blackburn
UK

1 Like