1834757 Members
2854 Online
110070 Solutions
New Discussion

Re: lvm question

 
Dan Copeland
Regular Advisor

lvm question

Hi guys,

In my V class server I has a bad disk. HP came and replaced the disk. I tried a vgcfgrestore and that failed. So I tried to do a lvreduce -m 0 k ... It removed the replaced disk (c0t4d0) from two of the three logical volumes in the third lv it removed the good disk (c2t4d0) for some reason. Anyway, HP says that the disk that got replaced is also bad. But now I am getting an error on bdf " bdf: Cannot open /etc/mnttab: Permission denied". There is nothing wrong with mnttab. Any ideas??
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: lvm question

There is nothing wrong with mnttab I think.

Your ability to recover any data is probably nill at this point.

If the new disk does not show up on ioscan -fnC disk you do need a new disk.

You first get the disks all working and then you should probably either rebuild the volume group or vgextend the current volume group back onto the replaced disks.

Then you shold be okay to restore data.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Denver Osborn
Honored Contributor

Re: lvm question

What VG was this replacement disk for? If it was vg00, is the root vg mirrored?

Not enough detail yet to know what happened, but can you post the output of "lvdisplay -v /dev/vg00/lvol3" and "vgdisplay -v /dev/the_problem_vg"

When you say the vgcfgrestore failed, what was the error?

-denver

Dan Copeland
Regular Advisor

Re: lvm question

Output requested has been attached

Thanks
erics_1
Honored Contributor

Re: lvm question

Dan,

Have you tried remirroring that lvol?
lvextend -m 1 /dev/vgtools_sftware/lvol1

If successfully synced, try reducing out the mirror on the bad disk:

lvreduce -m 0 /dev/vgtools_sftware/lvol1 \
/dev/dsk/c0t4d0

All the extents show 'current' in lvdisplay so this has a chance. The main issue is with the PV status of 'unavailable'.

Regards,
Eric