Solved

Equivalent of prtvtoc, dd, ufsdump in HP-UX

Posted on 2008-10-09
3
1,917 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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…
Suggested Courses

627 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