Operating System - HP-UX
1833847 Members
2056 Online
110063 Solutions
New Discussion

backup of 40 GB data on Tape

 
SOLVED
Go to solution
Khalid Shakoor
Regular Advisor

backup of 40 GB data on Tape

Hi
I want to take backup of vg01 on tape. The size of VG01 is more then 40GB and it is not possible by using tar. Any one guide me how’s it possible.
And what is the Scenario when I restore data

Thanks in Advance
4 REPLIES 4
V. Nyga
Honored Contributor
Solution

Re: backup of 40 GB data on Tape

Hi,

if you want recovery too, SAM is a good possibility. Check the 'Backup and Recovery' menu of sam.
If you start backup interactively, you can also use more than one tape - the process is asking you to change tapes.

For recovering you tell the program the files you want to recover - choose if you want to replace or store at a different place.

It's very simple.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Jannik
Honored Contributor

Re: backup of 40 GB data on Tape

If this is your tapeinfo:
# ioscan -funC tape
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 0 0/1/1/1.1.0 stape CLAIMED DEVICE HP C5683A
/dev/rmt/0m /dev/rmt/c3t1d0BESTn
/dev/rmt/0mb /dev/rmt/c3t1d0BESTnb
/dev/rmt/0mn /dev/rmt/c3t1d0DDS
/dev/rmt/0mnb /dev/rmt/c3t1d0DDSb
/dev/rmt/c3t1d0BEST /dev/rmt/c3t1d0DDSn
/dev/rmt/c3t1d0BESTb /dev/rmt/c3t1d0DDSnb


If the volumegroup vg01 is one lvol let say it is /dev/vg01/lvol1 and it is mounted on lets say /oracle.

Manually go to the /oracle directory, then perform your tar using a relative pathname.

cd /oracle
tar cvf /dev/rmt/0m . # remember the period

Then lets say you want to restore the active into /oraclenew on a new lvol in anothor volumegrp.

pvcreate /dev/rdsk/cXtXdX
mkdir /dev/vg02
mknod /dev/vg02/group c 64 0x020000
vgcreate vg02 /dev/dsk/cXtXdX
lvcreate -L 40960 vg02
newfs -F vxfs -o largefiles /dev/vg02/rlvol1
mkdir /oraclenew
mount -F vxfs /dev/vg02/lvol1 /oraclenew

Now you are ready to retore your archive.

cd /oraclenew
tar cvf /dev/rmt/0m # no period required. tar uses the pathname saved during the tarball creation.

If you have more than one lvol in vg01 you need to use the "u" option for tar to append it to the allready created archive.

NOT TESTET:

#!/usr/bin/ksh
# creates one archive for multible lvols
# i hope :-)

RUN=0

for i in $(vgdisplay -v vg01 | awk '/LV Name/ {print $3}')
do
PATH=$(bdf $i | awk '/dev/{print $6}')
if [ $RUN -eq "0" ]
then
cd $PATH
tar cvf /dev/rmt/0m .
RUN=1
else
cd $PATH
tar cvuf /dev/rmt/0m .
fi
done

jaton
Steven Schweda
Honored Contributor

Re: backup of 40 GB data on Tape

> [...] it is not possible by using tar. [...]

Which "tar"?

http://www.gnu.org/software/tar/

http://www.gnu.org/software/tar/manual/tar.html#Formats
Khalid Shakoor
Regular Advisor

Re: backup of 40 GB data on Tape

Issue Resolved by using SAM

Thanks