vgreduce error

 
Miguel Carabano_1
Regular Advisor

vgreduce error

Hi,

I need help!

#vgreduce /dev/vg00 /dev/dsk/c2t6d0s2
vgreduce: Couldn't query physical volume "/dev/dsk/c2t6d0s2":
The specified path does not correspond to physical volume attached to
this volume group

Thanks

MC
10 REPLIES 10
Sheriff Andy
Trusted Contributor

Re: vgreduce error

What happens when you do a vgdisplay -v vg00? Could you possibly have the wrong disk name?

Miguel Carabano_1
Regular Advisor

Re: vgreduce error

Hi,

#vgdisplay -v vg00
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t6d0s2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 10
Open LV 10
Max PV 16
Cur PV 2
Act PV 1
Max PE per PV 4384
VGDA 2
PE Size (Mbytes) 16
Total PE 4318
Alloc PE 2752
Free PE 1566
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t6d0s2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 64
Allocated PE 64
Used PV 1

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t6d0s2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 10240
Current LE 640
Allocated PE 640
Used PV 1

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t6d0s2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
LV Name /dev/vg00/lvol9
LV Status available/syncd
LV Size (Mbytes) 10240
Current LE 640
Allocated PE 640
Used PV 1

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

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

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

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

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

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

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


--- Physical volumes ---
PV Name /dev/dsk/c0t6d0s2
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t6d0s2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
PV Status available
Total PE 4318
Free PE 1566
Autoswitch On
Sheriff Andy
Trusted Contributor

Re: vgreduce error

I assume that this root drive is mirrored.

Now what happens when you do a;

lvdisplay -v /dev/vg00/lvol7 | more

I would assume (if you have mirroring) that one of the disks would be stale.

Have you tried doing an lvsplit?
Miguel Carabano_1
Regular Advisor

Re: vgreduce error

Hi,

lvdisplay -v /dev/vg00/lvol7 | more
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t6d0s2":
The specified path does not correspond to physical volume attached to
this volume group
lvdisplay: Warning: couldn't query all of the physical volumes.
--- Logical volumes ---
LV Name /dev/vg00/lvol7
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 4096
Current LE 256
Allocated PE 256
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c0t6d0s2 256 256

--- Logical extents ---
LE PV1 PE1 Status 1
00000 /dev/dsk/c0t6d0s2 01792 current
00001 /dev/dsk/c0t6d0s2 01793 current
00002 /dev/dsk/c0t6d0s2 01794 current
00003 /dev/dsk/c0t6d0s2 01795 current
00004 /dev/dsk/c0t6d0s2 01796 current
00005 /dev/dsk/c0t6d0s2 01797 current
00006 /dev/dsk/c0t6d0s2 01798 current
00007 /dev/dsk/c0t6d0s2 01799 current
00008 /dev/dsk/c0t6d0s2 01800 current
00009 /dev/dsk/c0t6d0s2 01801 current
00010 /dev/dsk/c0t6d0s2 01802 current
00011 /dev/dsk/c0t6d0s2 01803 current
00012 /dev/dsk/c0t6d0s2 01804 current
00013 /dev/dsk/c0t6d0s2 01805 current
00014 /dev/dsk/c0t6d0s2 01806 current
00015 /dev/dsk/c0t6d0s2 01807 current
00016 /dev/dsk/c0t6d0s2 01808 current
00017 /dev/dsk/c0t6d0s2 01809 current
00018 /dev/dsk/c0t6d0s2 01810 current
00019 /dev/dsk/c0t6d0s2 01811 current
00020 /dev/dsk/c0t6d0s2 01812 current
00021 /dev/dsk/c0t6d0s2 01813 current
00022 /dev/dsk/c0t6d0s2 01814 current
00023 /dev/dsk/c0t6d0s2 01815 current
00024 /dev/dsk/c0t6d0s2 01816 current
00025 /dev/dsk/c0t6d0s2 01817 current
00026 /dev/dsk/c0t6d0s2 01818 current
00027 /dev/dsk/c0t6d0s2 01819 current
00028 /dev/dsk/c0t6d0s2 01820 current
00029 /dev/dsk/c0t6d0s2 01821 current
00030 /dev/dsk/c0t6d0s2 01822 current
00031 /dev/dsk/c0t6d0s2 01823 current
00032 /dev/dsk/c0t6d0s2 01824 current
00033 /dev/dsk/c0t6d0s2 01825 current
00034 /dev/dsk/c0t6d0s2 01826 current
00035 /dev/dsk/c0t6d0s2 01827 current
00036 /dev/dsk/c0t6d0s2 01828 current
00037 /dev/dsk/c0t6d0s2 01829 current
00038 /dev/dsk/c0t6d0s2 01830 current
00039 /dev/dsk/c0t6d0s2 01831 current
00040 /dev/dsk/c0t6d0s2 01832 current
00041 /dev/dsk/c0t6d0s2 01833 current
00042 /dev/dsk/c0t6d0s2 01834 current
00043 /dev/dsk/c0t6d0s2 01835 current
00044 /dev/dsk/c0t6d0s2 01836 current
00045 /dev/dsk/c0t6d0s2 01837 current
00046 /dev/dsk/c0t6d0s2 01838 current
00047 /dev/dsk/c0t6d0s2 01839 current
00048 /dev/dsk/c0t6d0s2 01840 current
00049 /dev/dsk/c0t6d0s2 01841 current
00050 /dev/dsk/c0t6d0s2 01842 current
00051 /dev/dsk/c0t6d0s2 01843 current
00052 /dev/dsk/c0t6d0s2 01844 current
00053 /dev/dsk/c0t6d0s2 01845 current
00054 /dev/dsk/c0t6d0s2 01846 current
00055 /dev/dsk/c0t6d0s2 01847 current
00056 /dev/dsk/c0t6d0s2 01848 current
00057 /dev/dsk/c0t6d0s2 01849 current
00058 /dev/dsk/c0t6d0s2 01850 current
00059 /dev/dsk/c0t6d0s2 01851 current
00060 /dev/dsk/c0t6d0s2 01852 current
00061 /dev/dsk/c0t6d0s2 01853 current
00062 /dev/dsk/c0t6d0s2 01854 current
00063 /dev/dsk/c0t6d0s2 01855 current
00064 /dev/dsk/c0t6d0s2 01856 current
00065 /dev/dsk/c0t6d0s2 01857 current
00066 /dev/dsk/c0t6d0s2 01858 current
00067 /dev/dsk/c0t6d0s2 01859 current
00068 /dev/dsk/c0t6d0s2 01860 current
00069 /dev/dsk/c0t6d0s2 01861 current
00070 /dev/dsk/c0t6d0s2 01862 current
00071 /dev/dsk/c0t6d0s2 01863 current
00072 /dev/dsk/c0t6d0s2 01864 current
00073 /dev/dsk/c0t6d0s2 01865 current
00074 /dev/dsk/c0t6d0s2 01866 current
00075 /dev/dsk/c0t6d0s2 01867 current
00076 /dev/dsk/c0t6d0s2 01868 current
00077 /dev/dsk/c0t6d0s2 01869 current
00078 /dev/dsk/c0t6d0s2 01870 current
00079 /dev/dsk/c0t6d0s2 01871 current
00080 /dev/dsk/c0t6d0s2 01872 current
00081 /dev/dsk/c0t6d0s2 01873 current
00082 /dev/dsk/c0t6d0s2 01874 current
00083 /dev/dsk/c0t6d0s2 01875 current
00084 /dev/dsk/c0t6d0s2 01876 current
00085 /dev/dsk/c0t6d0s2 01877 current
00086 /dev/dsk/c0t6d0s2 01878 current
00087 /dev/dsk/c0t6d0s2 01879 current
00088 /dev/dsk/c0t6d0s2 01880 current
00089 /dev/dsk/c0t6d0s2 01881 current
00090 /dev/dsk/c0t6d0s2 01882 current
00091 /dev/dsk/c0t6d0s2 01883 current
00092 /dev/dsk/c0t6d0s2 01884 current
00093 /dev/dsk/c0t6d0s2 01885 current
00094 /dev/dsk/c0t6d0s2 01886 current
00095 /dev/dsk/c0t6d0s2 01887 current
00096 /dev/dsk/c0t6d0s2 01888 current
00097 /dev/dsk/c0t6d0s2 01889 current
00098 /dev/dsk/c0t6d0s2 01890 current
00099 /dev/dsk/c0t6d0s2 01891 current
00100 /dev/dsk/c0t6d0s2 01892 current
00101 /dev/dsk/c0t6d0s2 01893 current
00102 /dev/dsk/c0t6d0s2 01894 current
00103 /dev/dsk/c0t6d0s2 01895 current
00104 /dev/dsk/c0t6d0s2 01896 current
00105 /dev/dsk/c0t6d0s2 01897 current
00106 /dev/dsk/c0t6d0s2 01898 current
00107 /dev/dsk/c0t6d0s2 01899 current
00108 /dev/dsk/c0t6d0s2 01900 current
00109 /dev/dsk/c0t6d0s2 01901 current
00110 /dev/dsk/c0t6d0s2 01902 current
00111 /dev/dsk/c0t6d0s2 01903 current
00112 /dev/dsk/c0t6d0s2 01904 current
00113 /dev/dsk/c0t6d0s2 01905 current
00114 /dev/dsk/c0t6d0s2 01906 current
00115 /dev/dsk/c0t6d0s2 01907 current
00116 /dev/dsk/c0t6d0s2 01908 current
00117 /dev/dsk/c0t6d0s2 01909 current
00118 /dev/dsk/c0t6d0s2 01910 current
00119 /dev/dsk/c0t6d0s2 01911 current
00120 /dev/dsk/c0t6d0s2 01912 current
00121 /dev/dsk/c0t6d0s2 01913 current
00122 /dev/dsk/c0t6d0s2 01914 current
00123 /dev/dsk/c0t6d0s2 01915 current
00124 /dev/dsk/c0t6d0s2 01916 current
00125 /dev/dsk/c0t6d0s2 01917 current
00126 /dev/dsk/c0t6d0s2 01918 current
00127 /dev/dsk/c0t6d0s2 01919 current
00128 /dev/dsk/c0t6d0s2 01920 current
00129 /dev/dsk/c0t6d0s2 01921 current
00130 /dev/dsk/c0t6d0s2 01922 current
00131 /dev/dsk/c0t6d0s2 01923 current
00132 /dev/dsk/c0t6d0s2 01924 current
00133 /dev/dsk/c0t6d0s2 01925 current
00134 /dev/dsk/c0t6d0s2 01926 current
00135 /dev/dsk/c0t6d0s2 01927 current
00136 /dev/dsk/c0t6d0s2 01928 current
00137 /dev/dsk/c0t6d0s2 01929 current
00138 /dev/dsk/c0t6d0s2 01930 current
00139 /dev/dsk/c0t6d0s2 01931 current
00140 /dev/dsk/c0t6d0s2 01932 current
00141 /dev/dsk/c0t6d0s2 01933 current
00142 /dev/dsk/c0t6d0s2 01934 current
00143 /dev/dsk/c0t6d0s2 01935 current
00144 /dev/dsk/c0t6d0s2 01936 current
00145 /dev/dsk/c0t6d0s2 01937 current
00146 /dev/dsk/c0t6d0s2 01938 current
00147 /dev/dsk/c0t6d0s2 01939 current
00148 /dev/dsk/c0t6d0s2 01940 current
00149 /dev/dsk/c0t6d0s2 01941 current
00150 /dev/dsk/c0t6d0s2 01942 current
00151 /dev/dsk/c0t6d0s2 01943 current
00152 /dev/dsk/c0t6d0s2 01944 current
00153 /dev/dsk/c0t6d0s2 01945 current
00154 /dev/dsk/c0t6d0s2 01946 current
00155 /dev/dsk/c0t6d0s2 01947 current
00156 /dev/dsk/c0t6d0s2 01948 current
00157 /dev/dsk/c0t6d0s2 01949 current
00158 /dev/dsk/c0t6d0s2 01950 current
00159 /dev/dsk/c0t6d0s2 01951 current
00160 /dev/dsk/c0t6d0s2 01952 current
00161 /dev/dsk/c0t6d0s2 01953 current
00162 /dev/dsk/c0t6d0s2 01954 current
00163 /dev/dsk/c0t6d0s2 01955 current
00164 /dev/dsk/c0t6d0s2 01956 current
00165 /dev/dsk/c0t6d0s2 01957 current
00166 /dev/dsk/c0t6d0s2 01958 current
00167 /dev/dsk/c0t6d0s2 01959 current
00168 /dev/dsk/c0t6d0s2 01960 current
00169 /dev/dsk/c0t6d0s2 01961 current
00170 /dev/dsk/c0t6d0s2 01962 current
00171 /dev/dsk/c0t6d0s2 01963 current
00172 /dev/dsk/c0t6d0s2 01964 current
00173 /dev/dsk/c0t6d0s2 01965 current
00174 /dev/dsk/c0t6d0s2 01966 current
00175 /dev/dsk/c0t6d0s2 01967 current
00176 /dev/dsk/c0t6d0s2 01968 current
00177 /dev/dsk/c0t6d0s2 01969 current
00178 /dev/dsk/c0t6d0s2 01970 current
00179 /dev/dsk/c0t6d0s2 01971 current
00180 /dev/dsk/c0t6d0s2 01972 current
00181 /dev/dsk/c0t6d0s2 01973 current
00182 /dev/dsk/c0t6d0s2 01974 current
00183 /dev/dsk/c0t6d0s2 01975 current
00184 /dev/dsk/c0t6d0s2 01976 current
00185 /dev/dsk/c0t6d0s2 01977 current
00186 /dev/dsk/c0t6d0s2 01978 current
00187 /dev/dsk/c0t6d0s2 01979 current
00188 /dev/dsk/c0t6d0s2 01980 current
00189 /dev/dsk/c0t6d0s2 01981 current
00190 /dev/dsk/c0t6d0s2 01982 current
00191 /dev/dsk/c0t6d0s2 01983 current
00192 /dev/dsk/c0t6d0s2 01984 current
00193 /dev/dsk/c0t6d0s2 01985 current
00194 /dev/dsk/c0t6d0s2 01986 current
00195 /dev/dsk/c0t6d0s2 01987 current
00196 /dev/dsk/c0t6d0s2 01988 current
00197 /dev/dsk/c0t6d0s2 01989 current
00198 /dev/dsk/c0t6d0s2 01990 current
00199 /dev/dsk/c0t6d0s2 01991 current
00200 /dev/dsk/c0t6d0s2 01992 current
00201 /dev/dsk/c0t6d0s2 01993 current
00202 /dev/dsk/c0t6d0s2 01994 current
00203 /dev/dsk/c0t6d0s2 01995 current
00204 /dev/dsk/c0t6d0s2 01996 current
00205 /dev/dsk/c0t6d0s2 01997 current
00206 /dev/dsk/c0t6d0s2 01998 current
00207 /dev/dsk/c0t6d0s2 01999 current
00208 /dev/dsk/c0t6d0s2 02000 current
00209 /dev/dsk/c0t6d0s2 02001 current
00210 /dev/dsk/c0t6d0s2 02002 current
00211 /dev/dsk/c0t6d0s2 02003 current
00212 /dev/dsk/c0t6d0s2 02004 current
00213 /dev/dsk/c0t6d0s2 02005 current
00214 /dev/dsk/c0t6d0s2 02006 current
00215 /dev/dsk/c0t6d0s2 02007 current
00216 /dev/dsk/c0t6d0s2 02008 current
00217 /dev/dsk/c0t6d0s2 02009 current
00218 /dev/dsk/c0t6d0s2 02010 current
00219 /dev/dsk/c0t6d0s2 02011 current
00220 /dev/dsk/c0t6d0s2 02012 current
00221 /dev/dsk/c0t6d0s2 02013 current
00222 /dev/dsk/c0t6d0s2 02014 current
00223 /dev/dsk/c0t6d0s2 02015 current
00224 /dev/dsk/c0t6d0s2 02016 current
00225 /dev/dsk/c0t6d0s2 02017 current
00226 /dev/dsk/c0t6d0s2 02018 current
00227 /dev/dsk/c0t6d0s2 02019 current
00228 /dev/dsk/c0t6d0s2 02020 current
00229 /dev/dsk/c0t6d0s2 02021 current
00230 /dev/dsk/c0t6d0s2 02022 current
00231 /dev/dsk/c0t6d0s2 02023 current
00232 /dev/dsk/c0t6d0s2 02024 current
00233 /dev/dsk/c0t6d0s2 02025 current
00234 /dev/dsk/c0t6d0s2 02026 current
00235 /dev/dsk/c0t6d0s2 02027 current
00236 /dev/dsk/c0t6d0s2 02028 current
00237 /dev/dsk/c0t6d0s2 02029 current
00238 /dev/dsk/c0t6d0s2 02030 current
00239 /dev/dsk/c0t6d0s2 02031 current
00240 /dev/dsk/c0t6d0s2 02032 current
00241 /dev/dsk/c0t6d0s2 02033 current
00242 /dev/dsk/c0t6d0s2 02034 current
00243 /dev/dsk/c0t6d0s2 02035 current
00244 /dev/dsk/c0t6d0s2 02036 current
00245 /dev/dsk/c0t6d0s2 02037 current
00246 /dev/dsk/c0t6d0s2 02038 current
00247 /dev/dsk/c0t6d0s2 02039 current
00248 /dev/dsk/c0t6d0s2 02040 current
00249 /dev/dsk/c0t6d0s2 02041 current
00250 /dev/dsk/c0t6d0s2 02042 current
00251 /dev/dsk/c0t6d0s2 02043 current
00252 /dev/dsk/c0t6d0s2 02044 current
00253 /dev/dsk/c0t6d0s2 02045 current
00254 /dev/dsk/c0t6d0s2 02046 current
00255 /dev/dsk/c0t6d0s2 02047 current

How i can resolve this problem ???
Miguel Carabano_1
Regular Advisor

Re: vgreduce error

Hi,

After apply vgreduce, now! don't update lvmconf.

#vgcfgbackup /dev/vg00 vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicate.
Cannot proceed with backup.

Any help it's good!

Thanks
Sheriff Andy
Trusted Contributor

Re: vgreduce error

You aren't in a mirror. Hope you have a good ignite.

What do you get when you do;

vgcfgrestore -n vg00 -l

As a last resort, you could try using the vgscan command.

Try the vgscan -pv , then try doing a vgscan. You might have to rename the /etc/lvmtab file if it is corrupt.
Mridul Shrivastava
Honored Contributor

Re: vgreduce error

Hi,

if you execute "lvdisplay -k" on all the lv's it will give you the pvkey value of the missing disk then execute lvreduce -k command using that key value for all the lvs. At last execute vgreduce command.
or
If lvmtab doesn't have this physical disk entry then simply execute the following command:
# vgreduce -f /dev/vg00
the above cdommand will remove the physical disks which are not listed in vg00.

I hope one of the above will definitely solve the issue.
Time has a wonderful way of weeding out the trivial
Jannik
Honored Contributor

Re: vgreduce error

Am I right in thinking that you have had a failed disk at some point, which you have changed but it wasn't remirrored?
This is what you could do:

First of all take out the faulted disk and don't put in a new. make sure the volume are running:
vgdisplay and lvdisplay.

Now remove the missing pv:
# vgreduce -f /dev/vg01
PV with key 1 sucessfully deleted from vg /dev/vg01

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

Now create a new lvmtab:
# vgscan -v

Create a new vg00.conf
# vgcfgbackup vg00

**** This is here you could stop if you don't want to mirror the system again ****
**** Use "vgdisplay -v vg00" to check ****


Now you Volume consists of only one mirror and you need to remirror it agiain. So put in the new disk and do:
ioscan
insf
find the new disk and add it to the vg01
pvcreate
vgextend
lvextend -m 1 ...

look for more details at this link:
http://www5.itrc.hp.com/service/iv/node.do?admit=552267591+1108810758895+28353475&node=prodITRC%2FWW_Start%2FN1%7C16%7C11
jaton
Darrel Louis
Honored Contributor

Re: vgreduce error

Hi,

What is the outcome of the following:
# pvdisplay -v /dev/dsk/c2t6d0s2
# diskinfo -v /dev/rdsk/c2t6d0s2

Can you also sent the last 20 lines of vgdisplay -v vg00.

Should disk c2t6d0s2 be the mirror of c0t6d0s2?

Darrel