Operating System - HP-UX
1833695 Members
3520 Online
110062 Solutions
New Discussion

Re: Restoring using VXRESTORE

 
MIDAS
Occasional Advisor

Restoring using VXRESTORE

I am after some help regarding using vxrestore to restore from tape that was created with the following command:-

/usr/sbin/vxdump 0ubdsf 126 64000 999999 /dev/rmt/cxtydzBESTn

I didn't setup the backup process - I've just lifted the above line out of the script that runs.... so am unsure what all the 0ubdsf etc options are...

I understood (reading the man pages) that a vxrestore -r -f/dev/rmt/cxtydzBESTn would do the job....

Problem is that we have just ignited to a different system with different disk sizes to the original - but all have adequate capacity etc. Do I need to worry about this (or do I need to create similar disks with the correct extents, block sizes etc).

Also, I believe (from the backup logs) that the following was backed up:-

/dev/vg01/lvol1 mounted on /u09
/dev/vg01/lvol2 mounted on /u02
/dev/vg01/lvol4 mounted on /u03
/dev/vg01/lvol5 mounted on /u05
/dev/vg01/lvol6 mounted on /u06
/dev/vg01/lvol7 mounted on /u07
/dev/vg01/lvol9 mounted on /opt
/dev/vg02/lvol1 mounted on /var/opt
/dev/vg03/lvol1 mounted on /u08
/dev/vg04/lvol1 mounted on /u01

so running vxrestore -r from / should restore all the files back right??? However, it seems that all that happens is the system attempts to restore to "/" and not into the mount points (ie /u01 /u08 etc) - so it runs for 4 seconds or so, then errors with "no space on device" message....

Any help would be greatly appreciated.
4 REPLIES 4
Stephen Keane
Honored Contributor

Re: Restoring using VXRESTORE

0 = dump level, for incremental dumps in this case the whole filesytem not a delta

u = If the dump completes successfully, write in /var/adm/dumpdates the date when the dump started.

b = block size [126]

d = density (bpi) [64000]

s = size of dump tape (feet) [999999]

f = where to write the dump [/dev/rmt/cxtydzBESTn]

If you want to see what is on the tape (without restoring it)

vxrestore tf /dev/rmt/cxtydzBESTn



Stephen Keane
Honored Contributor

Re: Restoring using VXRESTORE

Are you sure that all the filsystems you listed above are available and mounted on the target server? If so, it may be that vxrestore is writing to a log file?
MIDAS
Occasional Advisor

Re: Restoring using VXRESTORE

Thanks for the explanation of the switches.

I've been able to change into each of the directories and space count through the backed up files using the mt command and restore a mount point at a time (each of the mount points had been backed up using a separate vxdump command). Using the vxrestore -r from within / would have been a lot easier but if this works (I'm nearly done now) then at least I'll achieve what I need....
MIDAS
Occasional Advisor

Re: Restoring using VXRESTORE

Thanks for the explanation of the switches.

I've been able to change into each of the directories and space count through the backed up files using the mt command and restore a mount point at a time (each of the mount points had been backed up using a separate vxdump command). Using the vxrestore -r from within / would have been a lot easier but if this works (I'm nearly done now) then at least I'll achieve what I need....