Operating System - HP-UX
1834903 Members
2727 Online
110071 Solutions
New Discussion

Re: Change corrupted harddisk in LVM

 
Mike_108
Advisor

Change corrupted harddisk in LVM

I have L2000/800/9000 server with HPUX 11.0
the problem is one of the disk in one of the volume group is corrupted. this disk cannot be access. i try to cahnge the disk by booting in "hpux -lm" then try to activate that volume group but system cannot activate that volume group.
so, i cannot remove this volume group or do something else...
could anyone give a solution for this problem.
6 REPLIES 6
Michael Tully
Honored Contributor

Re: Change corrupted harddisk in LVM

Is the disk part of your /dev/vg00 group ? Does the volume group use mirroring?
Anyone for a Mutiny ?
Rajeev  Shukla
Honored Contributor

Re: Change corrupted harddisk in LVM

If you dont have any importatnt date in this volume group or disk then try removing all logical volume from this disk by lvremove command and then do vgreduce -f to remove the missing PV in this volume group.
Look at man pages or vgreduce for more help.

Cheers
Rajeev
Mike_108
Advisor

Re: Change corrupted harddisk in LVM

no, this vg is not under vg00
actually this vg is for database. there is 6 vg; datavg01, datavg02, datavg03, datavg04, datavg05, and datavg06.and all the vg with only one lV that is lvol01 and mounted on /disk1, /disk2, /disk3 and so on.
the problem is on the datavg04, where i can't even issue a command such as bdf to view the saiz or something else which is accessing that disk. if so, the process will hang just like that.

because of this, any lvm command i can't issued to remove or something else.

hope this info will help you all to help me...
thanks..
Rajeev  Shukla
Honored Contributor

Re: Change corrupted harddisk in LVM

Boot the system in single user mode and reduce that volume group. By vgreduce -f vg_name you can remove all PV which are not accessible. Copy the /etc/lvmtab and remove this then do vgscan to rebuild the /etc/lvmtab

this wasy you should be able to remove that volume group.

Cheers
Rajeev
Mike_108
Advisor

Re: Change corrupted harddisk in LVM

Hi guys,
thanks a lot for all your effort to solve this problem..

regards,
Rajeev  Shukla
Honored Contributor

Re: Change corrupted harddisk in LVM

Hi Muhamad,
Could you tell us how you got your problem solved.

Cheers
Rajeev