Operating System - HP-UX
1753625 Members
5546 Online
108797 Solutions
New Discussion юеВ

Re: replace disk on rx2620 in vg00

 
Ralf Buchhold
Regular Advisor

replace disk on rx2620 in vg00

Hello
i must replace the root-disk from the rx2620 server in a vg00 volume-group.
This is also the booting-disk.
Any idea ?
lvreduce is ok
vgreduce says: vgreduce: Physical volume "/dev/dsk/c3t2d0s2" could not be removed since some of its
physical extents are still in use.

Thanks
Ralf
4 REPLIES 4
Torsten.
Acclaimed Contributor

Re: replace disk on rx2620 in vg00

Because the server is at least running 11.23, you should you

pvchange -a n ...

instead of lvreduce.

Please see the manual for all details and step-by-step instructions:

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

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!   
Steven E. Protter
Exalted Contributor

Re: replace disk on rx2620 in vg00

Shalom,

vgreduce -f vg00

Follow the post command instructions.

Then replace the disk and re-mirror. If you were not already mirrored you have to restore the system from an Ignite tape.

To re-mirror:
pvcreate -B /dev/rdsk/c1t0d0 #use real disk

mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq (;0)/stand/vmunix /dev/rdsk/c1t0d0 # use real disk


# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?

If you are running 64-bit OS:

# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?


vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0

# real disk. repeat for other lvols

lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot
setboot -a 52.1.0 # second disk


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Torsten.
Acclaimed Contributor

Re: replace disk on rx2620 in vg00

Please SEP, I respect you and all your knowledge and experience, but please stop posting the PA-RISC procedures to Integrity related threads - this might cause problems and confusion.

The rx2620 is an Integrity.

Sorry.

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!   
Tim Nelson
Honored Contributor

Re: replace disk on rx2620 in vg00

If you were able to lvreduce already then why not do the following.

Take server down. Replace bad disk. Boot from good disk with hpux -lq .

vgcfgrecover new disk into vg00.

then follow the integrity process for root volume mirroring.

Reboot one last time from the new disk as a test.