Operating System - HP-UX
1834279 Members
2074 Online
110066 Solutions
New Discussion

Re: How to eliminate invisible disk from vg00

 
SOLVED
Go to solution
Carme Torca
Super Advisor

How to eliminate invisible disk from vg00

Hi,
I want to eliminate one disk from vg00, but it is not ok.


-- Logical volumes ---
LV Name /dev/vg00/lvol11
VG Name /dev/vg00
LV Permission read/write
LV Status available/stale
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 20480
Current LE 1280
Allocated PE 2560
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/c2t0d0 1280 1280

--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c2t0d0 01833 current ??? 01833 stale
00001 /dev/dsk/c2t0d0 01834 current ??? 01834 stale
00002 /dev/dsk/c2t0d0 01835 current ??? 01835 stale

And when I do

# lvreduce -m 0 /dev/vg00/lvol11 /dev/dsk/c2t1d0

lvreduce: Warning: couldn't query physical volume "/dev/dsk/c2t1d0":
The specified path does not correspond to physical volume attached to
this volume group
lvreduce: Warning: couldn't query all of the physical volumes.
lvreduce: Physical volume "/dev/dsk/c2t1d0" does not belong
to volume group "/dev/vg00".
Logical volume "/dev/vg00/lvol11" is not reduced.

I know thant c2t1d0 is the disk, because I have list of the disk and

# lvlnboot -v
lvlnboot: Couldn't query physical volume "/dev/dsk/c2t1d0":
The specified path does not correspond to physical volume attached to
this volume group

Could anyone help me?
Thanks a lot of,
Carmen.
Users are not too bad ;-)
11 REPLIES 11
Jeeshan
Honored Contributor

Re: How to eliminate invisible disk from vg00

Hi Carmen

>>dev/dsk/c2t0d0 1280 1280

You reduced the wrong disk

your lvdisplay output shows the another disks.
a warrior never quits
Sajjad Sahir
Honored Contributor

Re: How to eliminate invisible disk from vg00

Dear Carme

do strings /etc/lvmtab file
then u can confirm this disk is not belogns to any volume group.if it is not belongs to any volume group,
do ioscan -fnc disk identify the disk

then remove it
rmsf -H then hardware path

thanks and regards

Sajjad Sahir
Sajjad Sahir
Honored Contributor

Re: How to eliminate invisible disk from vg00

lvreduce: Physical volume "/dev/dsk/c2t1d0" does not belong
to volume group "/dev/vg00".

see this one also from u thread which means this disk is not belong the volume group
vg00
so identify correctly then remove it


thanks and regards

Sajjad Sahir
Carme Torca
Super Advisor

Re: How to eliminate invisible disk from vg00

# strings /etc/lvmtab
/dev/vg00
j/dev/dsk/c2t0d0
/dev/dsk/c2t1d0


but at the ioscan does not appers:


# ioscan -fnCdisk
Class I H/W Path Driver S/W State H/W Type Description
=========================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-N
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0

Users are not too bad ;-)
Jeeshan
Honored Contributor

Re: How to eliminate invisible disk from vg00

then how would you reduce that.

Is it damaged or plugged out?
a warrior never quits
Sajjad Sahir
Honored Contributor

Re: How to eliminate invisible disk from vg00


Dear carmen
please vgscan command then again check wiht ioscan -funC disk
and please revert back soon

Sajjad
Carme Torca
Super Advisor

Re: How to eliminate invisible disk from vg00

The disk its damage.... it was at vg00, but now (I don't know what is wrong at the disk).

I only want to remove the configuration and leave it ok. because when this disk c2t1d0 its in the vg00 and the lvols has this information ...




Users are not too bad ;-)
Sajjad Sahir
Honored Contributor

Re: How to eliminate invisible disk from vg00


Dear Camre strings /etc/lvmtab file showing it is in vg00
can u try this command
lvreduce -m 0 /dev/vg00 /dev/dsk/c2t1d0

thanks and regards

Sajjad
Carme Torca
Super Advisor

Re: How to eliminate invisible disk from vg00

Hi,

But its not possible with lvreduce...

# lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/c2t1d0

lvreduce: Warning: couldn't query physical volume "/dev/dsk/c2t1d0":
The specified path does not correspond to physical volume attached to
this volume group
lvreduce: Warning: couldn't query all of the physical volumes.
lvreduce: Physical volume "/dev/dsk/c2t1d0" does not belong
to volume group "/dev/vg00".
Logical volume "/dev/vg00/lvol1" is not reduced.

# strings /etc/lvmtab
/dev/vg00
j/dev/dsk/c2t0d0
/dev/dsk/c2t1d0
#
Users are not too bad ;-)
Jeeshan
Honored Contributor
Solution

Re: How to eliminate invisible disk from vg00

have you tried with?

#vgreduce -l pv_path
a warrior never quits
Carme Torca
Super Advisor

Re: How to eliminate invisible disk from vg00

Perfect!!

I have done:


# lvreduce -m 0 /dev/vg00/lvolXX

with every lvol

After that:

1. save /etc/lvmtab to another file
2. remove /etc/lvmtab
3. use vgscan(1m) -v to re-reate /etc/lvmtab
4. NOW use vgcfgbackup(1m) to save the LVM setup



Users are not too bad ;-)