Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi, Can anyone tell me how can I

Status
Not open for further replies.

amins

Technical User
Jan 17, 2002
40
BE
Hi,

Can anyone tell me how can I save two volume groups in one tape?

Many thanks
 
You have 2 options:

1. Purchase "Sysback". It can save many volume groups on a tape and even span tapes.
2. Do the following:
# mt -f /dev/rmt0 rewind
# savevg -p -f /dev/rmt0 VG1
# savevg -p -f /dev/rmt0.1 VG2

To restore VG1, do
# restore -f /dev/rmt0 [file_spec]

To restore VG2, do
# mt -f /dev/rmt0 rewind
# mt -f /dev/rmt0.1 fsf 1
# restore -f /dev/rmt0.1 [file_spec]

I'm not sure about the "fsf 1" - it might be a number other than 1.

Bill.
 
Assuming you have sufficient space on your tape, whilst doing the first save, specify the 'no-rewind' version of your device for the save. This is usually identifiable because the name ends with an 'n', for example strn, exabyten etc. Should you need to subsequently restore from the second tape, use:

mt -f /dev/whatevern fsf 1 (again, specify the 'n' version)

to move through the tape to the second logical tape on the cartridge, then start your restore. Hope this helps.
 
Oops, sorry, I forgot AIX uses the '.1' notation rather than the 'n' at the end of the device name!

Bill is it not the case that the first:

# savevg -p -f /dev/rmt0 VG1

in your reply should use the rmt0.1 version rather than rmt0? Cheers.
 
Nice catch Ken - I typo'd that. Indeed, the second option should say:

# mt -f /dev/rmt0 rewind
# savevg -p -f /dev/rmt0.1 VG1
# savevg -p -f /dev/rmt0.1 VG2

Thanks for catching that!

Bill :)
 
No problem - years of cricket and the attendant broken fingers!!! ;-)
 
dsfgdfgdddgdfgdfg
dfgdfgdfgdf

dfgdfgd
gdgfdgf
fddfgdfgd
fgdgfd
gdgfdgfdgd
dfg
df
gd
fg
dgd
gd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top