Using restorevgfiles to restore entire directory from rootvg problems


 
Thread Tools Search this Thread
Operating Systems AIX Using restorevgfiles to restore entire directory from rootvg problems
# 8  
Old 04-03-2012
Have you tried to check redbook ... like this one
IBM Redbooks | IBM eServer Certification Study Guide - AIX 5L Installation and System Recovery

Quote:
6.2.3 Restore a file system The restore command is used to restore data backed up with the backup command.
restore -Tvf /dev/rmt0 will show the table of contents for the tape and list the files on it.
restore -xvf /dev/rmt0 /home/ostach restores individual files from backup made by the backup -i command.
restore -rvf /dev/rmt0 restores an entire file system archive.
# 9  
Old 04-04-2012
I did. Keep in mind this is a:

Code:
mksysb -m -i -v /dev/rmt0

backup.

I got this:
Code:
# restore -xvf /dev/rmt0 /usr/graham/test              
Please mount volume 1 on /dev/rmt0.                    
        Press the Enter key to continue.               
                                                       
restore: 0511-160 Cannot read the backup media         
         /dev/rmt0: There is an input or output error. 
#

# 10  
Old 04-05-2012
Quote:
Originally Posted by herot
I did. Keep in mind this is a:

Code:
mksysb -m -i -v /dev/rmt0

backup.

I got this:
Code:
# restore -xvf /dev/rmt0 /usr/graham/test              
Please mount volume 1 on /dev/rmt0.                    
        Press the Enter key to continue.               
                                                       
restore: 0511-160 Cannot read the backup media         
         /dev/rmt0: There is an input or output error. 
#

You still need to wind forward with the
Code:
tctl -f /dev/rmt0.1 fsf 3

to get passed the boot information on the tape.
# 11  
Old 08-28-2012
Now I get this:

Code:
$ su                                                                            
root's Password:                                                                
# hostname                                                                      
backupserver                                                                       
# tctl -f /dev/rmt0.1 fsf 3                                                     
#                                                                               
# hostname                                                                      
backupserver                                                                       
# restore -xvf /dev/rmt0 /home/user                                              
Please mount volume 1 on /dev/rmt0.                                             
        Press the Enter key to continue.                                        
                                                                                
restore: 0511-133 There is a data read error.: There is an input or output error
.                                                                               
Ignoring data and continuing.                                                   
restore: 0511-123 The volume on /dev/rmt0 is not in backup format.              
Mount volume 1 on /dev/rmt0.                                                    
        Press the Enter key to continue.

What am I doing wrong?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to find and get a file in an entire directory with an excluded directory specified?

How to get a file 'zlib.h' in an entire directory with an excluded directory specified lives under that starting directory by using find command, as it failed on: $ find . -name 'zlib.h' -a -ipath 'CHROME.TMP' -prune -o -print it'll just list entirely up (2 Replies)
Discussion started by: abdulbadii
2 Replies

2. AIX

AIX's restorevgfiles

Seek help from all experts, I understand that if I perform a savevg on a VG, and later perform a restvg to another hdisk, I will get back a exact same VG that I perform savevg earlier. It will be identical even on permission bit, owner and group. However, if I perform a restorevgfiles for a... (3 Replies)
Discussion started by: kwliew999
3 Replies

3. UNIX for Dummies Questions & Answers

Append two lines of text to php.ini in the entire directory tree.e

I am looking to write a script that will read the php.ini files on my web host. If the two lines do exist do nothing. If not append two lines to the end of it then move on to the next directory and open the next php.ini file. I have the beginning of one that was given to me on another web site but... (6 Replies)
Discussion started by: Larrykh465
6 Replies

4. Shell Programming and Scripting

Looping through entire directory and count unique values

Hello, I`m a complete newbie to coding, please help with this problem. I have multiple files in a directory, I have to loop through the contents of each file and extract number of unique isoforms in that file. Each file is tab delimited and only the line with the first parent (column 3)... (1 Reply)
Discussion started by: ritakadm
1 Replies

5. AIX

How to restore rootvg archive after AIX 6.1 crash

Hello, Few days ago I created both mksysb and savevg archives of rootvg. How can I restore this rootvg now because the AIX crashed during some software tests. There is no way to start from hdisk0 because most of the system files are deleted (this includes libc.a). I tough it will be trivial... (6 Replies)
Discussion started by: +Yan
6 Replies

6. AIX

Restore a directory from backup

Dear All: we are using backup command on AIX to take backup as below in this command we also add compress command ulimit unlimited cd /apps/oracle find orcldb orcldata arch |tee /apps/orabkp/ofgl.faysalbank.com-17Jun10Thu-ORCL-DB.bkp.gz.log | backup -ivqf - |gzip -c >... (0 Replies)
Discussion started by: lodhi1978
0 Replies

7. Shell Programming and Scripting

tar the entire directory except one directory

Hi All, I need to tar the entire directory except one directory inside that. I have used the below command tar -cvfX test.tar bin/perl bin/ I need to tar all the directories inside the bindirectory except the perl directory Please help me in solving this :b: Regards, Kalai (4 Replies)
Discussion started by: kalpeer
4 Replies

8. UNIX for Dummies Questions & Answers

how to zip the entire directory

my first question is how to zip the entire directory contents. second question is can we unzip the same file through windows environment. please help i need to complete it by EOD (3 Replies)
Discussion started by: bbc17484
3 Replies

9. Solaris

how to restore an entire system from a tar file?

Hi folks, I have an image backup of an entire file system (Solaris 9 on N240) on a tar file. How can I use this tar file to retore my system? Thanks, omd (1 Reply)
Discussion started by: omd
1 Replies

10. UNIX for Dummies Questions & Answers

Tape Restore Problems!!!

Hi. I have been having problems with restoring from a tape backup. I use the following cpio command: find / -print | cpio -ouvB > /dev/rStp0 After running this cpio command, the screen will display all files, but when I try to read or restore the tape I get the following error: Tape input... (1 Reply)
Discussion started by: cstovall
1 Replies
Login or Register to Ask a Question