Operating System - HP-UX
1751871 Members
5370 Online
108782 Solutions
New Discussion юеВ

Re: replace mirror boot disk on ia64

 
SOLVED
Go to solution
Miguel Carabano_1
Regular Advisor

replace mirror boot disk on ia64

Hi team,

I Need replace primary boot disk on ia64.
# idisk -wf /tmp/partitionfile /dev/rdsk/c0t6d0

# diskinfo /dev/rdsk/c0t6d0s1 | grep size

# diskinfo /dev/rdsk/c0t6d0s3 | grep size

# efi_fsinit -d /dev/rdsk/c0t6d0s1

# mkboot -e -l /dev/rdsk/c0t6d0

# efi_ls -d /dev/rdsk/c0t6d0s1 (to check EFI)

# lifls -l /dev/rdsk/c0t6d0s2 (to check LIF)

# efi_cp -d /dev/rdsk/c0t6d0s1 -u /EFI/HPUX/AUTO /tmp/x; cat /tmp/x

# mkboot -a "boot vmunix -lq" /dev/rdsk/c2t6d0

# mkboot -a "boot vmunix -lq" /dev/rdsk/c0t6d0

# dd if=/dev/rdsk/c0t6d0s3 of=/dev/rdsk/c2t1d0s3 bs=1024k

# vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t6d0s2
vgcfgrestore: Cannot restore Physical Volume "/dev/dsk/c0t6d0s2",
Detach the PV or detactivate the VG, before restoring the PV.

fail when i use vgcfgrestore... any idea??

Thanks

Miguel
8 REPLIES 8
Torsten.
Acclaimed Contributor

Re: replace mirror boot disk on ia64

You need to de-activate the LVM access:

# pvchange -a n /dev/...

now replace the disk

# vgcfgrestore ...

# pvchange -a y ...


see

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

for complete steps!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Miguel Carabano_1
Regular Advisor

Re: replace mirror boot disk on ia64

Hi Torsten,

# pvchange -a N /dev/dsk/c0t6d0
pvchange: Couldn't find the volume group to which
physical volume "/dev/dsk/c0t6d0" belongs.

???

Thanks!
Torsten.
Acclaimed Contributor

Re: replace mirror boot disk on ia64

If you have a single path to the disk only, try "n" - not "N".

Did you vgreduce this disk???

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: replace mirror boot disk on ia64

If you have a single path to the disk only, try "n" - not "N".

Did you vgreduce this disk???

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor
Solution

Re: replace mirror boot disk on ia64

... and use "dev/dsk/c0t6d0s2" !!!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Miguel Carabano_1
Regular Advisor

Re: replace mirror boot disk on ia64

Thanks!!!


# pvchange -a n /dev/dsk/c0t6d0s2
Warning: Detaching a physical volume reduces the availability of data
within the logical volumes residing on that disk.
Prior to detaching a physical volume or the last available path to it,
verify that there are alternate copies of the data
available on other disks in the volume group.
If necessary, use pvchange(1M) to reverse this operation.
Physical volume "/dev/dsk/c0t6d0s2" has been successfully changed.
# vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t6d0s2
Volume Group configuration has been restored to /dev/rdsk/c0t6d0s2
# pvchange -a y /dev/dsk/c0t6d0s2
Physical volume "/dev/dsk/c0t6d0s2" has been successfully changed.
# vgsync /dev/vg00
Resynchronized logical volume "/dev/vg00/lvol1".
Resynchronized logical volume "/dev/vg00/lvol2".
Resynchronized logical volume "/dev/vg00/lvol9".
Resynchronized logical volume "/dev/vg00/lvol3".
Resynchronized logical volume "/dev/vg00/lvol4".
Resynchronized logical volume "/dev/vg00/lvol5".
Resynchronized logical volume "/dev/vg00/lvol6".
Resynchronized logical volume "/dev/vg00/lvol7".
Resynchronized logical volume "/dev/vg00/lvol8".
Resynchronized logical volume "/dev/vg00/lvol10".
Resynchronized volume group "/dev/vg00".

Miguel
Miguel Carabano_1
Regular Advisor

Re: replace mirror boot disk on ia64

Ok!
Torsten.
Acclaimed Contributor

Re: replace mirror boot disk on ia64

Now you know you did the correct steps but in a wrong order ...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!