1753453 Members
6268 Online
108794 Solutions
New Discussion юеВ

Dead Disk in HPUX 11

 
SOLVED
Go to solution
Kleener
Advisor

Dead Disk in HPUX 11

Hi all,

Experienced a dead disk on a HPUX 11i machine. The disk was part of the vg00 (only one vg containing 2 disks). The data was expendable so no major worry. vgdisplay shows the following
bash-3.00# vgdisplay
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c1t15d0":
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 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 1
Max PE per PV 4384
VGDA 2
PE Size (Mbytes) 16
Total PE 4374
Alloc PE 3849
Free PE 525
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0


this lists 2 disks. I am trying to add a replacement disk (which is larger than the original) and add it to a new VG for a different use. When I try to create this new VG it complains that the disk path is already recorded in the /etc/lvmtab no doubt a leftover from the previous disk.

ioscan picks up the new disk as follows

bash-3.00# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
======================================================================
disk 0 0/0/1/1.15.0 sdisk CLAIMED DEVICE HP 146 GMAW3147NC
/dev/dsk/c1t15d0 /dev/rdsk/c1t15d0
disk 2 0/0/2/1.15.0 sdisk CLAIMED DEVICE HP 73.4GMAS3735NC
/dev/dsk/c3t15d0 /dev/rdsk/c3t15d0

the new disk is the 146Gb drive disk 0

I can't see a way to remove the old drive from vg00's configuration which should solve the problem as I will then be able to add the new drive.

Any thoughts?

Thanks

Brian

6 REPLIES 6
rariasn
Honored Contributor

Re: Dead Disk in HPUX 11

Ganesan R
Honored Contributor

Re: Dead Disk in HPUX 11

Hi,

First question. Is the disk c1t15d0 is mirrored with c3t15d0? If yes then you need to reduce all the mirrors from c1t15d0, then remove the disk from vg00 and use it for another VG or whatever purpose you need. This is the clean way to remove the entry from /etc/lvmtab.

If it is not mirrored disk then you need to reduce or remove logical extends residing on disk c1t15d0 then remove the the disk from vg00.

Then only you can use this disk for other VG's.
Best wishes,

Ganesh.
Torsten.
Acclaimed Contributor
Solution

Re: Dead Disk in HPUX 11

Hi Brian,

since you replaced the bad disk with a larger disk, you have a problem.

The maximum size of a disk in this VG is 73GB (PE size * Max PE).

You can now continue and use only the half of this disk

or

you get rid of the config information about this disk

("vgreduce -f vg00")

and create a new VG with this disk (if you don't need mirrors).


If you want to have a mirror (for the 73GB) and use the additional space (unmirrored), you can only take an ignite backup and restore it.

Doing this will adjust the LVM structure for the larger disk.

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!   
Kleener
Advisor

Re: Dead Disk in HPUX 11

Thanks for all replies.....

The disk is not mirrored so no bothers there....I don't really care about the data on the disk so am happy to lose the logical volume that was on it.

Just need to remove it from the volume group so I can reuse the path.

I will try some of the suggestions and get back to you.

Brian
Kleener
Advisor

Re: Dead Disk in HPUX 11

Thanks to all - Torstens command

vgreduce -f vg00 has sorted this out.

Will assign points

Brian
Kleener
Advisor

Re: Dead Disk in HPUX 11

vgreduce -f vg00 sorted it out....

Needed to make a copy of /etc/lvmtab and then run

vgscan -v

Thanks