Operating System - HP-UX
1837606 Members
4378 Online
110117 Solutions
New Discussion

replace a mirrored root disk on itanium with vgcfgrestore

 
masood bt
Regular Advisor

replace a mirrored root disk on itanium with vgcfgrestore

two disks in a server
i want to remove one disk
replace it with another disk
and mirror it

itanium server
11.23 OS

please...
Behind every Great fortune, there is a crime
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor

Re: replace a mirrored root disk on itanium with vgcfgrestore

Hi:

See here (in particular, Appendix-D):

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

Regards!

...JRF...
Anoop Sivan
Frequent Advisor

Re: replace a mirrored root disk on itanium with vgcfgrestore

Hi Masood,
Detach the deffective disk
swlist | grep OLR
pvchange -a N pvname
Remove the disk
Attach new disk
ioscan -fnC disk -->find the new disk
cat < /tmp/partitionfile
> 3
> EFI 500MB
> HPUX 100%
> HPSP 400MB
> EOF
Create the EFI partitions using this template.
idisk -wf /tmp/partitionfile pvname
insf -eC disk
format the efi partision #1
efi_fsinit -d /dev/rdsk/cxtxdxs1
mkboot -e -l /dev/rdsk/c1t4d0
echo "boot vmunix -lq" > /tmp/auto.lq
efi_cp -d /dev/rdsk/cxtxdxs1 /tmp/auto.lq /EFI/HPUX/AUTO
Now you van restore the LVM information to the new disk
vgcfgrestore -n vg00 /dev/rdsk/cxtxdxs2
pvchange -a y /dev/dsk/cxtxdxs2
Wait couple of minuts all the lv's to sync.
(If the disk is not accessible by lvm but an entry in lvmtab, then need to remove the disk entries using pvkey after that remove the ghost disk from vg00)