- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to view/erase data from the tape
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 05:45 AM
01-07-2002 05:45 AM
How to view/erase data from the tape
Thank You
Raghu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 05:52 AM
01-07-2002 05:52 AM
Re: How to view/erase data from the tape
tar tfv /dev/rmt/1m
To check whether there is data on a tape anyway, your old friend is od:
od -c /dev/rmt/1m | more
To trash a tape there are several good ways:
1) Bulk eraser
2) Physically destroy the tape
3) Use dd to write rubbish to the tape, eg:
dd if=/stand/vmunix of=/dev/rmt/1m
dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 05:56 AM
01-07-2002 05:56 AM
Re: How to view/erase data from the tape
TO erase a tape, you can write a program to write null's to the tape.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 06:00 AM
01-07-2002 06:00 AM
Re: How to view/erase data from the tape
# mt -t /dev/rmt/0mn fsf 1
(make sure you use the "no rewind" device file!)
# tar tvf /dev/rmt/0m
Why do you want to erase data from a tape? Generally its safe just to use it again, this will overwrite any data that was previously present.
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 06:10 AM
01-07-2002 06:10 AM
Re: How to view/erase data from the tape
If you want to read the tape you can use 'tar -tvf /dev/rmt/0m' command to read the tape. If you want to check the log files created by last make_recovery command, then read the files in /var/opt/ignite/logs. Also if you want to compare the last make_recovery with the current system status, use the command 'check_recovery' (this will be useful only if you have executed the make_recovery command with -C option).
For erasing a tape, you can just redirect the null character to the tape. Or see this:
http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0xd741a22831ebd5118ff40090279cd0f9,00.html
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 06:11 AM
01-07-2002 06:11 AM
Re: How to view/erase data from the tape
You can also erase a tape by using mediainit.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 06:19 AM
01-07-2002 06:19 AM
Re: How to view/erase data from the tape
There are 2 "files" written on a make_tape_recovery tape. The first "file" is a boot image. The second file is a tarfile written by the pax utility. You can use pax or tar to see what is in that second file on the tape:
mt -t /dev/rmt/0m rewind
mt -t /dev/rmt/0mn fsf 1
tar tvf /dev/rmt/0m
If you need to physically erase the data then use a bulk eraser or overwrite the tape completely with zeros or other garbage (dd if=/dev/zero of=/dev/rmt/0m).
You can find a number of threads by searching the itrc. My favorite search is at http://www.google.com/advanced_search. Be sure to limit the domain to itrc.hp.com.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 07:00 AM
01-07-2002 07:00 AM
Re: How to view/erase data from the tape
From the man page for check_recovery:
"check_recovery compares the current state of the system to the System Recovery status file (created by the last invocation of make_recovery) to determine if a new System Recovery Tape needs to be created. Only
Core OS and User Core OS files are validated. Refer to make_recovery for an explanation of these terms."
"check_recovery displays all discrepancies found between the current system and the status file to stderr. Based on these, the System
Administrator can then make a determination as to whether a new System Recovery Tape needs to be created."
check_recovery is only valid is you use make_recovery with the -C option.
Others have given you the instructions to see data on your make_recovery tape.
To erase data on the tape, just reuse the tape. Once you reuse the tape, the make_recovery image will no longer be accessable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 07:16 AM
01-07-2002 07:16 AM
Re: How to view/erase data from the tape
boot P2
Intract with IPL ( Y, N, or Cancel)?> n
Booting ....
Boot IO Dependent Code (IODC) rvision 1
HARD Booted.
ISL Revision A.00.43 Apr 12, 2000
ISL booting hpux (;0):INSTALL
Boot
: tape (0/5/0/0.6.0.0.0.0.0;0):winstall
tape (0/5/0/0.6.0.0.0.0.0;0):winstall cannot open, or not executable
Exec failed: No such file or directory
I don???t know what is the problem is. I also would like to know what are the right option I need to use. Like C or c , v ,I, I check the man page but that is too confusing. Could some one give me the right option I must use ??? make _tape _recovery -c C v I ??? what is the right one
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 08:25 AM
01-07-2002 08:25 AM
Re: How to view/erase data from the tape
You seem as you had ommited the "no rewind" device file from your make_recovery !
Boot again on disk and issue the following command :
# make_recovery -A -d /dev/rmt/0mn
Attention to the last character "n" in the device file name. This will put first the lif area in the begining of the tape followed by the entire vg00 files ( this is option -A in the command ) which are /etc, /sbin, /usr and so on ...
Magdi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 08:29 AM
01-07-2002 08:29 AM
Re: How to view/erase data from the tape
/opt/ignite/bin/make_tape_recovery -a /dev/rmt/0mn -I -v -x inc_entire=vg00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 08:29 AM
01-07-2002 08:29 AM
Re: How to view/erase data from the tape
it seems your tape is bad (not the drive).
Usually it is safer to create two "ignite-tapes", before doing something destructive...
So, after having created that tape, I would take it to another driver (even system), and try to read it over there:
mt -t /dev/rmt/0mn rewind # just to be ceratin
mt -t /dev/rmt/0mn fsf 1 # skip the boot header
tar tvf /dev/rmt/0m # read the depot from tape
Does it show *ALL* the files which where backed up?
Any errors?
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 08:41 AM
01-07-2002 08:41 AM
Re: How to view/erase data from the tape
-i Causes make_tape_recovery to run interactively to allow you
to select which files and directories are to be included in
the recovery archive. The options -x , -A and -f are not
allowed with -i. It is preferable to use the ignite GUI menu
command on the Ignite-UX server when running an interactive
make_tape_recovery session. Running it from ignite causes
any additional server configuration of NFS mounts to be
performed. It also provides a better progress report and an
easier to use interface.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 08:49 AM
01-07-2002 08:49 AM
Re: How to view/erase data from the tape
..try # make_tape_recovery -i
To list all tape content:
.. pax -rv -f /dev/rmt/0m
g'd luck
t++
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 09:04 AM
01-07-2002 09:04 AM
Re: How to view/erase data from the tape
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2196663ce855d511abcd0090277a778c,00.html
Notice Tim Fulford's method for checking the contents of the boot image on the tape.
If you see WINSTALL then try interacting with IPL and specifying:
hpux (;0):WINSTALL
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 09:06 AM
01-07-2002 09:06 AM
Re: How to view/erase data from the tape
I would suggest to do this:
# make_recovery -A -C -d /dev/rmt/0mn
-A will backup the entire root volume group.
HTH,
Shiju