Solved

Equivalent of prtvtoc, dd, ufsdump in HP-UX

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

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

Suggested Solutions

Title # Comments Views Activity
AIX Server 10 96
How to clone solaris 10 machine 33 194
ORA-00972: identifier is too long from Unix but not from Windows in SQLPLUS 17 123
UNIX Script. Send email if failure 8 93
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…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.
Suggested Courses

752 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