Mirroring disks.

 
Adam Winebaugh
Regular Advisor

Mirroring disks.

Everyone,
Here I go. I have a local disk (c2t2d0), that I need to mirror to a san disk c14t0d0). Here is the pvdisplay from both:

# pvdisplay -v /dev/dsk/c2t2d0 | more
--- Physical volumes ---
PV Name /dev/dsk/c2t2d0
VG Name /dev/vg01
PV Status available
Allocatable yes
VGDA 2
Cur LV 5
PE Size (Mbytes) 4
Total PE 4340
Free PE 15
Allocated PE 4325
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
Proactive Polling On

AND

pvdisplay -v /dev/dsk/c14t0d0 | more
--- Physical volumes ---
PV Name /dev/dsk/c14t0d0
VG Name /dev/vg01
PV Status available
Allocatable yes
VGDA 2
Cur LV 0
PE Size (Mbytes) 4
Total PE 4342
Free PE 4342
Allocated PE 0
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
Proactive Polling On


when attempting to mirror c2t2d0 to c14t0d0. It errors out with:

# lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c14t0d0
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
lvextend: Couldn't re-synchronize stale partitions of the logical volume:
Device offline/Powerfailed

lvextend: Couldn't resynchronize logical volume "/dev/vg01/lvol1".

But I KNOW this is a good disk, and it has power. the lvol I am mirroring goes to a available/Stale state until I run a lvreduce and break the mirror. Thoughs? Any help would be appreciated. I do not know what else to check.
8 REPLIES 8
Adam Winebaugh
Regular Advisor

Re: Mirroring disks.

ALSO!!! If i do a diskinfo on disk c14t0d0 it shows as :

diskinfo /dev/rdsk/c14t0d0
SCSI describe of /dev/rdsk/c14t0d0:
vendor: HP
product id: A6189A
type: direct access
size: 51200 Kbytes
bytes per sector: 512


Look at the size of the disk compared to the pvdisplay above. Make any sense to anyone?
Adam Winebaugh
Regular Advisor

Re: Mirroring disks.

oh here is the output from the VGDISPLAY in case anyone needs it:

# vgdisplay -v /dev/vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 5
Open LV 5
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4342
VGDA 4
PE Size (Mbytes) 4
Total PE 8682
Alloc PE 4325
Free PE 4357
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg01/lvol1
LV Status available/syncd
LV Size (Mbytes) 4000
Current LE 1000
Allocated PE 1000
Used PV 1

LV Name /dev/vg01/lvol2
LV Status available/syncd
LV Size (Mbytes) 9800
Current LE 2450
Allocated PE 2450
Used PV 1

LV Name /dev/vg01/lvol3
LV Status available/syncd
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 500
Used PV 1

LV Name /dev/vg01/lvol4
LV Status available/syncd
LV Size (Mbytes) 500
Current LE 125
Allocated PE 125
Used PV 1

LV Name /dev/vg01/lvol5
LV Status available/syncd
LV Size (Mbytes) 1000
Current LE 250
Allocated PE 250
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c2t2d0
PV Status available
Total PE 4340
Free PE 15
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c14t0d0
PV Status available
Total PE 4342
Free PE 4342
Autoswitch On
Proactive Polling On
Pete Randall
Outstanding Contributor

Re: Mirroring disks.

The key would seem to be "Device offline/Powerfailed".

Could you run an ioscan ( ioscan -fnCdisk ) and check the status of both the disks involved?


Pete

Pete
Adam Winebaugh
Regular Advisor

Re: Mirroring disks.

I already did that, just forgot to include it:

disk 1 0/0/2/0.2.0 sdisk CLAIMED DEVICE FUJITSU MAJ3182MC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0

AND

disk 143 0/3/0/0.1.28.39.0.0.0 sdisk CLAIMED DEVICE HP A6189A
/dev/dsk/c14t0d0 /dev/rdsk/c14t0d0
Adam Winebaugh
Regular Advisor

Re: Mirroring disks.

Also, the DD comes out ok:

# dd if=/dev/dsk/c14t0d0 of=/dev/null bs=1024
51200+0 records in
51200+0 records out
Torsten.
Acclaimed Contributor

Re: Mirroring disks.

Adam, do the same on your local disk (dd).

Also do

# lvdisplay -v /dev/vg01/lvol*|grep stale

You may also check syslog for related entries and the status of the VA7400

# armdsp -a

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!   
Adam Winebaugh
Regular Advisor

Re: Mirroring disks.

Torsten,

I already have all of that. Everything looks good. dd is the same for local disk. NONE of my lvols are stale. They are all available/Synched. ARMDSP shows optimal.

I FOUND THE ISSUE. I am a moron. It is the 50meg lun used as a gatekeeper for the san. I am stupid. Sorry to bother everyone.
Adam Winebaugh
Regular Advisor

Re: Mirroring disks.

Again sorry to have bothered everyone. My mistake. Have some points for your troubles! Thanks guys.