cancel
Showing results for 
Search instead for 
Did you mean: 

root miirroring error

SOLVED
Go to solution
fizan
Super Advisor

root miirroring error

pvcreate -B /dev/rdsk/c2t1d0s2
pvcreate: Unable to query the I/O interface: System call error.

31 REPLIES
cnb
Honored Contributor

Re: root miirroring error

cnb
Honored Contributor

Re: root miirroring error

Michal Kapalka (mikap)
Honored Contributor

Re: root miirroring error

hi,

check if you have created the special device :

hope you made this structure on the disk :

EFI 500MB
HPUX 100%
HPSP 400MB

if not try to run insf -eC disk

ioscan -fnC disk

ll /dev/rdsk/c2t1d0s2

mikap
AVV
Super Advisor

Re: root miirroring error

Did ioscan -fnC disk , shows you the disk path is claimed ?
S-M-S
Valued Contributor

Re: root miirroring error

Hi Fizan,

What is your OS version?

Is it a local disk or a LUN presented from a storage ?
fizan
Super Advisor

Re: root miirroring error

disk 1 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c2t1d0 /dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0 /dev/rdsk/c2t1d0s2
/dev/dsk/c2t1d0s1 /dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s1 /dev/rdsk/c2t1d0s3

show as claimed state.
# cat /tmp/idf
3
EFI 500MB
HPUX 100%
HPSP 400MB

am getting this error ever time.
can you plz correct me where am i wrong?

Thanks
fizan
Super Advisor

Re: root miirroring error

# uname -a
HP-UX rx26-183 B.11.31 U ia64 3870505015 unlimited-user license

its internal HDD of server.

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

disk also dosen't looks bad.
S-M-S
Valued Contributor

Re: root miirroring error

Hi Fizan,
Please confirm that the divise file associated with this disk is not there in /etc/lvmtab

which version of OS is this ?

Try
#pvcreate -B /dev/rdsk/c2t1d0s2
Torsten.
Acclaimed Contributor

Re: root miirroring error

Please do the same for partition 2:

# diskinfo -v /dev/rdsk/c2t1d0s2

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!   
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"
Torsten.
Acclaimed Contributor

Re: root miirroring error

>> tortsen i followed the pdf it looks the steps performed are similar.



No, they are not, based on what you posted.

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

# vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4356
VGDA 4
PE Size (Mbytes) 32
Total PE 4318
Alloc PE 2278
Free PE 2040
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 2178g
VG Max Extents 69696

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/stale
LV Size (Mbytes) 2016
Current LE 63
Allocated PE 126
Used PV 2

LV Name /dev/vg00/lvol2
LV Status available/stale
LV Size (Mbytes) 8192
Current LE 256
Allocated PE 512
Used PV 2

LV Name /dev/vg00/lvol3
LV Status available/stale
LV Size (Mbytes) 1024
Current LE 32
Allocated PE 64
Used PV 2

LV Name /dev/vg00/lvol4
LV Status available/stale
LV Size (Mbytes) 512
Current LE 16
Allocated PE 32
Used PV 2

LV Name /dev/vg00/lvol5
LV Status available/stale
LV Size (Mbytes) 128
Current LE 4
Allocated PE 8
Used PV 2

LV Name /dev/vg00/lvol6
LV Status available/stale
LV Size (Mbytes) 8192
Current LE 256
Allocated PE 512
Used PV 2

LV Name /dev/vg00/lvol7
LV Status available/stale
LV Size (Mbytes) 8192
Current LE 256
Allocated PE 512
Used PV 2

LV Name /dev/vg00/lvol8
LV Status available/stale
LV Size (Mbytes) 8192
Current LE 256
Allocated PE 512
Used PV 2


--- Physical volumes ---
PV Name /dev/disk/disk79_p2
PV Status available
Total PE 2159
Free PE 1020
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c2t1d0s2
PV Status unavailable
Total PE 2159
Free PE 1020
Autoswitch On
Proactive Polling On

fizan
Super Advisor

Re: root miirroring error

tortsen let me try again as in the pdf.
R.O.
Esteemed Contributor

Re: root miirroring error

The second disk appears as "unavailable". You might activate it with "pvchange -a y /dev/dsk/c2t1d0s2"

Regards,
"When you look into an abyss, the abyss also looks into you"
Michal Kapalka (mikap)
Honored Contributor

Re: root miirroring error

hi,

your OS is HP-UX 11.31, i would recomend use only one type of disk, legasy or agile not both.

mikap