1753481 Members
4362 Online
108794 Solutions
New Discussion юеВ

Re: disk replace

 
Trng
Super Advisor

disk replace

Hi,

In my hpux 11.23 ia64 box one of the mirrored root disk failed and saying unavl/no_hw.. no prevoius vfcfgbackup avl.how to replace this without any disturbance in production ..can anyone share step by setp proc ?

rgds
trng
administrator
10 REPLIES 10
Ivan Krastev
Honored Contributor

Re: disk replace

See the entire procedure here - http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf

regards,
ivan
likid0
Honored Contributor

Re: disk replace

Trng
Super Advisor

Re: disk replace

Hi,

by deafault any vgcfgbackup is there in machine ???.. because my one of my boot disk failed ..i have never performed vgcfgbackup earlier ...


rgds
administrator
sujit kumar singh
Honored Contributor

Re: disk replace

Hi

LVM by default runs a vgcfgbackup command in the background and keeps the uptodate backu of the VG whenever a command is run that makes changes to the LVM.

With all the commands like lvextend, lvcreate, lvremove, vgextend, pvchange and all the vgcfgbackup is run at the background.

at the time of execution of the vgcfgbackup command dorectly or as in directly as the auto execution of the LVM commands, the present VG cfg is backed up as /etc/lvmconf/.conf.old and the latest VG cfg is stored as in /etc/lvmconf/.conf


So your system mush have a VG cfg baclup for the VG in question. There are very high cghances and also please refer to the date of those files as said earlier, these tell the date the last vgcfgbackup was run.


Regards
sujit
Trng
Super Advisor

Re: disk replace

Hi,

yes ,i got the vg00.conf ..how to proceed further for IA 64

rgds
administrator
sujit kumar singh
Honored Contributor

Re: disk replace

hi


please get the O/P for
1)#strings /etc/lvmtab
2)#ioscan -fnCdisk
ensure what is the present disk that is good in the VG vg00.
Ensure which one is the new disk.


suppose the Existing healthy disk is /dev/dsk/c0t0d0 and the disk that you are going to replace is /dev/dsk/c0t2d0.


then do the following and do paste the O/Ps of the commands.

3)#diskinfo -v /dev/rdsk/c0t0d0s1
4)#diskinfo -v /dev/rdsk/c0t0d0s2
5)#diskinfo -v /dev/rdsk/c0t0d0s3
6)#vgdisplay -v /dev/vg00
7)vgcfgrestore -l -n /dev/vg00


rest when i get these O/Ps from you:-)

Regards
Sujit
Avinash20
Honored Contributor

Re: disk replace

As suggested by IVAN, please refer to

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

Refer to page number 24, Step 3
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
sujit kumar singh
Honored Contributor

Re: disk replace

hi

i will have to assume lot many things while annswering for this.

Disk that is good disk is /dev/dsk/c0t0d0 and that you are replacing is /dev/dsk/c0t2d0

i assume that for the commands 3 and onwards you find that s1(EFi Partition) is 400 MB and s3(HPSP) is 500MB in size.

follow the steps:
#ioscan -fnC disk -- make sure that /dev/dsk/c0t2d0 is Available and is CLAIMED and the device files are there.
#rmsf -H
#insf
#insf -e -H
#vi /tmp/pdf
3
EFI 400MB
HPUX 100%
HPSP 500MB
#idisk -w -f /tmp/pdf /dev/rdsk/c0t2d0>
#insf -e -H
#ioscan -fnCdisk

Watch that you can see the 3 Ptns on the new disk.

#mkboot -e -l /dev/rdsk/c0t2d0
#vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t2d0s2
#vgsync vg00
#for i in /dev/vg00/lvol*
>do
>lvsync $i
>done

After the syncing is complete,
#dd if=/dev/rdsk/c0t0d0 of=/dev/rdsk/c0t2d0
#dd if=/dev/rdsk/c0t0d0 of=/dev/rdsk/c0t2d0
#vi /tmp/auto
boot vmnix -lq
save and exit
#efi_cp -d /dev/rdsk/c0t2d0 /tmp/auto /EFI/HPUX/AUTO

#lvlnboot -R
#lvlnboot -v

#setboot -h -a -b on
#vi /stand/bootconf
and make sure that both the entries are there.
l /dev/dsk/c0t0d0s2
l /dev/dsk/c0t2d0s2

So you have done that.

Regards
Sujit
sujit kumar singh
Honored Contributor

Re: disk replace

Hi


Please have a look at the following link and take some time to assign points.

This might lead you to get better responses.

http://forums1.itrc.hp.com/service/forums/helptips.do?#33


regardssujit