Link to home
Start Free TrialLog in
Avatar of amirs80
amirs80Flag for Pakistan

asked on

AIX non rootvg backup of two system

can we take the backup of non rootvg of two systems on one tape with savevg command, can rmt0.1 or rmt0.2 or rmt0.3 help in these problems. please tell the solutions
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image


Hi,
you can use rmt0.1 for that purpose -
savevg -i -f /dev/rmt0.1 [firstvg]
savevg -i -f /dev/rmt0.1 [secondvg]
 
But when restoring take care to correctly position the tape i.e.
mt -f /dev/rmt0.1 fsf 1; restvg...  [secondvg]
wmp
Avatar of amirs80

ASKER

Dear woolmilkporc
is it for two separate LPARs?
as i have already done it but it shows only the second backup.
Hi amirs80,
you're right, the tape position will most probably not "survive" the dLPAR movement of the tape device.
So use for your first LPAR
savevg -i -f  /dev/rmt0 [vg_of_first_lpar]
and for the second
mt -f /dev/rmt0.1 fsf 1;  savevg -i -f /dev/rmt0.1 [vg_of_second_lpar]

and for the third

mt -f /dev/rmt0.1 fsf 2;  savevg -i -f /dev/rmt0.1 [vg_of_third_lpar]
and so on.
Some caveats -
1) Of course you must keep track of which vg is saved at which file position.
2) Note that if you use savevg to backup a rootvg, the tape will contain four images instead of only one, although the tape will not be bootable. The actual backup is the fourth image.
3) Should the tape position actually "survive" the dLPAR movement (I don't think so), use
mt -f /dev/rmt0 rewind
before proceeding.
 4) As opposed to restore, which has an -s flag to indicate the position of the desired backup, restvg lacks this flag, so you must use
mt -f /dev/rmt0.1 fsf 1 ; restvg ...
to find e.g. the backup of your second vg.
 
Good Luck!
 
wmp

 
 
 
Avatar of amirs80

ASKER

it only gives the last vg backup, please help
To be sure ...
you did all the 'mt fsf ...' I suggested?
wmp
 
Avatar of amirs80

ASKER

sorry i don't understand
Avatar of amirs80

ASKER

it gives

# tctl -f /dev/rmt0.1 fsf 1
/dev/rmt0.1 fsf 1 failed: There is an input or output error.
# tctl -f /dev/rmt0.1 fsf 2
/dev/rmt0.1 fsf 2 failed: There is an input or output error.
# tctl -f /dev/rmt0.1 fsf 3
/dev/rmt0.1 fsf 3 failed: There is an input or output error.
# tctl -f /dev/rmt0.1 fsf 4
/dev/rmt0.1 fsf 4 failed: There is an input or output error.
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial