Re: Mirror disk replacement

 
SOLVED
Go to solution
Marco A.
Esteemed Contributor

Mirror disk replacement

Hi,

Basically we are trying to replace a failed mirror drive, but there're a couple of things that are happening.

Look.

lvlnboot -v it's showing nothing, after a lvnlboot -Rv it shows some info, but we get errors about this other disk everywhere.

look.

root@hawk:~ > lvlnboot -Rv /dev/vg00

lvlnboot: Warning: couldn't query physical volume "/dev/dsk/c2t2d0":

The specified path does not correspond to physical volume attached to

this volume group

lvlnboot: Warning: couldn't query all of the physical volumes.

lvlnboot: Warning: couldn't query physical volume "/dev/dsk/c2t2d0":

The specified path does not correspond to physical volume attached to

this volume group

lvlnboot: Warning: couldn't query all of the physical volumes.

lvlnboot: Warning: couldn't query physical volume "/dev/dsk/c2t2d0":

The specified path does not correspond to physical volume attached to

this volume group

lvlnboot: Warning: couldn't query all of the physical volumes.

lvlnboot: Warning: couldn't query physical volume "/dev/dsk/c2t2d0":

The specified path does not correspond to physical volume attached to

this volume group

lvlnboot: Warning: couldn't query all of the physical volumes.

lvlnboot: Warning: couldn't query physical volume "/dev/dsk/c2t2d0":

The specified path does not correspond to physical volume attached to

this volume group

lvlnboot: Warning: couldn't query all of the physical volumes.

lvlnboot: Warning: couldn't query physical volume "/dev/dsk/c2t2d0":

The specified path does not correspond to physical volume attached to

this volume group

lvlnboot: Warning: couldn't query all of the physical volumes.

lvlnboot: Warning: couldn't query physical volume "/dev/dsk/c2t2d0":

The specified path does not correspond to physical volume attached to

this volume group

lvlnboot: Warning: couldn't query all of the physical volumes.

lvlnboot: Warning: couldn't query physical volume "/dev/dsk/c2t2d0":

The specified path does not correspond to physical volume attached to

this volume group

lvlnboot: Warning: couldn't query all of the physical volumes.

Boot Definitions for Volume Group /dev/vg00:

Physical Volumes belonging in Root Volume Group:

/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk

No Boot Logical Volume configured

Root: lvol3 on: /dev/dsk/c1t2d0

Swap: lvol2 on: /dev/dsk/c1t2d0

Dump: lvol2 on: /dev/dsk/c1t2d0, 0



vgcfgbackup: Warning: couldn't query physical volume "/dev/dsk/c2t2d0":

The specified path does not correspond to physical volume attached to

this volume group

vgcfgbackup: Warning: couldn't query all of the physical volumes.

vgcfgbackup: Couldn't query physical volume "/dev/dsk/c2t2d0":

The specified path does not correspond to physical volume attached to

this volume group

vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 1 disks for "/dev/vg00"; /etc/lvmtab has 2 disks.

Cannot proceed with backup

In other areas like vgdisplay shows..

vgdisplay -v
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t2d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.

{..here continues the output ..}

Any recommendation will be really appreciated.

Regards,

Marc'0
Just unplug and plug in again ....
5 REPLIES 5
YAQUB_1
Respected Contributor
Solution

Re: Mirror disk replacement

Hi,

Can U paste following commands output:-

# ioscan -fnC disk
# strings /etc/lvmtab
# diskinfo /dev/dsk/c2t2d0

BR/
Yaqub
Mridul Shrivastava
Honored Contributor

Re: Mirror disk replacement

The failed disk information is not present in kernel hence you are getting these messages. I would suggest you to confirm the following things:

check vgdisplay o/p for the following:

Cur PV 2
Act PV 2

I am quite sure that both the above values will not match. Does it show the dailed disk in vgdisplay -v o/p ??

Have you replaced the failed disk and after that you started getting above error messages?? If so then try restoring the vg configuration on the replaced disk using vgcfgrestore -n vg00

After this execute vgchange -a y vg00.

I hope you are following all the steps for mirroring the root disk. Refer the following doc for more details on replacing a mirror disk:

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
Time has a wonderful way of weeding out the trivial
Marco A.
Esteemed Contributor

Re: Mirror disk replacement

I attached the ioscan.

diskinfo -v /dev/rdsk/c2t2d0
SCSI describe of /dev/rdsk/c2t2d0:
vendor: FUJITSU
product id: MAJ3182MC
type: direct access
size: 17783240 Kbytes
bytes per sector: 512
rev level: HP07
blocks per disk: 35566480
ISO version: 0
ECMA version: 0
ANSI version: 2
removable media: no
response format: 2


-*/-*/-*/-*/

My curPV & Act.
Cur PV 2
Act PV 1

I need I must run a vgcfgrestore to this dist to avoid those errors, then proceed to remove the disk - replace the disk

Marc'0
Just unplug and plug in again ....
Mridul Shrivastava
Honored Contributor

Re: Mirror disk replacement

If you have not replaced the disk then how did you find that this disk has failed ??

There is a possibility that only LVM header information is corrupt and that may get resolved after doing vgcfgrestore and vgchange.

If that doesn't resolves the problem then do the following:

1. Rename the lvmtab file.
mv /etc/lvmtab /etc/lvmtab.20080704

2. run vgscan
vgscan -av

3. Take vgcfgbackup

This will populate the lvmtab with current information and there won't be any error message.

Then later on you can proceed with adding mirror disk as a fresh task.
Time has a wonderful way of weeding out the trivial
Mridul Shrivastava
Honored Contributor

Re: Mirror disk replacement

In addition to above, I found that following fcp domains are NO_HW. You should check the connectivity of fibre cable to FC Switch/ Storage. However it is not related with this disk trouble since both the internal disk are CLAIMED.
Time has a wonderful way of weeding out the trivial