Solved

Doing a ufsrestore from a tape

Posted on 2011-03-18
9
842 Views
Last Modified: 2012-05-11
Can anybody help me restore from a tape please using ufsrestore?

I backed up my file systems as follows:

ufsdump 0cfu /dev/rmt/0n /
ufsdump 0cfu /dev/rmt/0n /var

I'm using ufsrestore -iv
I'm prompted to enter the Volume Name (default:/dev/rmt/0)
I enter /dev/rmt/0n here but it just keep displaying "Mount volume 3" & then repeats the above "Enter volume nane (default: /dev/rmt/0). Again I enter /dev/rmt/0n & get "Mount volume 4" then.

Can anybody tell me what I'm doing wrong here?

Thanks,
0
Comment
Question by:itwex
  • 4
  • 3
  • 2
9 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 35164470
What are you trying to do?

If you want to restore /var you must position the tape at the correct file.
This can be done via "mt fsf" or by using the "-s" flag of ufsrestore.

1)
mt -f /dev/rmt/0 rewind
mt -f /dev/rmt/0n fsf 1
ufsrestore ivf /dev/rmt/0n

2)
mt -f /dev/rmt/0 rewind
ufsrestore ivfs /dev/rmt/0n  2

wmp
0
 
LVL 76

Expert Comment

by:arnold
ID: 35165969
Your backup uses the c option. You have to locate all the tape cardridges that are part of this backup.
look in /etc/dumpdates for details on the backup.
Presumably you have an auto-load tape library.
0
 

Author Comment

by:itwex
ID: 35166239
Thanks for the replies; still looking for / & /var.

Here's exactly what I did:

ufsdump 0cfu /dev/rmt/0 /
ufsdump 0cfu /dev/rmt/0 /var
ufsdump 0cfu /dev/rmt/0 /opt
ufsdump 0cfu /dev/rmt/0 /export/home
ufsdump 0cfu /dev/rmt/0 /u1
ufsdump 0cfu /dev/rmt/0 /u2
ufsdump 0cfu /dev/rmt/0 /u3

mt fsf 0
ufsrestore -iv
ls
I have /opt here.

I repeat the mt fsf for 1,2,3,4 & have /export/home, /u2, /u3 & /u4.

I don't want to restore anything at this stage but I need to ensure that I have a complete backup of the Server & just can't locate the / or /var filesystems.
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 35166273
Use

mt rewind

before ufsrestore
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 68

Expert Comment

by:woolmilkporc
ID: 35166296
... and don't forget to use the "norewind" device for ufsdump

/dev/rmt/0n

else the cartdridge will be rewound at close and the next ufsdump will overwrite the previous one's data.
0
 

Author Comment

by:itwex
ID: 35166504
Okay, sorry should have mentioned above that I did used the norewind options - used /dev/rmt/0n each time.

I now did:

mt rewind
mt fsf 0
ufsrestore -iv
when I list everthing now I do have the contents of / & I see opt & var here but when I cd into those directories I cannot see any files in them. Any ideas on how I view those?

/, /var & /opt are all on /dev/dsk/c0t0d11 but on different slices.
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 125 total points
ID: 35166549
opt and var are only mountpoints under /.

mt rewind
mt fsf 1
ufsrestore -iv

should show you the contents of var

mt rewind
mt fsf 2
ufsrestore -iv

should show you the contents of opt

etc.
0
 
LVL 76

Assisted Solution

by:arnold
arnold earned 125 total points
ID: 35166635
As wmp pointed out your process is an append mechanism which means that you have to position the tape in the correct "file"

you can also do mt rewind
ufsrestore -ivs n
where n represents the file position you want to look at.
0 for /
1 for /var
.
.
6 for /u3
0
 

Author Closing Comment

by:itwex
ID: 35167081
Thanks for your help
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now