Operating System - HP-UX
1748080 Members
5248 Online
108758 Solutions
New Discussion юеВ

Re: root miirroring error

 
SOLVED
Go to solution
S-M-S
Valued Contributor

Re: root miirroring error



Try this

#pvcreate -f -B /dev/rdsk/c2t1d0s2
fizan
Super Advisor

Re: root miirroring error

diskinfo /dev/rdsk/c2t1d0s2
SCSI describe of /dev/rdsk/c2t1d0s2:
vendor: HP 73.4G
product id: ST373454LC
type: direct access
size: 70766592 Kbytes
bytes per sector: 512

solution:
when i gave insf -e -H 0/1/1/0.1.0 no reaction.

next in general insf -e--- recreted for all

pvcreate -f -B c2t1d0s2... done but now

vgextend says that no such group file or directory is there?
S-M-S
Valued Contributor

Re: root miirroring error

Be sure that you are using currect syntax

#vgextend vg00 /dev/dsk/c2t1d0s2
fizan
Super Advisor

Re: root miirroring error

sreejith,

lvextend -s -m 1 /dev/vg00/lvol1 /dev/dsk/c2t1d0s2
Mirrors for the logical volume "/dev/vg00/lvol1" may
not be fully synchronized as the -s option was used. This may affect data
high availability. Perform lvsync(1M) or vgsync(1M) to
synchronize mirrors.
Logical volume "/dev/vg00/lvol1" has been successfully extended.
lvlnboot: Operation on volume group "/dev/vg00 could not completely
succeed, as the physical volume "/dev/dsk/c2t1d0s2" is in-accessible.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
fizan
Super Advisor

Re: root miirroring error

lvsync -T /dev/vg00/lvol*
lvsync: Couldn't resynchronize stale partitions of the logical volume:
I/O error
lvsync: Couldn't resynchronize logical volume "/dev/vg00/lvol1".
lvsync: Couldn't resynchronize stale partitions of the logical volume:
I/O error
lvsync: Couldn't resynchronize logical volume "/dev/vg00/lvol2".
lvsync: Couldn't resynchronize stale partitions of the logical volume:
I/O error
lvsync: Couldn't resynchronize logical volume "/dev/vg00/lvol3".
lvsync: Couldn't resynchronize stale partitions of the logical volume:
I/O error
lvsync: Couldn't resynchronize logical volume "/dev/vg00/lvol4".
lvsync: Couldn't resynchronize stale partitions of the logical volume:
I/O error
lvsync: Couldn't resynchronize logical volume "/dev/vg00/lvol5".
lvsync: Couldn't resynchronize stale partitions of the logical volume:
I/O error
lvsync: Couldn't resynchronize logical volume "/dev/vg00/lvol6".
lvsync: Couldn't resynchronize stale partitions of the logical volume:
I/O error
lvsync: Couldn't resynchronize logical volume "/dev/vg00/lvol7".
lvsync: Couldn't resynchronize stale partitions of the logical volume:
I/O error
lvsync: Couldn't resynchronize logical volume "/dev/vg00/lvol8".
[rx26-183]/
# lvlnboot -R /dev/vg00
lvlnboot: Operation on volume group "/dev/vg00 could not completely
succeed, as the physical volume "/dev/dsk/c2t1d0s2" is in-accessible.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
[rx26-183]/
fizan
Super Advisor

Re: root miirroring error

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk79_p2 -- Boot Disk
/dev/dsk/c2t0d0s2 -- Boot Disk
Boot: lvol1 on: /dev/disk/disk79_p2
Root: lvol3 on: /dev/disk/disk79_p2
Swap: lvol2 on: /dev/disk/disk79_p2
Dump: lvol2 on: /dev/disk/disk79_p2, 0

Torsten.
Acclaimed Contributor

Re: root miirroring error

For mirroring boot disks see appendix in

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


Make sure to use the new device files, e.g.

/dev/disk/disk5

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!   
fizan
Super Advisor

Re: root miirroring error

tortsen i followed the pdf it looks the steps performed are similar.
Michal Kapalka (mikap)
Honored Contributor

Re: root miirroring error

hi,

in you case i would make it from scratch.

if i need to mirrorthe disks on HP-UX 11.23 use this procedure for many years :

#==============================================




/tmp/mirror_part1.sh - preparing the disk for mirroring and extend the VG
/tmp/mirror_part2.sh - exltend the LV-s and finish the mirroring process


Primary disk : /dev/rdsk/c0t0d0 ( source )

Secondary disk : /dev/rdsk/c4t0d0 ( destination - disk for extending / mirroring )

Content of "partitionfile"

3
EFI 500MB
HPUX 100%
HPSP 400MB


#=====================================================
# /tmp/mirror_part1.sh ( phase1 )
#=====================================================

set -x
idisk -wf /tmp/partitionfile /dev/rdsk/c4t0d0
insf -e
pvcreate -B -f /dev/rdsk/c4t0d0s2
mkboot -e -l /dev/dsk/c4t0d0
vgextend /dev/vg00 /dev/dsk/c4t0d0s2

#=====================================================
# /tmp/mirror_part2.sh ( phase2 )
#=====================================================
set -x
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c4t0d0s2
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c4t0d0s2
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c4t0d0s2
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c4t0d0s2
....
lvextend -m 1 /dev/vg00/lvol(x) /dev/dsk/c4t0d0s2
lvlnboot -r /dev/vg00/lvol3 /dev/vg00
lvlnboot -b /dev/vg00/lvol1 /dev/vg00
lvlnboot -s /dev/vg00/lvol2 /dev/vg00
lvlnboot -d /dev/vg00/lvol2 /dev/vg00
efi_ls -d /dev/rdsk/c4t0d0s1
echo "boot vmunix -lq" > /tmp/AUTO.lq
efi_cp -d /dev/rdsk/c4t0d0s1 /tmp/AUTO.lq /EFI/HPUX/AUTO
efi_cp -d /dev/rdsk/c0t0d0s1 /tmp/AUTO.lq /EFI/HPUX/AUTO
lvlnboot -R
lvlnboot -v
setboot

mikap
R.O.
Esteemed Contributor

Re: root miirroring error

Can you append a "vgdisplay -v vg00" ?
"When you look into an abyss, the abyss also looks into you"