Operating System - HP-UX
1753925 Members
8970 Online
108810 Solutions
New Discussion юеВ

help fixing bad lvreduce.

 
SOLVED
Go to solution
Frank Salinas
Occasional Advisor

help fixing bad lvreduce.

I did the following command on HPUX 11.11.
lvreduce -l 40 /dev/vg01/lvabc
then I did my fsadm command. I them found out i did this backwards. and when I do a bdf, /abc is displayed with I/O error. So I tried to do a straight lvremove -f /dev/vg01/lvabc and this also fails. Does anyone know how I can fix this without having to inerupt operations on this server?

Thanks
4 REPLIES 4
Patrick Wallek
Honored Contributor
Solution

Re: help fixing bad lvreduce.

Did the fsadm command succeed or fail?

If it failed, you may be able to do a :

lvextend -l 40 /dev/vg01/lvabc

Otherwise, if this is a critical LV, it may be easier to recreate to the size you need and restore your data.
Frank Salinas
Occasional Advisor

Re: help fixing bad lvreduce.

fsadm fails with cannot open /abc
James R. Ferguson
Acclaimed Contributor

Re: help fixing bad lvreduce.

Hi Frank:

> So I tried to do a straight lvremove -f /dev/vg01/lvabc and this also fails

What error message did you get? Did you first unmount the filesystem?

Regards!

...JRF...

Frank Salinas
Occasional Advisor

Re: help fixing bad lvreduce.

OK, had to unmountit in ordet to get to work. Thanks.