How to "ufsdump" more than one Solaris 8 fils systems to tape
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > How to "ufsdump" more than one Solaris 8 fils systems to tape




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    How to "ufsdump" more than one Solaris 8 fils systems to tape  
FreeDiver


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-12-04 10:57 PM

Hi,

We are running Sun Solaris 8 OS.

Can "ufsdump" used to backup muliple file systems in one tape ?

If yes, what commands do I use during "ufsdump" and also restoring
"ufsrestore" ??


Thanks,

Bill





[ Post a follow-up to this message ]



    Re: How to "ufsdump" more than one Solaris 8 fils systems to tape  
Flemming Dalsgaard


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-12-04 10:57 PM

FreeDiver wrote:

>Hi,
>
>We are running Sun Solaris 8 OS.
>
>Can "ufsdump" used to backup muliple file systems in one tape ?
>
>
yes.

>If yes, what commands do I use during "ufsdump" and also restoring
>"ufsrestore" ??
>
>
>
tape devices normally have a couple of device entrys attached. The "one"
you need is the none rewind type.
When using eg.
ufsdump 0f /dev/rmt/0n /somefilesystem
instead of /dev/rmt/0, you prevent the tape device from rewinding when
ufsdump have finished. Now you can continue with the next ufsdump.

Depending on what dump number you are going  to read from the tape
afterward. You can either start from the first dump by using ufsrestore
direct or use "mt -f /dev/rmt/0n fsf X" to get to the X't number of dump
on the tape.
See "man ufsdump" and "man mt"
See "man st" to figure out the meaning of the different device options,
shown in /dev/rmt/.

>Thanks,
>
>Bill
>
>
/Flemming






[ Post a follow-up to this message ]



    Re: How to "ufsdump" more than one Solaris 8 fils systems to tape  
Dave Hinz


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-13-04 07:50 AM

On 12 Jul 2004 15:06:45 -0700, FreeDiver <freedive999@hotmail.com> wrote:
> Hi,
>
> We are running Sun Solaris 8 OS.
>
> Can "ufsdump" used to backup muliple file systems in one tape ?

You bet.

> If yes, what commands do I use during "ufsdump" and also restoring
> "ufsrestore" ??

It's all about the device name, rather than the syntax of ufsdump.  You
need to speciy a non-rewind tape device, check the man pages for specific
syntax.  If you don't, it'll rewind after every write and you get whatever
your last file system was.

Dave Hinz





[ Post a follow-up to this message ]



    Re: How to "ufsdump" more than one Solaris 8 fils systems to tape  
K7MEM


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-13-04 10:59 PM


FreeDiver wrote:
> Hi,
>
> We are running Sun Solaris 8 OS.
>
> Can "ufsdump" used to backup muliple file systems in one tape ?
>
> If yes, what commands do I use during "ufsdump" and also restoring
> "ufsrestore" ??

Bill,

A couple of people have already told you you can do it, but I thought
that a small example might help.

For example purposes, lets say I have a Ultra 450 with a disk that
is partitioned for "/", "/usr", "/var", and "/local". The disk is at
"c0t1d0" and is partitions 0, 6, 3, and 5, respectively.

I am also assuming that the data in these partitions will fit on one
tape. This can be strung across multiple tapes, but that complicates
things.

To create the tape I would use the "mt" command and the "ufsdump"
command. The "mt" command is used to manipulate the tape and force
a rewind. The "ufsdump" commands specify the "no-rewind" device for
the tape unit so that they will dump sequentially.

> mt -f /dev/rmt/0m rewind
> ufsdump 0f /dev/rmt/0mn /dev/rdsk/c0t1d0s0
> ufsdump 0f /dev/rmt/0mn /dev/rdsk/c0t1d0s6
> ufsdump 0f /dev/rmt/0mn /dev/rdsk/c0t1d0s3
> ufsdump 0f /dev/rmt/0mn /dev/rdsk/c0t1d0s5

To then recover these dumps with the "ufsrestore" command you would
again use the "mt" command. This time to position yourself to the
correct position on the tape. For example, to recover the data from
the "/local" partition, /dev/rdsk/c0t1d0s5, you might use the following
commands:

> cd /tmp_local
> mt -f /dev/rmt/0m rewind
> mt -f /dev/rmt/0mn fsr 4
> ufsrestore xf /dev/rmt/0mn

As with everything, read the man page for "mt", "ufsdump", "ufsrestore",
and "installboot".

--
Martin E. Meserve
k7mem@myrealbox.com
http://www.k7mem.150m.com






[ Post a follow-up to this message ]



    Re: How to "ufsdump" more than one Solaris 8 fils systems to tape  
John Doherty


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-13-04 10:59 PM

In article <40F3F492.2000101@myrealbox.com>, K7MEM <k7mem@myrealbox.com> wro
te:

> To then recover these dumps with the "ufsrestore" command you would
> again use the "mt" command.

That will work fine, but ufsrestore can skip to a specific tape
file by itself, using the "s" option.

--





[ Post a follow-up to this message ]



    Re: How to "ufsdump" more than one Solaris 8 fils systems to tape  
K7MEM


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-13-04 10:59 PM

John Doherty wrote:
> In article <40F3F492.2000101@myrealbox.com>, K7MEM <k7mem@myrealbox.com> w
rote:
>
> 
>
>
> That will work fine, but ufsrestore can skip to a specific tape
> file by itself, using the "s" option.
>
> --

But now he knows one more command. If he learns a new command each day
he'll but a big time administrator in no time. :-)

--
Martin E. Meserve
k7mem@myrealbox.com
http://www.k7mem.150m.com






[ Post a follow-up to this message ]



    Re: How to "ufsdump" more than one Solaris 8 fils systems to tape  
Michael Tosch


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-19-04 07:51 AM

In article <40F3F492.2000101@myrealbox.com>, K7MEM <k7mem@myrealbox.com> wri
tes:
...[vbcol=seagreen]
> 
...

is "doppelt gemoppelt", as we say in Germany.

mt -f /dev/rmt/0mn rewind

will only one time rewind.

Of course most tapes reply immediate "ready" at the 2nd rewind
command issued by the /dev/rmt/0m driver.

Another useful command is
mt -f /dev/rmt/0mn status
and some tapes can even correctly handle
mt -f /dev/rmt/0mn bsf 1
Can save you a "rewind" and "fsf" in some cases.

--
Michael Tosch
IT Specialist
HP Managed Services Germany
Phone: +49 2407 575 313
Mail: michael.tosch:hp.com







[ Post a follow-up to this message ]



    Re: How to "ufsdump" more than one Solaris 8 fils systems to tape  
Nic


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-22-04 11:01 PM

>
> To then recover these dumps with the "ufsrestore" command you would
> again use the "mt" command. This time to position yourself to the
> correct position on the tape. For example, to recover the data from
> the "/local" partition, /dev/rdsk/c0t1d0s5, you might use the following
> commands:
> 
>
> As with everything, read the man page for "mt", "ufsdump", "ufsrestore",
> and "installboot".

By the way, there is no need to use mt to move to the position on
tape, ufsrestore has the s option that will jump to the one you want.
ufsrestore xfs /dev/rmt/0 3
will restore the 3rd image on tape.
Nic.





[ Post a follow-up to this message ]



a87001 is offline     Re: Re: How to "ufsdump" more than one Solaris 8 fils systems to tape  
a87001


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for a87001 Click here to Send a87001 a Private Message Find more posts by a87001 Add a87001 to your buddy list
 
08-18-04 09:23 AM

is there any equivalent command for ufsdump in AIX?




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:06 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register