You are on page 1of 5

1 datavg datavg

varyon.
A. HA export vg datavg, import vg
# importvg -y datavg hdisk1
0516-022: illegal parameter or string
0516-780: importvg unable to import VG for hdisk1

B.
#lqueryvg Atp hdisk4
LV
1024
Max LVs:
PP Size:
25
2^25 =32M
Free PPs:
6013
LV count:
433
PV count:
1
Total VGDAs: 2
Conc Allowed: 0
MAX PPs per PV 32768
MAX PVs:
1024
Quorum Setting 1
Auto Varyon ?: 0
Conc Autovaryo 0
Varied on Conc 0
Logical:
000442bf0000d60000000122562fc270.1 abmd01.dbf 1
000442bf0000d60000000122562fc270.2 abmx01.dbf 1
000442bf0000d60000000122562fc270.3 ahld01.dbf 1
000442bf0000d60000000122562fc270.4 ahlx01.dbf 1
..
000442bf0000d60000000122562fc270.433 rbs04.dbf 1
Physical:
000442bf560d5854
2 0
Total PPs:
7997
LTG size:
128
HOT SPARE:
0

AUTO SYNC:
0
VG PERMISSION: 0
SNAPSHOT VG: 0
IS_PRIMARY VG: 0
PSNFSTPP:
8448
VARYON MODE: 0
VG Type:
2 Scalable VG concurrent Enhanced?
Max PPs:
32768
Lv pp map,
# lquerylv -L 000442bf0000d60000000122562fc270.405 -Atp hdisk4
LVname:
datang02.dbf
VGid:
000442bf0000d60000000122562fc270
MaxLP:
512
MPolicy:
2
MWrtConsist: 2
LVstate:
1
Csize:
32
PPsize:
25
2^25 =32M
Permissions: 1
Relocation: 1
WrVerify:
2
open_close: 2
stripe_exp: 0
striping_wid 0
NumCopies:
1
BkMirrorCopy 0
LVMAP: 000442bf560d5854:3118 1 ODMtype 000442bf0000d60000000122562fc270.405 1
LVMAP: 000442bf560d5854:3119 1 ODMtype 000442bf0000d60000000122562fc270.405 2
LVMAP: 000442bf560d5854:3120 1 ODMtype 000442bf0000d60000000122562fc270.405 3
LVMAP: 000442bf560d5854:3121 1 ODMtype 000442bf0000d60000000122562fc270.405 4
LVMAP: 000442bf560d5854:3122 1 ODMtype 000442bf0000d60000000122562fc270.405 5
LVMAP: 000442bf560d5854:3123 1 ODMtype 000442bf0000d60000000122562fc270.405 6
LVMAP: 000442bf560d5854:3124 1 ODMtype 000442bf0000d60000000122562fc270.405 7
LVMAP: 000442bf560d5854:3125 1 ODMtype 000442bf0000d60000000122562fc270.405 8
LVMAP: 000442bf560d5854:3126 1 ODMtype 000442bf0000d60000000122562fc270.405 9
LVMAP: 000442bf560d5854:3127 1 ODMtype 000442bf0000d60000000122562fc270.405 10
LVMAP: 000442bf560d5854:3128 1 ODMtype 000442bf0000d60000000122562fc270.405 11
LVMAP: 000442bf560d5854:3129 1 ODMtype 000442bf0000d60000000122562fc270.405 12
LVMAP: 000442bf560d5854:3130 1 ODMtype 000442bf0000d60000000122562fc270.405 13
LVMAP: 000442bf560d5854:3131 1 ODMtype 000442bf0000d60000000122562fc270.405 14
LVMAP: 000442bf560d5854:3132 1 ODMtype 000442bf0000d60000000122562fc270.405 15
LVMAP: 000442bf560d5854:3133 1 ODMtype 000442bf0000d60000000122562fc270.405 16

LVMAP: 000442bf560d5854:3134 1 ODMtype


LVMAP: 000442bf560d5854:3135 1 ODMtype
LVMAP: 000442bf560d5854:3136 1 ODMtype
LVMAP: 000442bf560d5854:3137 1 ODMtype
LVMAP: 000442bf560d5854:3138 1 ODMtype
LVMAP: 000442bf560d5854:3139 1 ODMtype
LVMAP: 000442bf560d5854:3140 1 ODMtype
LVMAP: 000442bf560d5854:3141 1 ODMtype
LVMAP: 000442bf560d5854:3142 1 ODMtype
LVMAP: 000442bf560d5854:3143 1 ODMtype
LVMAP: 000442bf560d5854:3144 1 ODMtype
LVMAP: 000442bf560d5854:3145 1 ODMtype
LVMAP: 000442bf560d5854:3146 1 ODMtype
LVMAP: 000442bf560d5854:3147 1 ODMtype
LVMAP: 000442bf560d5854:3148 1 ODMtype
LVMAP: 000442bf560d5854:3149 1 ODMtype
OverlapIO:
0

000442bf0000d60000000122562fc270.405 17
000442bf0000d60000000122562fc270.405 18
000442bf0000d60000000122562fc270.405 19
000442bf0000d60000000122562fc270.405 20
000442bf0000d60000000122562fc270.405 21
000442bf0000d60000000122562fc270.405 22
000442bf0000d60000000122562fc270.405 23
000442bf0000d60000000122562fc270.405 24
000442bf0000d60000000122562fc270.405 25
000442bf0000d60000000122562fc270.405 26
000442bf0000d60000000122562fc270.405 27
000442bf0000d60000000122562fc270.405 28
000442bf0000d60000000122562fc270.405 29
000442bf0000d60000000122562fc270.405 30
000442bf0000d60000000122562fc270.405 31
000442bf0000d60000000122562fc270.405 32

LV mapfile:
LV mapfile
hdisk4:3118-3149
->(lv 1-32 )
hdisk4:2240-2259
->lv 33-52
hdisk4:122
->lv 53
partition,
C lqueryvg, lquerylv, /etc/filesystems
D smit vg vg
Add a Scalable Volume Group
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
VOLUME GROUP name
[datavg]
Physical partition SIZE in megabytes
32
(2^25)
* PHYSICAL VOLUME names
[hdisk4]
Force the creation of a volume group?
yes
+
Activate volume group AUTOMATICALLY
no
at system restart?
Volume Group MAJOR NUMBER
[58]
Create VG Concurrent Capable?
enhanced concurrent
Max PPs per VG in kilobytes
32
+
Max Logical Volumes
1024
+

+
+
+
+#
+


vg.
E. VG lvmap lv.
#mklv y abmd01.dbf m abmd01.dbf.map t raw datavg 1 ( -t
)
F. lv
oracle

1. Restore /etc/filesystems or add the missing stanzas manually.


*Do not mount the filesystems yet.*

2. For each filesystem LV, update the LVCB with the log and label information:
chfs -a log=/dev/loglv02 <mountpoint>
chlv -L <mountpoint> data1
...

3. Run a fsck on each filesystem. This is the critical step if the command fails because it can't
find the superblock, then the LVs were not re-created correctly, stop and check your map files.
If the jfslog LV was not re-created correctly, fsck will not be able to replay the log and you will
probably lose some data. Consider stopping and double-checking the map files before answering
yes to the fsck "fix" questions.
Also, if filesystems were active at the time of the crash, fsck might find unrecoverable errors on
some inodes or blocks, your only option here is to fix these errors at the risk of losing some inodes
(the price for not having a tape backup).
If errors were fixed, re-run fsck until there are no errors.

4. When fsck run without errors on each FS, mount the filesystems. If errors were fixed during

fsck, check the lost+found directories, they might contain missing files or directories you can
salvage.
.

http://unix.derkeiler.com/Newsgroups/comp.unix.aix/2006-04/msg00174.html

You might also like