Link to home
Create AccountLog in
Avatar of Helenkinsella
Helenkinsella

asked on

Synch errors when mirroring AIX machine

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

ASKER CERTIFIED SOLUTION
Avatar of sjm_ee
sjm_ee
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Helenkinsella
Helenkinsella

ASKER

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
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
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."
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of dfke
output of lspv?
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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 !!!!
:-(


SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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