Operating System - HP-UX
1833783 Members
2473 Online
110063 Solutions
New Discussion

Cloning a Hard Disk Drive (HDD) In HP-UX Version 8.

 
Eric Browning
Occasional Contributor

Cloning a Hard Disk Drive (HDD) In HP-UX Version 8.

Belive it or not we are still using Version 8 of HP-UX to automate a particular Test process. As one might conclude the system is aging and we need to CLONE The existing Hard drive. I know little in UNIX and nothing in HP-UX. Does anyone know the command to clone a drive in HP-UX, particularly version 8?
3 REPLIES 3
Bill Hassell
Honored Contributor

Re: Cloning a Hard Disk Drive (HDD) In HP-UX Version 8.

I hope your test process doesn't depend on accurate dates or a reliable cron. There are no tools in version 8 to clone a disk much like Ignite/UX in current versions of HP-UX. The only choice you have is to use dd on the raw device file as input and the same for output. The target disk must at least as large as the current disk. There is no LVM at version 8 so you can't use any extra space on a larger target disk.


Bill Hassell, sysadmin
Lee Tae-kyung
Regular Advisor

Re: Cloning a Hard Disk Drive (HDD) In HP-UX Version 8.

Hi..

1. Add a new disk to system
2. Check the new disk device name.
#ioscan -fknC disk
3. Copy a disk with dd command
#dd if=/dev/rdsk/c0t1d0 of=/dev/rdsk/c0t2d0 bs=512K
(if : a existing disk , of : a new disk )

Have a good time
I think I am a specialist in IT Korea^^. I am a programmer and SE and DBA
Bill Hassell
Honored Contributor

Re: Cloning a Hard Disk Drive (HDD) In HP-UX Version 8.

Sorry, no ioscan in version 8 or earlier. Your /etc/checklist file (called fstab in current versions of HP-UX) has the device file name for your disk. It will be /dev/dsk/XXXX but in the dd command, you'll need to use the rdsk device as in: /dev/rdsk/XXXX. NOTE: Unlike current HP-UX, the device files for a new disk are not added automatically so you'll have to create the device files. Refer to your 8.x manuals for the mknod commands.


Bill Hassell, sysadmin