1833772 Members
2179 Online
110063 Solutions
New Discussion

Warning mirroring disks

 
SOLVED
Go to solution
MOnica_40
Occasional Advisor

Warning mirroring disks

Hi all,
I've just mirrored two disk in a brand new server. The mirroring has finished successfully, even I've tried to shutdown the server, keep out the primary disk and its has booted with the alternate mirrored disk without problems. However, during the mirroring process, after the lvextend command, it has started to appear a message that says
"lvlnboot: Warning: Can not determine all Physical Volumes on which mirrored copies of
the Logical Volume are located. "/etc/lvmtab" is missing Physical Volumes."
It is just a Warning, but I'm wondering what is going wrong. I've tried to recreate lvmtab, it has been recreated correctly but the message persists doing a lvlnboot -v...
Diskinfo and pvdisplay works and all the HW checks works as well, so, what can be the problem?
If you need more information don't hesitate to ask me.
Thanks a lot
13 REPLIES 13
MarkSyder
Honored Contributor

Re: Warning mirroring disks

I think the clue is in the words "Can not determine all Physical Volumes on which mirrored copies of the Logical Volume are located. "/etc/lvmtab" is missing Physical Volumes."

This indicates to me that the server has noticed that you have removed one of the mirrored discs. I would suggest putting the disc back and rebooting again. I expect the message will disappear.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Mridul Shrivastava
Honored Contributor

Re: Warning mirroring disks

Have you extended all the lv's and have you done lvlnboot -r, lvlnboot -b etc also.
How did u recreate lvmtab. I would suggest you to move lvmtab and do vgscan -av so it will recreate the lvmtab..
There may be a possibility that LVM header got corrupted, in that case I would suggest you to boot into lvm maintenance mode by interrutping the auto boot process and give hpux -lm
then do vgcfgrestore on both the disk and reboot then check for errors....
Time has a wonderful way of weeding out the trivial
Chauhan Amit
Respected Contributor

Re: Warning mirroring disks

Please paste following output:

lvlnboot -v
strings /etc/lvmtab
ioscan -fnC disk

-AMit
If you are not a part of solution , then you are a part of problem
Albert_31
Trusted Contributor

Re: Warning mirroring disks

Hello Monica,

I am not sure if the error you are getting is when both the disks are online and are
accessible, i assume that they are accessible, else the error would have been different. If not correct me.

a) do you get any errors during the

# vgdisplay -v
# vgcfgbackup -f /tmp/vg00.conf /dev/vg00
# vgdisplay -v vg00 (do you find any difference b/w ACT PV and CUR PV)

b) Can you post the following

# vgcfgrestore -f /etc/lvmconf/vg00.conf -l
#vgcfgrestore -f /etc/lvmconf/vg00.conf.old -l
# strings /etc/lvmtab
# vgdisplay -v

regards

Albert
MOnica_40
Occasional Advisor

Re: Warning mirroring disks

Hi all,
Sorry for the delay.
I've rebooted the server, but the problem persists.
Here you've got more information:
# lvlnboot -v
lvlnboot: Warning: Can not determine all Physical Volumes on which mirrored copies of
the Logical Volume are located. "/etc/lvmtab" is missing Physical Volumes.
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (1/0/0/2/0.6.0) -- Boot Disk
/dev/dsk/c2t6d0 (1/0/0/3/0.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t6d0
Root: lvol3 on: /dev/dsk/c0t6d0
Swap: lvol2 on: /dev/dsk/c0t6d0
/dev/dsk/c2t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0

# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c0t6d0
/dev/dsk/c2t6d0
# ioscan -fnCdisk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 1 1/0/0/2/0.6.0 sdisk CLAIMED DEVICE HP 73.4GST373453LC
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0
disk 0 1/0/0/2/1.2.0 sdisk CLAIMED DEVICE _NEC DVD+RW ND-2100AD
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 2 1/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 73.4GMAS3735NC
/dev/dsk/c2t6d0 /dev/rdsk/c2t6d0
#



As the server is not yet in production, I can "play" with it.
I've remake the lvmtab by moving it to another folder and issuing vgscan -a.
Thanks a lot for all you ideas!!
Darrel Louis
Honored Contributor

Re: Warning mirroring disks

Monica,

I think its better to remove the mirror and redo it. It's better to have a good mirror.

See document, appendix A:
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

Darrel
Albert_31
Trusted Contributor

Re: Warning mirroring disks

Hello Monica,

Check if the following resolve the issue

# lvlnboot -b /dev/vg00/lvol1
# lvlnboot -r /dev/vg00/lvol3
# lvlnboot -s /dev/vg00/lvol2
# lvlnboot -v
You should see both the disks..
# lvlnboot -R /dev/vg00

Can you reply to my queries..regarding the issue..

regards

albert
Steven E. Protter
Exalted Contributor
Solution

Re: Warning mirroring disks

Shalom,

I recommend starting over.

pvcreate -B /dev/rdsk/c1t0d0 #use real disk

mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0 # use real disk


# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?

If you are running 64-bit OS:

# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?


vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0

# real disk. repeat for other lvols

lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot
setboot -a 52.1.0 # second disk

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
MOnica_40
Occasional Advisor

Re: Warning mirroring disks

Hi all again,
Albert, sorry I haven't see your questions. Answering them, I will tell you that I found no errors performing this operations:
# vgdisplay -v
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 9
Open LV 9
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4384
VGDA 4
PE Size (Mbytes) 16
Total PE 8748
Alloc PE 3478
Free PE 5270
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 304
Current LE 19
Allocated PE 38
Used PV 2

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

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 400
Current LE 25
Allocated PE 50
Used PV 1

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 10240
Current LE 640
Allocated PE 1280
Used PV 2

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

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 4384
Current LE 274
Allocated PE 548
Used PV 2

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 3248
Current LE 203
Allocated PE 406
Used PV 2

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 4608
Current LE 288
Allocated PE 576
Used PV 2

LV Name /dev/vg00/lvol9
LV Status available/syncd
LV Size (Mbytes) 512
Current LE 32
Allocated PE 64
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c0t6d0
PV Status available
Total PE 4374
Free PE 2610
Autoswitch On

PV Name /dev/dsk/c2t6d0
PV Status available
Total PE 4374
Free PE 2660
Autoswitch On


# vgcfgbackup -f /tmp/vg00.conf /dev/vg00
Volume Group configuration for /dev/vg00 has been saved in /tmp/vg00.conf
# vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 9
Open LV 9
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4384
VGDA 4
PE Size (Mbytes) 16
Total PE 8748
Alloc PE 3478
Free PE 5270
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 304
Current LE 19
Allocated PE 38
Used PV 2

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

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 400
Current LE 25
Allocated PE 50
Used PV 1

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 10240
Current LE 640
Allocated PE 1280
Used PV 2

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

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 4384
Current LE 274
Allocated PE 548
Used PV 2

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 3248
Current LE 203
Allocated PE 406
Used PV 2

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 4608
Current LE 288
Allocated PE 576
Used PV 2

LV Name /dev/vg00/lvol9
LV Status available/syncd
LV Size (Mbytes) 512
Current LE 32
Allocated PE 64
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c0t6d0
PV Status available
Total PE 4374
Free PE 2610
Autoswitch On

PV Name /dev/dsk/c2t6d0
PV Status available
Total PE 4374
Free PE 2660
Autoswitch On


I'm going to follow now your last instructions.
Mridul Shrivastava
Honored Contributor

Re: Warning mirroring disks

while removing the disk, please ensure that you do lvreduce for all LV's and then vgreduce. After that follow the steps mentioned above.
Time has a wonderful way of weeding out the trivial
MOnica_40
Occasional Advisor

Re: Warning mirroring disks

Hi again,
Following Albert steps I've forced the lvols creation, but it didn't work :((
So, I'm going to undo the mirror and do it again, then I will come back to you to tell you the results.
Thanks a lot to all who has tried to help me and have a nice weekend.
MOnica_40
Occasional Advisor

Re: Warning mirroring disks

Hi all,
Steven's solution has worked!!!!!

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (1/0/0/2/0.6.0) -- Boot Disk
/dev/dsk/c2t6d0 (1/0/0/3/0.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t6d0
/dev/dsk/c2t6d0
Root: lvol3 on: /dev/dsk/c0t6d0
/dev/dsk/c2t6d0
Swap: lvol2 on: /dev/dsk/c0t6d0
/dev/dsk/c2t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0


Before try it, I've changed the HD to avoid a HW failure, but redoing the mirror on my way failed again...
So I've tried Steven steps and it has worked.
Thanks for your help, Steven. And all the rest, of course.
Chauhan Amit
Respected Contributor

Re: Warning mirroring disks

Good to know that issue is resolved. Thanks for sharing the solution with us.

-Amit
If you are not a part of solution , then you are a part of problem