Solved

Equivalent of prtvtoc, dd, ufsdump in HP-UX

Posted on 2008-10-09
3
1,901 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

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…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

685 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