Solved

Equivalent of prtvtoc, dd, ufsdump in HP-UX

Posted on 2008-10-09
3
1,895 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

856 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