ITEM: BY8374L
0516-796 mkvg: Making hdisk3 a physical volume. Please wait
Question:
Env:
AIX 4.1.4
RISC 340
sysback 4.1.1.2
Problem:
A customer remove a disk and added a new disk to rootvg.
The customer booted from tape and tried to reinstall from tape
When they were trying to restore they got this error message:
Making rootvg volume group on disks: hdisk3
0516-796 mkvg: Making hdisk3 a pjysical volume. Please wait.
/usr/sbin/mkvg[308]: chdev: not found
0516-862 mkvg: Unable to create volume group.
Error creating rootvg - using defaults
Same error messages as above.
It appears this problem will always occur when the disk does
not have a pvid (pity)
How was this handled at sysback 3?
Was there a chdev command at sysback 3?
HERE ARE TWO WORKAROUNDS TO THIS PROBLEM
--------------------------------------------------------------
THIS ONE WILL REQUIRE A ANOTHER SYSTEM RUNNING THE SAME LEVEL
OF AIX
--------------------------------------------------------------
1. Choose the option to perform system maintenance once
the mkvg command failed.
2. From another system running the same level of AIX do this
cd /usr/lib/methods
backup -ivq
ucfgdevice
chgdisk
cfgscdisk
ctrl d
restore -Tvq
3. cd /usr/lib/methods
restbyname -xvq
4. Putting the pvid on the disk
/usr/lib/methods/ucfgdevice -l hdisk\#
/usr/lib/methods/chgdisk -l hdisk\# -a pv=yes
/usr/lib/methods/cfgscdisk -l hdisk\#
NOTE: If your commands are different than the ones above, replace
the command with the output you got from step 4.
Do this for all the newly replaced disk in rootvg.
5. Remaking the volume group
mkvg -f -y rootvg hdisk\# hdisk\#
varyonvg rootvg
6. exit
------------------------
WORKAROUND TWO
DONE ON THE SAME SYSTEM
------------------------
1. Choose the option to perform system maintenance after
the mkvg has failed
2. Getting the tape drive in the postion for reading the hd2
(/usr image)
sbdevice -f 1 /dev/rmt\#.1
sbread -H /dev/rmt\#.1 (Make sure hd2 is the back image)
3. cd /usr
4. Get all the methods for the disk that is failed on. This will
need to be run on all disk in rootvg that were newly replaced.
"DISK THAT DON'T HAVE A PVID IN ROOTVG"
lsdev -Cl hdisk\# -r Change
lsdev -Cl hdisk\# -r Configure
lsdev -Cl hdisk\# -r Unconfigure
Remember instead of /etc/methods it is /usr/lib/methods
In our case it was chgdisk, cfgscdisk and ucfgdevice
5. sbread /dev/rmt0.1 | restbyname -xvqf- ./lib/methods/chgdisk
./lib/methods/cfgscdisk ./lib/methods/ucfgdevice
6. Putting the pvid on the disk
/usr/lib/methods/ucfgdevice -l hdisk\#
/usr/lib/methods/chgdisk -l hdisk\# -a pv=yes
/usr/lib/methods/cfgscdisk -l hdisk\#
NOTE: If your commands are different than the ones above, replace
the command with the output you got from step 4.
Do this for all the newly replaced disk in rootvg.
7. Remaking the volume group
mkvg -f -y rootvg hdisk\# hdisk\#
varyonvg rootvg
8. Setting the tape back in postion
sbdevice -r /dev/rmt\#
sbdevice -f 5 /dev/rmt\#.1
sbread -H /dev/rmt\#.1
It should state it is the backup of hd4
8. exit
This corrected the problem. This is fixed in
sysback 4.1.1.3
Action Plan:
Sending sysback 4.1.1.4 to the customer
Support Line: 0516-796 mkvg: Making hdisk3 a physical volume. Please wait ITEM: BY8374L
Dated: April 1997 Category: N/A
This HTML file was generated 99/06/24~13:30:19
Comments or suggestions?
Contact us