Operating System - HP-UX
1825751 Members
2713 Online
109687 Solutions
New Discussion

restore mount point from tape backup

 
Mary Capistrant
Advisor

restore mount point from tape backup

Please help.
We have a machine running HPUX 11i that has two physical volumes, which are also volume groups called, vg00 and vg01. Well vg01 died and so was replaced. I am now trying to restore the information onto vg01 from a backup tape. Unfortunately the machine does not have a tape drive so it was backed up over the net with the following command :

/usr/sbin/vxdump -u -0 -b 64 -f - /home | (remsh /usr/bin/dd of=/dev/rmt/0mn bs=64k 2>&1) tee /tmp/tmp.2222
(unfortunately the originator of the script has moved on to another job)

How do I reverse this command and restore the missing data to the newly installed physical volume?
Many thanks,

Mary
3 REPLIES 3
Simon Hargrave
Honored Contributor

Re: restore mount point from tape backup

Make sure your /home is empty, then: -

# cd /home
# (remsh /usr/bin/dd if=/dev/rmt/0mn bs=64k 2>&1) | vxrestore -f - -r -v

the "-f -" part of vxrestore and vxdump is telling it to write to stdout or read from stdin. This is then written/read from the pipe over remsh.

However I'm not sure why the previous administrator wouldn't have used rvxdump, which allows a vxdump to a remote tape drive?
Adisuria Wangsadinata_1
Honored Contributor

Re: restore mount point from tape backup

Hi Mary,

Good day to you !
Use vxrestore to restore, check the man page of vxrestore for more details :

# man vxrestore

Check this url also regarding vxrestore :

http://docs.hp.com/en/5971-4772/apas08.html

Hope this can help you.

Cheers,
AW
now working, next not working ... that's unix
Mary Capistrant
Advisor

Re: restore mount point from tape backup

Many Thanks for the help! I used the script as you suggested. It worked perfectly! Unfortunately when I forwarded the tape to the mount point that I still got an error message about it not being a vxdump tape. So I decided that since the drive has been causing problems for some time now, the backup was probably bad and so I used an older tape and it did repopulate the drive.

PS. I don't know why the backup was done using the vxdump and then the dd. I will try to re-write it using rvxdump. thanks for the suggestion.