Operating System - HP-UX
1833750 Members
2471 Online
110063 Solutions
New Discussion

/tcb files gets corrupted

 
SOLVED
Go to solution
gany59
Regular Advisor

/tcb files gets corrupted

Hi techiees,

I have a concern like if the /tcb/files gets corrupted , is there any way to restore the whole files from the ignite tape,hence while we take the ignite backup, all the configuration files are there in the ignite tape right ? or how to recover the /tcb/auth/files/r/root .

Please let me know
10 REPLIES 10
Pete Randall
Outstanding Contributor
Solution

Re: /tcb files gets corrupted

As with any files on the ignite tape, they're simply tar'd so you simply skip over the boot headers and then use tar.

For PA-RISC

mt fsf /dev/rmt/1mn 1
then your tar command

For ia64
mt fsf /dev/rmt/1mn 22
then your tar command


Pete

Pete
gany59
Regular Advisor

Re: /tcb files gets corrupted

thanks for ur quick reply pete,

how to view the files in the ignite tape and what command can we execute to restore the /tcb/auth/files

and what is the meaning for the below command :

For PA-RISC

mt fsf /dev/rmt/1mn 1
then your tar command

For ia64
mt fsf /dev/rmt/1mn 22

fsf is the count what we need to skip, I am not able to get the clear picture what is 1 and 22

Pls help me out on this

Pete Randall
Outstanding Contributor

Re: /tcb files gets corrupted

Depending on the architecture of your server (PA-RISC or IA64) the boot header files on the tape are different, thus the "mt" commands to skip over them have to be different.

Once you have skipped over the headers, you can use any tar command. tar -xvf to restore or tar -t to view the contents, for example.


Pete

Pete
gany59
Regular Advisor

Re: /tcb files gets corrupted

ok pete,

If i use the tar command , where the file is going defaultly, or is there any option to specify the target location
Steven E. Protter
Exalted Contributor

Re: /tcb files gets corrupted

Shalom,

cd /tcb

tar cvf /tmp/tcb.tar *

That will get them all.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dennis Handly
Acclaimed Contributor

Re: /tcb files gets corrupted

>If I use the tar command, where the file is going default

The file will go in a subdirectory of the current directory. If you don't like that, you can either move it after, or use pax(1) which has a -s option to rename file paths.
Horia Chirculescu
Honored Contributor

Re: /tcb files gets corrupted

>is there any option to specify the target location

There is no tar option for this. Just specify an absolute path for the archive as in the example provided by Steven:

cd /tcb
tar cvf /tmp/tcb.tar *

Best regards,
Horia.
Best regards from Romania,
Horia.
gany59
Regular Advisor

Re: /tcb files gets corrupted

Hello Folks,

I am not able to get the clear view, what u people are mentioned below :

cd /tcb
tar cvf /tmp/tcb.tar *

Actually i need to copy the /tcb/ files from the tape archieve.

Then what is the need for the command like

tar cvf /tmp/tcb.tar *

Please let me know, after all ur feedbacks for this question i came to know lot of things.

so pls sort out this also.

Thanks in advance folks..
Horia Chirculescu
Honored Contributor

Re: /tcb files gets corrupted

Check the following article. Maybe this is what you are looking for (using pax to extract on another location files from an archive with files having absolute path):

http://www.hpug.org.uk/index.php?option=com_content&task=view&id=129&Itemid=59

Horia


Best regards from Romania,
Horia.