Hi again,
Are you sure that your tape drive is not broken?
If the tape drive was correctly assigned to your partition, loaded with a tape and not in use by another process, there shouldn't be errors like the above. If in doubt, you can always issue '
tctl -f /dev/rmt0 reset' and watch what happens.
Here's a description of the whole 'savevg' procedure in detail:
- Assign a free tape drive to your first partition using your HMC.
- Issue 'cfgmgr' in that partition. Make sure the drive has actually become rmt0!
- Load an empty tape, make sure the drive is 'ready'.
- Issue 'tctl -f /dev/rmt0 rewind' as a precaution.
- Issue 'savevg -i -f /dev/rmt0 [vg_of_first_lpar]'
- Issue 'tctl -f /dev/rmt0 rewoffl'
Now detach the tape drive from your first partition, using the appropriate 'rmdev' commands. I assume you are familiar with how to do this.
- Assign the tape drive to your second partition using your HMC.
- Issue 'cfgmgr' in that partition. Make sure the drive has actually become rmt0!
- Load the tape from above, make sure the drive is 'ready'.
- Issue 'tctl -f /dev/rmt0 rewind' as a precaution.
- Issue 'tctl -f /dev/rmt0.1 fsf 1'
- Issue 'savevg -i -f /dev/rmt0.1 [vg_of_second_lpar]'
- Issue 'tctl -f /dev/rmt0 rewoffl'
This way it should work, if there's no hardware problem, however.
Keep in mind that you'll have to space forward the tape one file ('tctl -f /dev/rmt0.1 fsf 1') before attempting to restore the second vg!
wmp