Quote:
Originally Posted by
lo-lp-kl
[...]
I try again the varyonvg again but I got the same error
varyonvg ihslv
0516-008 varyonvg: LVM system call returned an unknown
error code (3).[...]
That's odd. Using fsck or recreating the LV would both be disruptive to service. Given that you use IHS with that stale mirror an online repair should still be possible. Hence next thing I would try is
- if you have two disks in your server that can be used by rootvg:
breaking the LV mirror and mirroring the LV anew. If you did not already - backup your FS data (e.g. tar locally to another filesystem) before you start.
# rmlvcopy ihslv 1
Important: do not give any information about from which disk the mirror copy should be removed but let LVM sort this out. LVM should detect and keep the good copy. Immediately after removing the copy you can mirror the LV again:
# mklvcopy ihslv 2
# varyonvg rootvg
wait till sync'd, check.
- if you have three disks (could be connected temporarily) in your server that can be used by rootvg:
Extend rootvg to this disk and make a third mirror copy on the third disk
# extendvg rootvg hdisk2
# mklvcopy ihslv 3 hdisk2
# varyonvg rootvg
wait till sync'd! Only then do
# rmlvcopy ihslv 2 hdisk1
# rmlvcopy ihslv 1 hdisk0
Then rebuild copies on the original disks:
# mklvcopy ihslv 2 hdisk0
# mklvcopy ihslv 3 hdisk1
# varyonvg rootvg
wait till sync'd, check, if OK remove third mirror copy
# rmlvcopy ihslv 2 hdisk2
Reduce rootvg.
# reducevg rootvg hdisk2