Solved

Doing a ufsrestore from a tape

Posted on 2011-03-18
9
856 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 78

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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 68

Expert Comment

by:woolmilkporc
ID: 35166273
Use

mt rewind

before ufsrestore
0
 
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 78

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

696 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