LVM and VxVM
cancel
Showing results for 
Search instead for 
Did you mean: 

Populating the mirror’s OS partition

 
Samckoyur
Occasional Advisor

Populating the mirror’s OS partition

I have Initialize /dev/rdisk/disk9_p2 for the LVM structures and create a bootable disk using -B option using the pvcreate command.

 

#pvcreate -fb /dev/rdisk/disk9_p2

Physical volume "/dev/rdisk/disk9_p2" has been successfully created.

 

Above command took a long time and after few hours I have pressed ctrl+d then the output arrives stating "Physical volume "/dev/rdisk/disk9_p2" has been successfully created."

 

Then I tried extending the volume group vg00 using the vgextend command.

 

# vgextend vg00 /dev/disk/disk9_p2

 and it says following error

 

vgextend: Warning: couldn't query physical volume "/dev/disk/disk14":
The specified path does not correspond to physical volume attached to
this volume group
vgextend: Warning: couldn't query the list of physical volumes.
vgextend: Couldn't query physical volume "/dev/disk/disk14":
The specified path does not correspond to physical volume attached to
this volume group

 

here I am attaching some more details of my LVM configuration

# ioscan -kfnN /dev/disk/disk9

Class     I  H/W Path  Driver S/W State   H/W Type     Description

===================================================================

disk      9  64000/0xfa00/0x2  esdisk   CLAIMED     DEVICE       HP      LOGICAL VOLUME

                      /dev/disk/disk9      /dev/rdisk/disk9

                      /dev/disk/disk9_p1   /dev/rdisk/disk9_p1

                      /dev/disk/disk9_p2   /dev/rdisk/disk9_p2

                      /dev/disk/disk9_p3   /dev/rdisk/disk9_p3

 

# vgdisplay -v vg00
vgdisplay: Warning: couldn't query physical volume "/dev/disk/disk14":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query the list of physical volumes.
--- 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 3
Act PV 2
Max PE per PV 4234
VGDA 4
PE Size (Mbytes) 8
Total PE 8458
Alloc PE 3912
Free PE 4546
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 541952m
VG Max Extents 67744

vgdisplay: Warning: couldn't query physical volume "/dev/disk/disk14":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query the list of physical volumes.
--- Logical volumes ---
LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 4096
Current LE 512
Allocated PE 512
Used PV 1

vgdisplay: Warning: couldn't query physical volume "/dev/disk/disk14":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query the list of physical volumes.
LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 256
Allocated PE 256
Used PV 1

vgdisplay: Warning: couldn't query physical volume "/dev/disk/disk14":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query the list of physical volumes.
LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 512
Current LE 64
Allocated PE 64
Used PV 1

vgdisplay: Warning: couldn't query physical volume "/dev/disk/disk14":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query the list of physical volumes.
LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 136
Current LE 17
Allocated PE 17
Used PV 1

vgdisplay: Warning: couldn't query physical volume "/dev/disk/disk14":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query the list of physical volumes.
LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 9560
Current LE 1195
Allocated PE 1195
Used PV 1

vgdisplay: Warning: couldn't query physical volume "/dev/disk/disk14":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query the list of physical volumes.
LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 7112
Current LE 889
Allocated PE 889
Used PV 1

vgdisplay: Warning: couldn't query physical volume "/dev/disk/disk14":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query the list of physical volumes.
LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 5768
Current LE 721
Allocated PE 721
Used PV 1

vgdisplay: Warning: couldn't query physical volume "/dev/disk/disk14":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query the list of physical volumes.
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 2064
Current LE 258
Allocated PE 258
Used PV 1


--- Physical volumes ---
PV Name /dev/disk/disk8_p2
vgdisplay: Warning: couldn't query physical volume "/dev/disk/disk14":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query the list of physical volumes.
PV Status available
Total PE 4224
Free PE 312
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk12
vgdisplay: Warning: couldn't query physical volume "/dev/disk/disk14":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query the list of physical volumes.
PV Status available
Total PE 4234
Free PE 4234
Autoswitch On
Proactive Polling On

 

 

ioscan -fnkNC disk
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 8 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HP LOGICAL VOLUME
/dev/disk/disk8 /dev/disk/disk8_p2 /dev/rdisk/disk8 /dev/rdisk/disk8_p2
/dev/disk/disk8_p1 /dev/disk/disk8_p3 /dev/rdisk/disk8_p1 /dev/rdisk/disk8_p3
disk 9 64000/0xfa00/0x2 esdisk CLAIMED DEVICE HP LOGICAL VOLUME
/dev/disk/disk9 /dev/disk/disk9_p2 /dev/rdisk/disk9 /dev/rdisk/disk9_p2
/dev/disk/disk9_p1 /dev/disk/disk9_p3 /dev/rdisk/disk9_p1 /dev/rdisk/disk9_p3
disk 10 64000/0xfa00/0x3 esdisk CLAIMED DEVICE HP LOGICAL VOLUME
/dev/disk/disk10 /dev/rdisk/disk10
disk 11 64000/0xfa00/0x4 esdisk CLAIMED DEVICE HP LOGICAL VOLUME
/dev/disk/disk11 /dev/rdisk/disk11
disk 12 64000/0xfa00/0x5 esdisk CLAIMED DEVICE HP LOGICAL VOLUME
/dev/disk/disk12 /dev/rdisk/disk12
disk 13 64000/0xfa00/0x6 esdisk CLAIMED DEVICE HP LOGICAL VOLUME
/dev/disk/disk13 /dev/rdisk/disk13
disk 14 64000/0xfa00/0x7 esdisk CLAIMED DEVICE HP LOGICAL VOLUME
/dev/disk/disk14 /dev/disk/disk14_p2 /dev/rdisk/disk14 /dev/rdisk/disk14_p2
/dev/disk/disk14_p1 /dev/disk/disk14_p3 /dev/rdisk/disk14_p1 /dev/rdisk/disk14_p3
disk 15 64000/0xfa00/0x8 esdisk CLAIMED DEVICE HP LOGICAL VOLUME
/dev/disk/disk15 /dev/rdisk/disk15
disk 17 64000/0xfa00/0x9 esdisk CLAIMED DEVICE TEAC DVD-ROM DW-224EV
/dev/disk/disk17 /dev/rdisk/disk17

 

Can someone help me out in solving this issue so that I can proceed further.

 

 

4 REPLIES 4
Samckoyur
Occasional Advisor

Re: Populating the mirror’s OS partition

Few additional command output

 

vgdisplay -v vg00 |grep "PV Name"
vgdisplay: Warning: couldn't query physical volume "/dev/disk/disk14":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query the list of physical volumes.
vgdisplay: Warning: couldn't query physical volume "/dev/disk/disk14":

vgdisplay: Warning: couldn't query the list of physical volumes.

PV Name /dev/disk/disk8_p2
PV Name /dev/disk/disk12

 

need more info, please ask.

Torsten.
Acclaimed Contributor

Re: Populating the mirror’s OS partition

Your first command was wrong.

 

It did not take a long time, it was waiting for you!

 

See "man pvcreate" - must be upper case "B"!

 

 

May I ask you why you want to mirror a already hardware mirrored drive?

 

 

However, disk14 was part of vg00 and is no longer available.

 

Send

 

# vgdisplay -v

# strings /etc/lvmtab

# ioscan -fn

(this is needed for further commands in order to check your hardware RAID)


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!   
yadushrimali
Occasional Contributor

Re: Populating the mirror’s OS partition

Hi 

Torsten.
Acclaimed Contributor

Re: Populating the mirror’s OS partition

Please post

 

# saconfig /dev/ciss0

 

# sautil /dev/ciss0

 

# ioscan -fnN

 

# ioscan -m dsf


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!