Operating System - HP-UX
1752753 Members
4667 Online
108789 Solutions
New Discussion юеВ

Re: Primary root disk replace without reboot HP UX 11.11

 
SOLVED
Go to solution
vmatulis
Occasional Advisor

Primary root disk replace without reboot HP UX 11.11

HP recommends booting the server from alternate boot disk in order to replace primary boot disk. Is there a way to change it without reboot? 11.11 hot swap disk.
14 REPLIES 14
IT_2007
Honored Contributor

Re: Primary root disk replace without reboot HP UX 11.11

Yes . you can do it if it is completely DEAD.

ioscan -fnCdisk

and check if it is CLAIMED or NO_HW.

Also you need to make sure how server is booted off.

echo "boot_string/S" |adb /stand/vmunix /dev/mem

replace mem to kmem if it is a vpar.

If is completely dead then pull dead one and replace with new one.

pvcreate -B /dev/rdsk/cXXtYYdZZ
vgcfgrestore -n /dev/vg00 /dev/dsk/cXXtYYdZZ
vgsync /dev/vg00
john D_3
Frequent Advisor

Re: Primary root disk replace without reboot HP UX 11.11

If disk is still showing CLAIMED in ioscan. Break the mirror, change the disk and re-create the mirror.
IT_2007
Honored Contributor

Re: Primary root disk replace without reboot HP UX 11.11

If it is not completely dead and still shows CLAIMED in ioscan.

then

lvreduce -m 0 all logical volumes
vgreduce /dev/vg00
repalce it.

pvcreate -B
mkboot newdisk
mkboot -a "hpux -lq" newdisk
vgextend /dev/vg00 newdisk

You need to mirror /stand swap and / in the following order otherwise server won't be bootable.

lvextend -m 1 /dev/vg00/lvol1
lvextend -m 1 /dev/vg00/lvol2
lvextend -m 1 /dev/vg00/lvol2
and then remaining logical volumes.
vmatulis
Occasional Advisor

Re: Primary root disk replace without reboot HP UX 11.11

Sorry, but both answers refer to HP recommended procedure to replace secondary boot drive.
I was advised that vgreduce command will not work trying to remove primary drive.
Drive is not dead.
IT_2007
Honored Contributor

Re: Primary root disk replace without reboot HP UX 11.11

Ok, if you want to replace existing primary disk which server was booted off then above procedure won't work. You need to reboot server with alternate disk and follow above procedure.
vmatulis
Occasional Advisor

Re: Primary root disk replace without reboot HP UX 11.11

Got it...
Bill Hassell
Honored Contributor

Re: Primary root disk replace without reboot HP UX 11.11

If both disks are hot swap, then you can 'fail' the primary pulling it out. The system will discover the missing disk and start using the mirror copy. Now the disk no longer working and you can follow the steps above. All of this assumes you have a good mirror copy (no stale extents).


Bill Hassell, sysadmin
vmatulis
Occasional Advisor

Re: Primary root disk replace without reboot HP UX 11.11

HP engineer said to that procedure that last step vgreduce of primary disk probably will not work. Have you actually tried that step?. I did swap the drive, but only tried using pvcreate -fB command and it did not like it.
I guess if that steps vgreduce works, then should be no problem.
john D_3
Frequent Advisor
Solution

Re: Primary root disk replace without reboot HP UX 11.11

Hi,

I tried this in my environment several time and it should work. HP offer true active/active mirroring. It doesnt matter you boot your machine from primary disk or alternate both disk. Under mirroring both disks always work active/active. If you remove one disk by vgreduce the other disk will take its place.