Operating System - HP-UX
1832919 Members
2787 Online
110048 Solutions
New Discussion

Re: Error on the vgcfg restore on one of boot disk

 
titu
Regular Advisor

Error on the vgcfg restore on one of boot disk

Hi All,

I am getting error when a do a vgcfgrestore.

error msg reads like this :
vgcfgrestore -n /dev/vg00 /dev/rdisk/disk4_p2 PV /dev/rdisk/disk4_p2 has the following bad block/s with allocated alternates which resides inside the user data area. Please run pvcreate [-B] before re-running vgcfgrestore. Should you wish to override this operation, re-run the command with the -F argument. In doing so, you may encounter data corruption.

Bad blocks: 8 1 149504 70765733 592 278 2144 8 2728 2912 16384 70749024 0 128 128 6 71648837

Here are the commands I ran when replacing a boot disk (based on info read online on hp.com for replacing SAS boot disks in 11.31):

Old disk has persistent DSF of /dev/disk/disk4

Detach failed disk from LVM
pvchange –a N /dev/disk/disk4_p2

remove old disk

replace with new disk

new disk has persistent DSF of /dev/disk/disk7

notify mass storage system the disk has been replaced
scsimgr replace_wwid –D /dev/rdisk/disk4

run io_redirect_dsf to reassign the old LUN instance number to the replacement disk
io_redirect_dsf –d /dev/disk/disk4 –n /dev/disk/disk7

partition the replacement disk with idisk
vi /tmp/idf

3
EFI 500MB
HPUX 100%
HPSP 400MB

Idisk –wf /tmp/idf /dev/rdisk/disk4

Restore the LVM configuration
vgcfgrestore –n /dev/vg00 /dev/rdisk/disk4_p2

Re-enable LVM to the replaced disk
pvchange –a y /dev/disk/disk4_p2

Set up boot area
mkboot –e –l /dev/rdisk/disk4

Update the auto boot file
vi /tmp/auto

boot vmunix –lq

efi_cp –d /dev/rdisk/disk4_p1 /tmp/auto /efi/hpux/auto

vgsync /dev/vg00

still i am facing the same issue.

please help on this.

thanks in advance

titu
3 REPLIES 3
Jeeshan
Honored Contributor

Re: Error on the vgcfg restore on one of boot disk


MirrorDisk/UX greatly simplyfies the process of replacing a damaged disk. Instead of replacing the file system structures and restoring user data from tape, you can simply synchronize the replacement disk from the surviving mirror

#vgcfgrestore -n /dev/dsk/
#vgchange -a y
#vgsymc
#mount -a

a warrior never quits
psr_1
New Member

Re: Error on the vgcfg restore on one of boot disk

Hi,
I would like to understand how you are going to restore the data.
If you are going restore by copying the files on to the individual filesystems, then better go with a fresh VG instead of doing vgcfgrestore.
titu
Regular Advisor

Re: Error on the vgcfg restore on one of boot disk

thanks to all reply.

titu