Operating System - HP-UX
1821804 Members
3283 Online
109637 Solutions
New Discussion юеВ

copy boot-disk, HP-UX 11.0

 

copy boot-disk, HP-UX 11.0

Hi,
I had to change a defective bootable hard disk. Now I want to copy /dev/dsk/c1t2d0 to /dev/dsk/c2t2d0
1. how to copy?
2. how to control?
Thanks, Michael
7 REPLIES 7
harry d brown jr
Honored Contributor

Re: copy boot-disk, HP-UX 11.0


explain to us what is on /dev/dsk/c1t2d0.

If /dev/dsk/c1t2d0 is your current boot disk and you want to have /dev/dsk/c2t2d0 eventually become the boot disk, then there are a few options:

mirror

or

ignite recovery

live free or die
harry d brown jr
Live Free or Die

Re: copy boot-disk, HP-UX 11.0

Hallo Harry,
the new disk has to boot, too.
No ignite-tape available, so I want to mirror.
Bye, Michael
Robert-Jan Goossens
Honored Contributor

Re: copy boot-disk, HP-UX 11.0

Hi Michael,

Could you post a

# vgdisplay -v vg00

Regards,
Robert-Jan
Robert-Jan Goossens
Honored Contributor

Re: copy boot-disk, HP-UX 11.0

By the here is a complete cookbook for replacing disks.

http://www.unixadm.net/howto/bad_disk.html

Re: copy boot-disk, HP-UX 11.0

Hi Robert,
here's the output of vgdisplay
Bye, Michael
Dwyane Everts_1
Honored Contributor

Re: copy boot-disk, HP-UX 11.0

Michael,

Provided you are using LVM on your system, here is a document I use to help me setup root disk mirroring. I in the process of adding the root mirror recovery procedure.

Hope this helps,
Dwyane
Robert-Jan Goossens
Honored Contributor

Re: copy boot-disk, HP-UX 11.0

# vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t2d0
# vgchange -a y /dev/vg00
# mkboot /dev/rdsk/c2t2d0
# mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/c2t2d0
# lvlnboot -R
# lvlnboot -v
should be simular to mine below
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
/dev/dsk/c2t2d0 (0/0/2/0.2.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Root: lvol3 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Swap: lvol2 on: /dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Dump: lvol2 on: /dev/dsk/c1t2d0, 0

# vgsync /dev/vg00

Regards,
Robert-Jan