We help IT Professionals succeed at work.

Synch errors when mirroring AIX machine

Helenkinsella
on
4,936 Views
Last Modified: 2013-11-17
Hi

Recently am receiving errpt errors relating to a dodgy hard disk - As such I was hoping to mirror the rootvg and then replace the disk.  Added a PV to the rootvg VG and ran the mirror through smit.  It seems to have created the second copy of the volumes but got a good few errors when it was running the synch.  As I have been having trouble booting I was loathe to reboot and no doubt will need to do this.  Some of the errors related to the swap space which I assume will need to be moved from the rc.boot file, then mirrored and added back to the rc.boot file but am not sure that this relates to all the problems.  Here is the output of lsvg

vg01:
LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT POINT
fslv00              jfs2       201   201   3    open/syncd    /home
loglv00             jfs2log    1     1     1    open/syncd    N/A
rootvg:
LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT POINT
hd5                 boot       1     2     2    closed/stale  N/A
hd6                 paging     40    80    2    open/stale    N/A
hd8                 jfs2log    1     2     2    open/syncd    N/A
hd4                 jfs2       1     2     2    open/syncd    /
hd2                 jfs2       68    136   2    open/syncd    /usr
hd9var              jfs2       1     2     2    open/syncd    /var
hd3                 jfs2       39    78    2    open/stale    /tmp
paging00            paging     40    80    2    closed/syncd  N/A
hd10opt             jfs2       17    34    2    open/stale    /opt
fwdump              jfs2       5     10    2    open/syncd    /var/adm/ras/platform
paging01            paging     40    80    2    open/stale    N/A
paging02            paging     40    80    2    open/stale    N/A


As you can see hd5, hd6, hd3 & hd10opt are all stale as is the boot volume.

What can I do to rectify this and ensure that it is correctly mirrored?  No a reboot is an option to see if it can synch after it comes back up but is there a way to do this without rebooting?

Thanks

Comment
Watch Question

Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks sjm ee - It fails on the synch - Here is the output

# syncvg -v rootvg
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume hd5.
0516-1296 lresynclv: Unable to completely resynchronize volume.
        The logical volume has bad-block relocation policy turned off.
        This may have caused the command to fail.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume hd6.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume hd3.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume hd10opt.
0516-1296 lresynclv: Unable to completely resynchronize volume.
        The logical volume has bad-block relocation policy turned off.
        This may have caused the command to fail.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume paging01.
0516-1296 lresynclv: Unable to completely resynchronize volume.
        The logical volume has bad-block relocation policy turned off.
        This may have caused the command to fail.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume paging02.
0516-932 /usr/sbin/syncvg: Unable to synchronize volume group rootvg.
#



I really feel I need to reboot and re-run the synch but was hoping there would be a way around the reboot.

Thanks

Brian

Author

Commented:
Also strangely enough bad block reallocation is switched on for hd5 yet it give the above error....

It is not switched on hd6 & paging01 & 02

Author

Commented:
Found this which confirms what I need to do to sync the swap device

"modify /sbin/rc.boot to use an alternate paging space.

swapoff /dev/hd6.

chlv -b y hd6 (sets bad block to yes)

swapon /dev/hd6

mirror and sync ran without issue."
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT

Commented:
output of lspv?
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks for helping out guys

output requested as follows

# lspv
hdisk0          00cde85e82d60718                    rootvg          active
hdisk1          00cde85e8d245c51                    vg01            active
hdisk2          00cde85e8d245e71                    vg01            active
hdisk3          00cde85e8d24607f                    vg01            active
hdisk4          00cde85e8d2525d1                    vg01            active
hdisk5          00cde85e8d2527e7                    rootvg          active
#

lvchange could not be found but can use chlv which I presume is the same - Running this allows relocation but if the policy is not to relocate it won't actually do it.

bad block relocation is on for all lv's except hd6, paging01 & paging02

e.g.

bash-2.05b# lslv hd2 | grep BB
STALE PPs:          0                      BB POLICY:      relocatable
bash-2.05b# lslv hd3 | grep BB
STALE PPs:          1                      BB POLICY:      relocatable
bash-2.05b# lslv paging00 | grep BB
STALE PPs:          0                      BB POLICY:      relocatable
bash-2.05b# lslv paging01 | grep BB
STALE PPs:          1                      BB POLICY:      non-relocatable
bash-2.05b# lslv paging02 | grep BB
STALE PPs:          5                      BB POLICY:      non-relocatable
bash-2.05b# lslv hd10opt | grep BB
STALE PPs:          1                      BB POLICY:      relocatable

Would need to umount any device that I need this changed on so may have to reboot.....Blues !!!!
:-(


CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Alas - Tried a reboot on the box to finish the sync'ing and the poor machine never came back up - I have had to reinstall the OS onto another disk and imported the home directories to ease the pain of the lost machine - Thanks again for your help but no joy - Cheers

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.