Sponsored Content
Operating Systems AIX Using restorevgfiles to restore entire directory from rootvg problems Post 302561400 by johnf on Tuesday 4th of October 2011 04:30:49 AM
Old 10-04-2011
Quote:
Originally Posted by herot
That didn't work. I got the output:

Code:
# tctl fsf 3 ; tar -xvf /dev/rmt0 /home/bds                  
tar: 0511-193 An error occurred while reading from the media.
There is an input or output error.                           
#

FYI the write protect tab is set on the tape. It was only the tar that didn't work. Are you sure that will be a tar readable file? I also tried:

Code:
# tctl fsf 4

before doing the tar but that didn't work either. I read that the actual files are in the 4rth image on the tape?
The problem is that the default tape device (rmt0) automatically rewinds on close so the basic tctl command does not work. Instead use the following:

Code:
tctl -f /dev/rmt0.1 fsf 3; tar -xvf /dev/rmt0 /home/bds

That should do it.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
aset.restore(1M)					  System Administration Commands					  aset.restore(1M)

NAME
aset.restore - restores system files to their content before ASET is installed SYNOPSIS
aset.restore [-d aset_dir] DESCRIPTION
aset.restore restores system files that are affected by the Automated Security Enhancement Tool (ASET) to their pre-ASET content. When ASET is executed for the first time, it saves and archives the original system files in the /usr/aset/archives directory. The aset.restore utility reinstates these files. It also deschedules ASET, if it is currently scheduled for periodic execution. See asetenv(4). If you have made changes to system files after running ASET, these changes are lost when you run aset.restore. If you want to be abso- lutely sure that you keep the existing system state, it is recommended that you back-up your system before using aset.restore. You should use aset.restore, under the following circumstances: You want to remove ASET permanently and restore the original system (if you want to deactivate ASET, you can remove it from schedul- ing). You are unfamiliar with ASET and want to experiment with it. You can use aset.restore to restore the original system state. When some major system functionality is not working properly and you suspect that ASET is causing the problem; you may want to restore the system to see if the problem persists without ASET. aset.restore requires root privileges to execute. OPTIONS
The following options are supported: -d aset_dir Specify the working directory for ASET. By default, this directory is /usr/aset. With this option the archives directory will be located under aset_dir. FILES
/usr/aset/archives archive of system files prior to executing aset ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWast | +-----------------------------+-----------------------------+ SEE ALSO
aset(1M), asetenv(4), attributes(5) System Administration Guide: Basic Administration SunOS 5.10 11 Oct 1991 aset.restore(1M)
All times are GMT -4. The time now is 03:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy