[SunHELP] vxdump

Lund, Dennis sunhelp at sunhelp.org
Tue Jan 16 16:14:54 CST 2001


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C08009.C52F73BA
Content-Type: text/plain;
	charset="iso-8859-1"

I just use the following line in a dump script:

vxdump -0uvf /dev/rmt/0n /dev/rdsk/c0t2d0s4	# /data1

0 - level 0 dump (full dump)
u - update /etc/dumpdates
v - verbose
f - where to dump to
/dev/rmt/0n - dump device
/dev/rdsk/c0t2d0s4 - file system to be dumped

Also take a look at the man page for vxdump.

Dennis L. Lund

-----Original Message-----
From: Kovalev, Ivan [mailto:IKovalev at ibes.com]
Sent: Tuesday, January 16, 2001 4:09 PM
To: 'sunhelp at sunhelp.org'
Subject: RE: [SunHELP] vxdump


Here is a portion of my script that backs up a system drive using ufsdump.
$ cat mirrall
#!/bin/ksh
# mirror all file systems on sys disk
#
# 03/16/98              IK
 
logfile=/export/home/ibesoper/logs/mirrall.log
#
#==========================================================
date > $logfile
 
echo "dumping
------------------------------------------------------1----root" >> $logfile
newfs /dev/rdsk/c0t1d0s0                                                >>
$logfile 2>&1
df -k | grep /mnt >/dev/null && umount /mnt
mount /dev/dsk/c0t1d0s0 /mnt
(ufsdump 0f  -  /dev/rdsk/c0t0d0s0  |  (cd /mnt; ufsrestore rf -))       >>
$logfile 2>&1
# move vfstab file 
        cp /mnt/etc/vfstab.disk1 /mnt/etc/vfstab
        ###########################################
umount /mnt
echo "***************** copy boot block *********** "    >> $logfile
cd /usr/platform/`uname -i`/lib/fs/ufs
installboot bootblk /dev/rdsk/c0t1d0s0                  >> $logfile 2>&1
date >> $logfile
cd /
 
echo "dumping ------------------------------------------------------2----
/usr/openwin" >> $logfile
newfs /dev/rdsk/c0t1d0s1
>> $logfile 2>&1
mount /dev/dsk/c0t1d0s1 /mnt
(ufsdump 0f  -  /dev/rdsk/c0t0d0s1  |  (cd /mnt; ufsrestore rf -))
>> $logfile 2>&1
cd /
umount /mnt
 
Hope that helps.

-----Original Message-----
From: Naser Ali [mailto:Ali.Naser at irs.gov]
Sent: Tuesday, January 16, 2001 3:11 PM
To: sunhelp at sunhelp.org
Subject: [SunHELP] vxdump



Q. Why one should not use tar for backup of multiterabyte file systems..? 

Has any one ever used "vxdump" in a script..? 
Would really appreciate if some one is willing to share it. 
TIA 


_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp


     - - - - - - -  Appended by Scientific-Atlanta, Inc.  - - - - - - -  
This e-mail and any attachments may contain information which is
confidential, proprietary, privileged or otherwise protected by law. The
information is solely intended for the named addressee (or a person
responsible for delivering it to the addressee). If you are not the intended
recipient of this message, you are not authorized to read, print, retain,
copy or disseminate this message or any part of it. If you have received
this e-mail in error, please notify the sender immediately by return e-mail
and delete it from your computer. 



------_=_NextPart_001_01C08009.C52F73BA
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RE: [SunHELP] vxdump</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>I just use the following line in a dump =
script:</FONT>
</P>

<P><FONT SIZE=3D2>vxdump -0uvf /dev/rmt/0n =
/dev/rdsk/c0t2d0s4     # /data1</FONT>
</P>

<P><FONT SIZE=3D2>0 - level 0 dump (full dump)</FONT>
<BR><FONT SIZE=3D2>u - update /etc/dumpdates</FONT>
<BR><FONT SIZE=3D2>v - verbose</FONT>
<BR><FONT SIZE=3D2>f - where to dump to</FONT>
<BR><FONT SIZE=3D2>/dev/rmt/0n - dump device</FONT>
<BR><FONT SIZE=3D2>/dev/rdsk/c0t2d0s4 - file system to be dumped</FONT>
</P>

<P><FONT SIZE=3D2>Also take a look at the man page for vxdump.</FONT>
</P>

<P><FONT SIZE=3D2>Dennis L. Lund</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Kovalev, Ivan [<A =
HREF=3D"mailto:IKovalev at ibes.com">mailto:IKovalev at ibes.com</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Tuesday, January 16, 2001 4:09 PM</FONT>
<BR><FONT SIZE=3D2>To: 'sunhelp at sunhelp.org'</FONT>
<BR><FONT SIZE=3D2>Subject: RE: [SunHELP] vxdump</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Here is a portion of my script that backs up a system =
drive using ufsdump.</FONT>
<BR><FONT SIZE=3D2>$ cat mirrall</FONT>
<BR><FONT SIZE=3D2>#!/bin/ksh</FONT>
<BR><FONT SIZE=3D2># mirror all file systems on sys disk</FONT>
<BR><FONT SIZE=3D2>#</FONT>
<BR><FONT SIZE=3D2># =
03/16/98          &nbs=
p;   IK</FONT>
<BR><FONT SIZE=3D2> </FONT>
<BR><FONT =
SIZE=3D2>logfile=3D/export/home/ibesoper/logs/mirrall.log</FONT>
<BR><FONT SIZE=3D2>#</FONT>
<BR><FONT =
SIZE=3D2>#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT>
<BR><FONT SIZE=3D2>date > $logfile</FONT>
<BR><FONT SIZE=3D2> </FONT>
<BR><FONT SIZE=3D2>echo "dumping</FONT>
<BR><FONT =
SIZE=3D2>------------------------------------------------------1----root=
" >> $logfile</FONT>
<BR><FONT SIZE=3D2>newfs =
/dev/rdsk/c0t1d0s0         =
            =
            =
            =
   >></FONT>
<BR><FONT SIZE=3D2>$logfile 2>&1</FONT>
<BR><FONT SIZE=3D2>df -k | grep /mnt >/dev/null && umount =
/mnt</FONT>
<BR><FONT SIZE=3D2>mount /dev/dsk/c0t1d0s0 /mnt</FONT>
<BR><FONT SIZE=3D2>(ufsdump 0f  -  /dev/rdsk/c0t0d0s0  =
|  (cd /mnt; ufsrestore rf -))       =
>></FONT>
<BR><FONT SIZE=3D2>$logfile 2>&1</FONT>
<BR><FONT SIZE=3D2># move vfstab file </FONT>
<BR><FONT SIZE=3D2>        cp =
/mnt/etc/vfstab.disk1 /mnt/etc/vfstab</FONT>
<BR><FONT SIZE=3D2>        =
###########################################</FONT>
<BR><FONT SIZE=3D2>umount /mnt</FONT>
<BR><FONT SIZE=3D2>echo "***************** copy boot block =
*********** "    >> $logfile</FONT>
<BR><FONT SIZE=3D2>cd /usr/platform/`uname -i`/lib/fs/ufs</FONT>
<BR><FONT SIZE=3D2>installboot bootblk =
/dev/rdsk/c0t1d0s0         =
         >> $logfile =
2>&1</FONT>
<BR><FONT SIZE=3D2>date >> $logfile</FONT>
<BR><FONT SIZE=3D2>cd /</FONT>
<BR><FONT SIZE=3D2> </FONT>
<BR><FONT SIZE=3D2>echo "dumping =
------------------------------------------------------2----</FONT>
<BR><FONT SIZE=3D2>/usr/openwin" >> $logfile</FONT>
<BR><FONT SIZE=3D2>newfs /dev/rdsk/c0t1d0s1</FONT>
<BR><FONT SIZE=3D2>>> $logfile 2>&1</FONT>
<BR><FONT SIZE=3D2>mount /dev/dsk/c0t1d0s1 /mnt</FONT>
<BR><FONT SIZE=3D2>(ufsdump 0f  -  /dev/rdsk/c0t0d0s1  =
|  (cd /mnt; ufsrestore rf -))</FONT>
<BR><FONT SIZE=3D2>>> $logfile 2>&1</FONT>
<BR><FONT SIZE=3D2>cd /</FONT>
<BR><FONT SIZE=3D2>umount /mnt</FONT>
<BR><FONT SIZE=3D2> </FONT>
<BR><FONT SIZE=3D2>Hope that helps.</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Naser Ali [<A =
HREF=3D"mailto:Ali.Naser at irs.gov">mailto:Ali.Naser at irs.gov</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Tuesday, January 16, 2001 3:11 PM</FONT>
<BR><FONT SIZE=3D2>To: sunhelp at sunhelp.org</FONT>
<BR><FONT SIZE=3D2>Subject: [SunHELP] vxdump</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2>Q. Why one should not use tar for backup of =
multiterabyte file systems..? </FONT>
</P>

<P><FONT SIZE=3D2>Has any one ever used "vxdump" in a =
script..? </FONT>
<BR><FONT SIZE=3D2>Would really appreciate if some one is willing to =
share it. </FONT>
<BR><FONT SIZE=3D2>TIA </FONT>
</P>
<BR>

<P><FONT =
SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>SunHELP maillist  -  =
SunHELP at sunhelp.org</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://www.sunhelp.org/mailman/listinfo/sunhelp" =
TARGET=3D"_blank">http://www.sunhelp.org/mailman/listinfo/sunhelp</A></F=
ONT>
</P>
<BR>

<P>     - - - - - - -  Appended by =
Scientific-Atlanta, Inc.  - - - - - - - =20
<BR>This e-mail and any attachments may contain information which is =
confidential, proprietary, privileged or otherwise protected by law. =
The information is solely intended for the named addressee (or a person =
responsible for delivering it to the addressee). If you are not the =
intended recipient of this message, you are not authorized to read, =
print, retain, copy or disseminate this message or any part of it. If =
you have received this e-mail in error, please notify the sender =
immediately by return e-mail and delete it from your computer. </P>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01C08009.C52F73BA--



More information about the SunHELP mailing list