Solved

Equivalent of prtvtoc, dd, ufsdump in HP-UX

Posted on 2008-10-09
3
1,846 Views
Last Modified: 2013-12-06
Hi,

Need the equivalent commands for HP-UX in Solaris :

a) prtvtoc /dev/rdsk/c0t0d0s0 > c0t0d0s0.vtoc
   In HPUX, is there a "prtvtoc /dev/vg00"  (suppose raw device
   needed instead of /dev/vg00 because in Solaris we use  .../rdsk/...)

b)ufsdump 0uf /dev/rdsk/c0t0d0s0  output_device_or_file
    where output can be /dev/rmt/0  or  filename

c)dd if=/dev/rdsk/c0t0d0s0 of=output
   where output can be tape device or file
0
Comment
Question by:sunhux
  • 2
3 Comments
 
LVL 38

Accepted Solution

by:
yuzh earned 500 total points
ID: 22707930
For prtvto (Solaris) the close you can get in HP-UX is pvdisplay -v /dev/dsk/C#t#d#
man pvdisplay
to learn more details
Solaris (ufsdump) ==> HP-UX ( fbackup)
man fbackup
to learn more details.
Please have a look at "HP-UX Solaris command mapping":
http://h20331.www2.hp.com/Hpsub/cache/288622-0-0-225-121.html
and:
http://www.unixguide.net/cgi-bin/unixguide.cgi
 
 
0
 

Author Comment

by:sunhux
ID: 22708406
Thanks yuzh.

Just last few questions  to get the equivalent HP-UX syntax/commands :

What's the equivalent in HP-UX for
a) "ufsdump 0uf dumpfile  /"    (ie backup root)
    (using dump & fbackup)
b) "ufsrestore -ivf dumpfile"   (to do selective restore via ufsrestore)
c)"prtvtoc /dev/rdsk/c0t0d0s2 > partinfo.txt" (to get the partition info for c0t0d0 disk)
d)"prtvtoc /dev/rdsk/c0t0d0s2 < partinfo.txt" (to partition the disk)


Thanks


0
 
LVL 38

Assisted Solution

by:yuzh
yuzh earned 500 total points
ID: 22708847
For backup and recovery, please have a look at the example in:
http://www.cyberciti.biz/faq/hpux-data-backup-restore-commands/
also:
 http://docs.hp.com/en/5991-6552/ch04s03.html
BTW, you can also use "cpio" to perform the backup and restore to/from tape/file etc
the usage is the same as Solaris.    It is not 100% equivalent between HP-UX and Solaris.
 
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now