Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hdisk is missing from rootvg

Status
Not open for further replies.

hraa

IS-IT--Management
Jul 23, 2007
60
0
0
LY
Hi sir
We have p520 server after check the rootvg by using lsvg -p rootvg I saw this:
# lsvg -p rootvg
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk0 missing 542 14 00..00..00..00..14
hdisk1 active 542 131 87..00..31..08..05

and

# lspv
hdisk0 00cb517ebc970d7e rootvg active
hdisk1 00cb517ea5fc6562 rootvg active

and

# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/stale N/A
hd6 paging 8 16 2 open/stale N/A
hd8 jfs2log 1 2 2 open/stale N/A
hd4 jfs2 2 4 2 open/stale /
hd2 jfs2 32 64 2 open/stale /usr
hd9var jfs2 4 8 2 open/stale /var
hd3 jfs2 32 64 2 open/stale /tmp
hd1 jfs2 1 2 2 open/stale /home
hd10opt jfs2 2 4 2 open/stale /opt
lv_oracle jfs2 96 192 2 open/stale /oracle
lv_install jfs2 157 157 1 open/syncd /install
ssys_arch2 jfs 128 128 1 closed/syncd N/A
ssys_arch3 jfs 96 96 1 closed/syncd N/A
cma jfs2 64 128 2 open/stale /cma
orabackuplv jfs2 40 40 1 open/syncd /orabak/SSYS
oraarchivelv jfs2 32 32 1 open/syncd /oraarc/SSYS

I want a first step backup and view contents raw device ssys_arch2 how?

second how to fixed the problem

thanks

 
thanks sir
But the hdisk is local hard dike.
please now i want to take backup for raw device.how?

tarek.
 
yes ,i tried varyonvg rootvg:
# varyonvg 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 hd8.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume hd4.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume hd2.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume hd9var.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume hd3.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume hd1.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume hd10opt.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume lv_oracle.
0516-934 /usr/sbin/syncvg: Unable to synchronize logical volume cma.
0516-932 /usr/sbin/syncvg: Unable to synchronize volume group rootvg.
 
I executed the command
# errpt -a|pg
pg: 0652-121 Cannot create the temporary file.
 
replace the broken hdisk with the new one.

eg.

replacepv [ -f ] {SourcePhysicalVolume | SourcePhysicalVolumeID }
DestinationPhysicalVolume

replacepv [ -R ] dir_name [ DestinationPhysicalVolume ]

Description

The replacepv command replaces allocated physical partitions and the data they
contain from the SourcePhysicalVolume to DestinationPhysicalVolume. The
specified source physical volume cannot be the same as
DestinationPhysicalVolume.
Notes:

1. The DestinationPhysicalVolume size must be at least the size of the
SourcePhysicalVolume.
2. The replacepv command cannot replace a SourcePhysicalVolume with stale
logical volume unless this logical volume has a non-stale mirror.
3. The replacepv command is not allowed on a snapshot volume group or a volume
group that has a snapshot volume group.
 
Hi

but the hdisk1 is corrupted .
how to replace Mr ogniemi

thanks for help me
 
sorry Hdisk0 is corrupted
 
unmirrorvg rootvg from missing disk (or do rmlvcopy for each LV with stale partitions eg. for hd5: "rmlvcopy 1 hd5 hdisk0") and then reducevg removing failed hdisk0. Then phisically remove failed drive and place new one in place of failed one.

eg.


# lsvg -p rootvg
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk0 active 135 26 00..00..00..00..26
hdisk1 missing 135 34 02..00..00..05..27
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/stale N/A
hd6 paging 64 128 2 open/syncd N/A
hd8 jfslog 1 2 2 open/stale N/A
hd4 jfs 2 4 2 open/stale /
hd2 jfs 14 28 2 open/stale /usr
hd9var jfs 2 4 2 open/stale /var
hd3 jfs 2 4 2 open/stale /tmp
hd1 jfs 1 2 2 open/stale /home
hd10opt jfs 1 2 2 open/stale /opt
lg_dumplv sysdump 8 8 1 open/syncd N/A
# unmirrorvg rootvg hdisk1
0516-1246 rmlvcopy: If hd5 is the boot logical volume, please run 'chpv -c <diskname>'
as root user to clear the boot record and avoid a potential boot
off an old boot image that may reside on the disk from which this
logical volume is moved/removed.
0516-1132 unmirrorvg: Quorum requirement turned on, reboot system for this
to take effect for rootvg.
0516-1144 unmirrorvg: rootvg successfully unmirrored, user should perform
bosboot of system to reinitialize boot records. Then, user must modify
bootlist to just include: hdisk0.
# reducevg rootvg hdisk1
# lsvg -p rootvg
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk0 active 135 26 00..00..00..00..26
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 1 1 closed/syncd N/A
hd6 paging 64 64 1 open/syncd N/A
hd8 jfslog 1 1 1 open/syncd N/A
hd4 jfs 2 2 1 open/syncd /
hd2 jfs 14 14 1 open/syncd /usr
hd9var jfs 2 2 1 open/syncd /var
hd3 jfs 2 2 1 open/syncd /tmp
hd1 jfs 1 1 1 open/syncd /home
hd10opt jfs 1 1 1 open/syncd /opt
lg_dumplv sysdump 8 8 1 open/syncd N/A
#
 
...just one of the reasons I'm pleased to be rid of IBM's LVM!

Some days are diamonds, some days are rocks - make sure most are the former.
 

Here a script for remake rootvg
Once, you must have 2 sysdump

#! /bin/ksh

############################################
# Resynchronisation des LV stale de rootvg #
############################################
Machines_dmz=""

machines_mz="kant"

for i in ${machines_mz}
do
echo "Traitement ${i} en cours ..."
ssh ${i} uname -a
ssh ${i} lsvg -l rootvg
ssh ${i} lsvg -p rootvg
ssh ${i} sysdumpdev -P -p /dev/sysdumpnull
ssh ${i} varyonvg rootvg
ssh ${i} syncvg -v rootvg
ssh ${i} sysdumpdev -P -p /dev/lg_dumplv
ssh ${i} synclvodm -Pv rootvg
ssh ${i} lsvg -l rootvg
ssh ${i} lsvg -p rootvg
echo "Traitement ${i} terminé ..."
done


Patrick
 
use lspv I think the option is -l, see if any of the raw lv are not on hdisk1, those are lost, and you should restore or recreate.

Then go through standard mirror replacement of rootvg, you may has to rmlv -f the lv that are only on hdisk0, after you are done, make sure everything is mirrored.

Tony ... aka chgwhat

When in doubt,,, Power out...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top