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!

savevg and restvg

Status
Not open for further replies.

hoang06

Technical User
Jan 6, 2003
15
CA
Hi,
I've tried to copy a user's vg, from one server to another. For example, server 1 has vg00 which comprise of hdisk2 and hdisk3. On server 2, I have 4 disks which has the same amount of space for vg00.
On server 1 I use this command: savevg -i vg00.
When I want to restore it on server 2, where vg00 has not been created, I use this command: restvg -f/dev/rmt0 hdsik3 hdisk4 hdisk4 hdsik5.

I got this error message:
restore: 0511-158 cannot open /dev/rmt0. The device is not ready for operation.

I just restore rootvg on disk1 and 2, it worked fine.
Does anybody have any ideas what when wrong?
Do I have to play with /tmp/vgdata/vg00/vg00.data on the tape?

Thanks
 

No, it's a problem with the tape drive. Does it show in 'lscfg'??

Try diag to test the drive.

Cheers Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Yes it does.
On server 1 the block size of the tape drive is 1024, on server 2 is 0. I changed it to 1024 and rebooted the server.
I tried restvg and through smit and I get:
0512-025 restvg: The image data file does not exist.

I though /tmp/vgdata/vg00/vg00.data was copied with the tape when I issued the command savevg -i.

thks
 
Are the two servers on the same network? What about doing a copy using NFS from the old server to the new server? Be sure to use the -p parameter for the cp command. If you have a slow network, it may take a while, but it works fairly easily.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top