Você está na página 1de 5

hpux v11.

11 Mirror
2RP7410mirrorMC
OS HP_UX v11.11
18.2GB*2
MirrorRP7410node1MC/SGRP7
node2mirror
Boot terminated.
---- Main Menu --------------------------------------------------------------Command
Description
----------------BOot [PRI|ALT|]
Boot from specified path
PAth [PRI|ALT] []
Display or modify a path
SEArch [DIsplay|IPL] []
Search for boot devices
COnfiguration menu
Displays or sets boot values
INformation menu
Displays hardware information
SERvice menu
Displays service commands
DIsplay
Redisplay the current menu
HElp [
]
Display help for menu or command
RESET
Restart the system
---Main Menu: Enter command or menu > sea
Searching for potential boot device(s)
This may take several minutes.
To discontinue search, press any key (termination may not be immediate).
Path# Device Path (dec) Device Path (mnem) Device Type
----- ----------------- ------------------ ----------P0
0/0/1/1.15
intscsia.15
Random access media

IODC
Rev
---1

P1

0/0/2/1.15

Random access media

P2

0/2/0/0.8

Random access media

13

intscsib.15

Main Menu: Enter command or menu > bo p0


Interact with IPL (Y, N, or Cancel)?>
Illegal response
Interact with IPL (Y, N, or Cancel)?> y
Booting...
Boot IO Dependent Code (IODC) revision 1
HARD Booted.
ISL Revision A.00.43 Apr 12, 2000
ISL> ls
Utilities on this system are:
filename type start
size
created
=====================================================
HPUX
-12928 584
848
02/05/10 16:25:44
ISL> hpux -lq
Boot

: disk(0/0/1/1.15.0.0.0.0.0;0)/stand/vmunix
10743808 + 2240512 + 1346192 start 0x1f19e8
alloc_pdc_pages: Relocating PDC from 0xf0f0000000 to 0x1fb00000.

#ioscan -fnC disk


Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk
1 0/0/1/1.15.0 sdisk CLAIMED
DEVICE
HP 18.2GMAM3184MC
/dev/dsk/c1t15d0 /dev/rdsk/c1t15d0
disk
2 0/0/2/1.15.0 sdisk CLAIMED
DEVICE
HP 18.2GMAM3184MC
/dev/dsk/c3t15d0 /dev/rdsk/c3t15d0
mirror
#pvcreate -fB /dev/rdsk/c3t15d0
#vgextend /dev/vg00 /dev/dsk/c3t15d0
#vgdisplay -v vg00 8LVc3t15d0vg00
#mkboot -l /dev/dsk/c3t15d0 c3t15d0LIFLIF
#lifls -l /dev/rdsk/c1t15d0
#lifls -l /dev/rdsk/c3t15d0
#for i in 1 2 3 4 5 6 7 8
>do
>lvextend -m 1 /dev/vg00/lvol$i /dev/dsk/c3t15d0
>done
The newly allocated mirrors are now being synchronized. This operation will take
some time. Please wait ....
Logical volume "/dev/vg00/lvol1" has been successfully extended.Volume
configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
The newly allocated mirrors are now being synchronized. This operation
take some time. Please wait ....
Logical volume "/dev/vg00/lvol2" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in
/etc/lvmconf/vg00.conf
The newly allocated mirrors are now being synchronized. This operation
take some time. Please wait ....
Logical volume "/dev/vg00/lvol3" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in
/etc/lvmconf/vg00.conf
The newly allocated mirrors are now being synchronized. This operation
take some time. Please wait ....
Logical volume "/dev/vg00/lvol4" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in
/etc/lvmconf/vg00.conf
The newly allocated mirrors are now being synchronized. This operation
take some time. Please wait ....
Logical volume "/dev/vg00/lvol5" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in
/etc/lvmconf/vg00.conf
The newly allocated mirrors are now being synchronized. This operation
take some time. Please wait ....
Logical volume "/dev/vg00/lvol6" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in
/etc/lvmconf/vg00.conf
The newly allocated mirrors are now being synchronized. This operation
take some time. Please wait ....
Logical volume "/dev/vg00/lvol7" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in
/etc/lvmconf/vg00.conf
The newly allocated mirrors are now being synchronized. This operation
take some time. Please wait ....
Logical volume "/dev/vg00/lvol8" has been successfully extended.

Group
will

will

will

will

will

will

will

Volume Group configuration for /dev/vg00 has been saved in


/etc/lvmconf/vg00.conf
#mkboot -a "hpux -lq(;0)/stand/vmunix" /dev/rdsk/c3t15d0
#lvlnboot -b /dev/vg00/lvol1
#lvlnboot -s /dev/vg00/lvol2
#lvlnboot -r /dev/vg00/lvol3
#lvlnboot -d /dev/vg00/lvol2
#setboot -p 0/0/1/1.15.0
#setboot -a 0/0/2/1.15.0
MirrorsetbootMirror
c3t15d0vgdisplay
# vgdisplay
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t15d0":
The specified path does not correspondto physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Volume groups --VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 1
Max PE per PV 4350
VGDA 2
PE Size (Mbytes) 4
Total PE 4340
Alloc PE 3124
Free PE 1216
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
c3t15d0lvreduce -m 0 /d
/dev/dsk/c3t6d0c3t6d0MirrorHPpv_keyMirror
# lvdisplay -kv /dev/vg00/lvol1
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t6d0": The
specified path does not correspondto physical volume attached to this volume
group lvdisplay: Warning: couldn't query all of the physical volumes.
--- Logical volumes --LV Name /dev/vg00/lvol1
VG Name /dev/vg00
LV Permission read/write LV Status available/stale
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 300
Current LE 75
Allocated PE 150
Stripes 0 Stripe Size (Kbytes) 0 Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default
--- Distribution of logical volume --PV Name LE on PV PE on PV
/dev/dsk/c3t5d0 75 75
--- Logical extents --LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 0 00000 stale 1 00000 current

00001 0 00001 stale 1 00001 current


00002 0 00002 stale 1 00002 current
00003 0 00003 stale 1 00003 current
...... ......
PV1pv_key=0
PVstalePVVG00-k
# lvreduce -k -m 0 /dev/vg00/lvol1 0
Logical volume "/dev/vg00/lvol1" has been successfully reduced.
lvlnboot: Warning: couldn't query physical volume "/dev/dsk/c3t15d0":
The specified path does not correspondto physical volume attached to
this volume group
lvlnboot: Warning: couldn't query all of the physical volumes.
vgcfgbackup: Warning: couldn't query physical volume "/dev/dsk/c3t15d0":
The specified path does not correspondto physical volume attached to
this volume group
vgcfgbackup: Warning: couldn't query all of the physical volumes.
vgcfgbackup: Couldn't query physical volume "/dev/dsk/c3t15d0":
The specified path does not correspondto physical volume attached to
this volume group
vgcfgbackup: Couldn't query physical volume "/dev/dsk/c3t15d0":
The specified path does not correspondto physical volume attached to this
volume group
lvol1lvdisplay
# lvdisplay -kv /dev/vg00/lvol1|more
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t15d0":
The specified path does not correspondto physical volume attached to
this volume group
lvdisplay: Warning: couldn't query all of the physical volumes.
--- Logical volumes --LV Name /dev/vg00/lvol1
VG Name /dev/vg00
LV Permission read/write LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 300
Current LE 75 Allocated PE 75
Stripes 0 Stripe Size (Kbytes) 0 Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default
--- Distribution of logical volume --PV Name LE on PV PE on PV
/dev/dsk/c3t5d0 75 75
--- Logical extents --LE PV1 PE1 Status 1
00000 1 00000 current
00001 1 00001 current
00002 1 00002 current
00003 1 00003 current
...... ......
c3t15d0vg007LV
vg00vgreducec3t15d0PV
# vgreduce -f vg00
vgreduce: Couldn't query physical volume "/dev/dsk/c3t15d0":
The specified path does not correspondto physical volume attached to
this volume group
PV with key 0 sucessfully deleted from vg vg00
Repair done, please do the following steps.....:
1. save /etc/lvmtab to another file
2. remove /etc/lvmtab

3. use vgscan(1m) -v to re-create /etc/lvmtab


4. NOW use vgcfgbackup(1m) to save the LVM setup
vgreduceLVM
# cp /etc/lvmtab /etc/lvmtab.bck
# rm -f /etc/lvmtab
# vgscan -v
Creating "/etc/lvmtab".
vgscan: Couldn't access the list of physical volumes for volume group
"/dev/vg00".
Physical Volume "/dev/dsk/c0t0d0" contains no LVM information
/dev/vg00
/dev/dsk/c1t15d0
Scan of Physical Volumes Complete.
#vgcfgbackup
#setboot -p 0/0/1/1.15.0
#setboot -a 0/0/2/1.15.0
Mirrorvgdisplay,lvdisplay

Mirror
1pv_key
lvdisplay -kv /dev/vg00/lvol1
......
lvdisplay -kv /dev/vg00/lvol8
2pv_keyLVMirror
for i in 1 2 3 4 5 6 7 8
do
lvreduce -k -m 0 /dev/vg00/lvol$i 0 --0pv_key

done
3vgreduce -f /dev/vg00
4cp /etc/lvmtab /etc/lvmtab.bck
5rm -f /etc/lvmtab
6vgscan -v
7vgcfgbackup
8setboot -p

Você também pode gostar