[SunHELP] vxdump

Naser Ali sunhelp at sunhelp.org
Thu Jan 18 14:06:24 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_01C0818A.22162340
Content-Type: text/plain;
	charset="iso-8859-1"

Thanks every one for your help.
Attached is the script which put together after input from different list
member. Names, too many to mention..!
 
===========================================================================
#!/usr/bin/ksh
 
DEV=/dev/rmt/0
NDEV=/dev/rmt/0n
DUMP=/usr/sbin/vxdump
 
#FileSystem Backup
 
mt -f ${DEV} rew
 
echo "START TIME: `date`"
for fs in dsk/CY/db01 dsk/CY/db02 dsk/CY/db03
 
 do
 $DUMP 0nuf ${NDEV} /dev/${fs}
 done
mt -f ${DEV} rewoffl
echo "FINISH TIME: `date`"
 
#all done 
==============================================================
 

-----Original Message-----
From: Lund, Dennis [mailto:Dennis.Lund at sciatl.com]
Sent: Tuesday, January 16, 2001 5:15 PM
To: 'sunhelp at sunhelp.org'
Subject: RE: [SunHELP] vxdump



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 <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 <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
<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_01C0818A.22162340
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>RE: [SunHELP] vxdump</TITLE>

<META content="MSHTML 5.00.2314.1000" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=121260620-18012001>Thanks 
every one for your help.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=121260620-18012001>Attached is the script which put together after input 
from different list member. Names, too many to mention..!</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=121260620-18012001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=121260620-18012001>===========================================================================</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=121260620-18012001>#!/usr/bin/ksh</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=121260620-18012001>DEV=/dev/rmt/0<BR>NDEV=/dev/rmt/0n<BR>DUMP=/usr/sbin/vxdump</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=121260620-18012001>#FileSystem Backup</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=121260620-18012001>mt -f 
${DEV} rew</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=121260620-18012001>echo 
"START TIME: `date`"<BR>for fs in dsk/CY/db01 dsk/CY/db02 
dsk/CY/db03</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=121260620-18012001> do<BR> $DUMP 0nuf ${NDEV} 
/dev/${fs}<BR> done<BR>mt -f ${DEV} rewoffl<BR>echo "FINISH TIME: 
`date`"</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=121260620-18012001>#all 
done 
<BR>==============================================================</SPAN></FONT></DIV>
<DIV> </DIV>
<BLOCKQUOTE>
  <DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Lund, Dennis 
  [mailto:Dennis.Lund at sciatl.com]<BR><B>Sent:</B> Tuesday, January 16, 2001 5:15 
  PM<BR><B>To:</B> 'sunhelp at sunhelp.org'<BR><B>Subject:</B> RE: [SunHELP] 
  vxdump<BR><BR></DIV></FONT>
  <P><FONT size=2>I just use the following line in a dump script:</FONT> </P>
  <P><FONT size=2>vxdump -0uvf /dev/rmt/0n 
  /dev/rdsk/c0t2d0s4     # /data1</FONT> </P>
  <P><FONT size=2>0 - level 0 dump (full dump)</FONT> <BR><FONT size=2>u - 
  update /etc/dumpdates</FONT> <BR><FONT size=2>v - verbose</FONT> <BR><FONT 
  size=2>f - where to dump to</FONT> <BR><FONT size=2>/dev/rmt/0n - dump 
  device</FONT> <BR><FONT size=2>/dev/rdsk/c0t2d0s4 - file system to be 
  dumped</FONT> </P>
  <P><FONT size=2>Also take a look at the man page for vxdump.</FONT> </P>
  <P><FONT size=2>Dennis L. Lund</FONT> </P>
  <P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From: 
  Kovalev, Ivan [<A 
  href="mailto:IKovalev at ibes.com">mailto:IKovalev at ibes.com</A>]</FONT> <BR><FONT 
  size=2>Sent: Tuesday, January 16, 2001 4:09 PM</FONT> <BR><FONT size=2>To: 
  'sunhelp at sunhelp.org'</FONT> <BR><FONT size=2>Subject: RE: [SunHELP] 
  vxdump</FONT> </P><BR>
  <P><FONT size=2>Here is a portion of my script that backs up a system drive 
  using ufsdump.</FONT> <BR><FONT size=2>$ cat mirrall</FONT> <BR><FONT 
  size=2>#!/bin/ksh</FONT> <BR><FONT size=2># mirror all file systems on sys 
  disk</FONT> <BR><FONT size=2>#</FONT> <BR><FONT size=2># 
  03/16/98              
  IK</FONT> <BR><FONT size=2> </FONT> <BR><FONT 
  size=2>logfile=/export/home/ibesoper/logs/mirrall.log</FONT> <BR><FONT 
  size=2>#</FONT> <BR><FONT 
  size=2>#==========================================================</FONT> 
  <BR><FONT size=2>date > $logfile</FONT> <BR><FONT size=2> </FONT> 
  <BR><FONT size=2>echo "dumping</FONT> <BR><FONT 
  size=2>------------------------------------------------------1----root" 
  >> $logfile</FONT> <BR><FONT size=2>newfs 
  /dev/rdsk/c0t1d0s0                                                
  >></FONT> <BR><FONT size=2>$logfile 2>&1</FONT> <BR><FONT 
  size=2>df -k | grep /mnt >/dev/null && umount /mnt</FONT> <BR><FONT 
  size=2>mount /dev/dsk/c0t1d0s0 /mnt</FONT> <BR><FONT size=2>(ufsdump 0f  
  -  /dev/rdsk/c0t0d0s0  |  (cd /mnt; ufsrestore rf 
  -))       >></FONT> <BR><FONT 
  size=2>$logfile 2>&1</FONT> <BR><FONT size=2># move vfstab file 
  </FONT><BR><FONT size=2>        cp 
  /mnt/etc/vfstab.disk1 /mnt/etc/vfstab</FONT> <BR><FONT 
  size=2>        
  ###########################################</FONT> <BR><FONT size=2>umount 
  /mnt</FONT> <BR><FONT size=2>echo "***************** copy boot block 
  *********** "    >> $logfile</FONT> <BR><FONT size=2>cd 
  /usr/platform/`uname -i`/lib/fs/ufs</FONT> <BR><FONT size=2>installboot 
  bootblk 
  /dev/rdsk/c0t1d0s0                  
  >> $logfile 2>&1</FONT> <BR><FONT size=2>date >> 
  $logfile</FONT> <BR><FONT size=2>cd /</FONT> <BR><FONT size=2> </FONT> 
  <BR><FONT size=2>echo "dumping 
  ------------------------------------------------------2----</FONT> <BR><FONT 
  size=2>/usr/openwin" >> $logfile</FONT> <BR><FONT size=2>newfs 
  /dev/rdsk/c0t1d0s1</FONT> <BR><FONT size=2>>> $logfile 
  2>&1</FONT> <BR><FONT size=2>mount /dev/dsk/c0t1d0s1 /mnt</FONT> 
  <BR><FONT size=2>(ufsdump 0f  -  /dev/rdsk/c0t0d0s1  |  
  (cd /mnt; ufsrestore rf -))</FONT> <BR><FONT size=2>>> $logfile 
  2>&1</FONT> <BR><FONT size=2>cd /</FONT> <BR><FONT size=2>umount 
  /mnt</FONT> <BR><FONT size=2> </FONT> <BR><FONT size=2>Hope that 
  helps.</FONT> </P>
  <P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From: Naser 
  Ali [<A href="mailto:Ali.Naser at irs.gov">mailto:Ali.Naser at irs.gov</A>]</FONT> 
  <BR><FONT size=2>Sent: Tuesday, January 16, 2001 3:11 PM</FONT> <BR><FONT 
  size=2>To: sunhelp at sunhelp.org</FONT> <BR><FONT size=2>Subject: [SunHELP] 
  vxdump</FONT> </P><BR><BR>
  <P><FONT size=2>Q. Why one should not use tar for backup of multiterabyte file 
  systems..? </FONT></P>
  <P><FONT size=2>Has any one ever used "vxdump" in a script..? </FONT><BR><FONT 
  size=2>Would really appreciate if some one is willing to share it. 
  </FONT><BR><FONT size=2>TIA </FONT></P><BR>
  <P><FONT size=2>_______________________________________________</FONT> 
  <BR><FONT size=2>SunHELP maillist  -  SunHELP at sunhelp.org</FONT> 
  <BR><FONT size=2><A href="http://www.sunhelp.org/mailman/listinfo/sunhelp" 
  target=_blank>http://www.sunhelp.org/mailman/listinfo/sunhelp</A></FONT> 
  </P><BR>
  <P>     - - - - - - -  Appended by 
  Scientific-Atlanta, Inc.  - - - - - - -  <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></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C0818A.22162340--



More information about the SunHELP mailing list