[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 887
  • Last Modified:

Doing a ufsrestore from a tape

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
itwex
Asked:
itwex
  • 4
  • 3
  • 2
2 Solutions
 
woolmilkporcCommented:
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
 
arnoldCommented:
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
 
itwexAuthor Commented:
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!

 
woolmilkporcCommented:
Use

mt rewind

before ufsrestore
0
 
woolmilkporcCommented:
... 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
 
itwexAuthor Commented:
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
 
woolmilkporcCommented:
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
 
arnoldCommented:
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
 
itwexAuthor Commented:
Thanks for your help
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now