1753903 Members
9658 Online
108810 Solutions
New Discussion юеВ

mirrored disk problem

 
Vladislav_6
New Member

mirrored disk problem

I have two physical boot volumes in vg00.
Primary Boot /dev/dsk/c2t2d0 (0/0/2/0.2) and Mirror Boot /dev/dsk/c1t2d0 (0/0/1/1.2)

"ioscan -fnC disk" output:
c1t2d0 - NO_HW

I have removed this disk and put in (0/0/1/1.0).
Now "ioscan -fnC disk" output:
c1t0d0 - CLAIMED

How can i check disk integrity, if:

dd if=/dev/rdsk/c1t0d0 of=/dev/null bs=1024

don't out any message?
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: mirrored disk problem

If your dd test returned no output, the disk is most likely good. I would return it to it's original slot and make sure it is properly seated, then try again.


Pete

Pete
Victor BERRIDGE
Honored Contributor

Re: mirrored disk problem

And do a ioscan without any options to force HW discovery...
If still no success then you may have a controller problem (at 0/0/2/0...)

All the best
Victor
Jannik
Honored Contributor

Re: mirrored disk problem

You should remove the disk from vg00 that you are going to remove from the server. Then when that is done put in the new disk and recreate the mirror on vg00.

remove disk:
# lvreduce -m 0 lv_path pv_path
This for all lvs
# vgreduce /dev/vg00 /dev/dsk/c1t2d0

then take out the disk.

mirror to the new disk:
http://www5.itrc.hp.com/service/iv/node.do?admit=552267591+1108810758895+28353475&node=prodITRC/WW_Start/N1|16|11

But you have removed the disk without removeing the disk from the volume group then you will have to remove it by force:

Remove the missing pv:
# vgreduce -f /dev/vg00
PV with key 1 sucessfully deleted from vg /dev/vg00

Move the existing lvmtab:
mv /etc/lvmtab /etc/lvmtab.old

Now create a new lvmtab:
# vgscan -v

Create a new vg01.conf
# vgcfgbackup vg01

and then start the mirroring :-)
jaton
Devender Khatana
Honored Contributor

Re: mirrored disk problem

Hi,

You removed the disk from one path and put it to other PATH. Now as earlier clarified you will have to manually mirror it. Integrity comes later only after mirror, so far it is same as you put it ( With old contents which might not be consistent).

But the simplest thing to do is to put back it in original slot again and see if it get sensed with "ioscan -fnC disk".

Still for checking integrity of the mirrored Logical volumes do -

#lvdisplay -v /dev/vg00/lvol* |grep -i stale|more

( All Extents which are not synced will be displayed)

HTH,
Devender
Impossible itself mentions "I m possible"
Nguyen Anh Tien
Honored Contributor

Re: mirrored disk problem

these are full procedure
Make the area for LIF and boot utilities
# pvcreate -B /dev/rdsk/c1t0d0

Extend the Vg00 (Volume Group)
#vgextend /dev/vg00 /dev/dsk/c1t0d0

Add the boot utilities
#mkboot /dev/dsk/c1t0d0

Add the new hardware path for added hard disk
#mkboot -a "hpux -lq (;0) /stand/vmunix" /dev/dsk/c1t0d0

Execute the mirroring by using lvextend command.
#lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0
#lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c1t0d0
#lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c1t0d0
#lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c1t0d0
#lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c1t0d0
#lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c1t0d0
#lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c1t0d0
#lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c1t0d0
And other lv is so
Update BDRA of boot disk in root volume group
#lvlnboot -r lvol1 /dev/vg00
#lvlnboot -s lvol2 /dev/vg00

Verify the status and result of mirroring
#lvlnboot -v

Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c2t2d0 (0/0/2/0.2.0) -- Boot Disk
/dev/dsk/c1t0d0 (0/0/1/1.2.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c2t2d0
/dev/dsk/c1t0d0
Root: lvol3 on: /dev/dsk/c2t2d0
/dev/dsk/c1t0d0
Swap: lvol2 on: /dev/dsk/c2t2d0
/dev/dsk/c1t0d0
Dump: lvol2 on: /dev/dsk/c2t2d0, 0

HTH
tienna
HP is simple
Stf
Esteemed Contributor

Re: mirrored disk problem

Hello,

Try :

# diskinfo /dev/rdsk/c1t0d0

if this don't shows the good size of the disk you may replace it !!!

Stf ;-)
Vlad_9
Occasional Contributor

Re: mirrored disk problem

Thanks to all for replies. Finally it was problem with disk. I need to replace it.