1757924 Members
2625 Online
108866 Solutions
New Discussion юеВ

Disk failure

 
John Jayaseelan
Super Advisor

Disk failure

Hi,

Hp-UX 11.00 on a D380 server.

One of the disks used by a LV is failed. But the failed disk might not have any data for the LV. There is no backup of the LV.

Is the removal of the disk from the LV & VG can help recovering the LV.?

Please tell if there any other ways of recovering the LV.

Thanks
John Jayaseelan

 

 

P.S. This thread has been moved from Disk to HP-UX > LVM and VxVM. - Hp forum Moderator

12 REPLIES 12
Fred Ruffet
Honored Contributor

Re: Disk failure

Issue this command :
lvdisplay -v /dev/vgXX/lv_name |more
for each LV on this VG.
It will show you which PV have data on it.
if no data is no your failed disk, use
vgreduce vgXX /dev/dsk/cXtYdZ

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
John Jayaseelan
Super Advisor

Re: Disk failure

Fred,

Thanks for your reply.

I think 'lvdisplay -v ' displays all the PV used by the LV, But how to find the used PV has data or not.

Is it possible to recover the LV from other disks excluding the failed disk, even if there any data on the failed disk?

Thanks


Fred Ruffet
Honored Contributor

Re: Disk failure

in lvdisplay -v, there is a section with this title :
--- Distribution of logical volume ---
in this one, you will see wich PV are used for this LV.

using the command for each lv of the vg, you will have all actually used pv.

...

But since my first answer, I think of a simplier thing (I'm not 100% woke up in the morning) :
using "vgdisplay -v", you will see how many PE is used on each PV. If all PE are free on a PV, you can reduce the VG from this PV without any problem.

Regards,

Fred

--

"Reality is just a point of view." (P. K. D.)
John Jayaseelan
Super Advisor

Re: Disk failure

Fred,

The failed disk is not displayed (lvdisplay -v) below the heading

--- Distribution of logical volume ---


Alsi it is not displayed on pvdisplay -v

Thanks,
John Jayaseelan



Fred Ruffet
Honored Contributor

Re: Disk failure

you said "pvdisplay -v", not "vgdisplay -v"...

if one of this tree are true :
. None of lvdisplay -v shows your PV
. vgdisplays -v says as many "Total PE" than "Free PE"
. pvdisplay -v displays all PE as free

then you can use vgreduce

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
John Jayaseelan
Super Advisor

Re: Disk failure

Fred,

The PV is not shown on the distribution list of 'lvdisplay -v' but it was listed on the details list with '???' instead of the failed disk name.

The failed disk is not displayed on 'vgdisplay -v'.

Thanks
John Jayaseelan
Fred Ruffet
Honored Contributor

Re: Disk failure

Simpliest way : Could you post as attachement output from those commands ?

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
John Jayaseelan
Super Advisor

Re: Disk failure

Fred,

The failed PV is removed from VG & LV. Received the following message during the LV mount.

mount /ultima
vxfs mount: /dev/vgult/lv_ultima is corrupted. needs checking

Thanks
John Jayaseelan
John Jayaseelan
Super Advisor

Re: Disk failure

Fred,

The following messages were found in syslog.


Nov 18 09:57:09 cctest01 LVM[3363]: vgchange -a y /dev/vgult
Nov 18 10:19:10 cctest01 vmunix: vxfs: mesg 055: vx_metaioerr - /dev/vgult/lv_ul
tima file system meta data read error
Nov 18 10:19:10 cctest01 vmunix: vxfs: mesg 016: vx_ilisterr - file syste
m error reading inode 112191
Nov 18 10:19:10 cctest01 vmunix: vxfs: mesg 057: vx_fset_markbad - /dev/vgult/lv
_ultima file system fileset (index 999) marked bad

Thanks