ITEM: BM8596L
/usr/sbin/editvginfo[226]: test: argument expected
Env:
  C10 AIX 3.2.5  sysback 3.3.3.0  (server)
  J30 AIX 4.1.4  sysback 3.3.3.6  (client)
Desc:
  Customer creates a logical volume backup on his server system
  Then moves the tape over to his client system and runs the
  remakevg -f /dev/rmt0 -l lv00
  It fails with this error message:
Processing .. please wait ..
Reading volume label ..
Reading table of contents ..
Verifying the logical volume information ..
/usr/sbin/editvginfo[226]: test: argument expected
No inconsistencies were found.
Do you wish to view or change the logical volume information (y/n)?
I tracted the problem down to a line that was recently added to the
vginfo entry for the mkjfsback and mklvback backups at 
sysback 3.3.3.2
VG rootvg x 4  x x x
It is failing on this line in the script /usr/sbin/editvginfo
-------------------------------------------------------------
 grep "\^VG $vgname " $VGINFO | read x x x oldppsize x
                        \# Compare old and new ppsize
                        if [ $oldppsize -ne $ppsize ]
So if a customer is running sysback 3.3.3.1 or lower and tried to recreate
a logical volume on a system running sysback 3.3.3.2 or higher it will
fail with the above error message.   
So one method to correct this problem is this:
grep "\^VG $vgname " $VGINFO | read x x x oldppsize x
if [ $oldppsize = "" ]     \#ADD THIS LINE
then oldppsize=ppsize      \#ADD THIS LINE
fi                         \#ADD THIS LINE
if [ $oldppsize -ne $ppsize ]
Fixed in sysback 3.3.3.7
Syntax error at line 226 of editvginfo command appears
when recreating a single logical volume from a backup
taken at a sysback level prior to 3.3.3.2. (editvginfo)
Will send out the fix to the customer
Support Line: /usr/sbin/editvginfo[226]: test: argument expected ITEM: BM8596L
Dated: August 1996 Category: N/A
This HTML file was generated 99/06/24~13:30:21
Comments or suggestions?
Contact us