lvmerge error

 
SOLVED
Go to solution
Ivajlo Yanakiev
Respected Contributor

lvmerge error

When I try to lvmerge already lvsplt lv volume

lvmerge /dev/vg_ora/lv_orab /dev/vg_ora/lv_ora

I get error :

lvmerge:Couldn't reallocate the logical volume:
Device busy

My LV is unmount
Where is da problem ?
8 REPLIES 8
Hari Kumar
Trusted Contributor

Re: lvmerge error

Hi Ivajlo Yanakiev

fuser the lvm volume if any process that r running on that particular volume try to kill those process and do the above.

with Regards
Hari
Information is Wealth ; Knowledge is Power
SureshKumar_2
Valued Contributor

Re: lvmerge error

Hi

This error confirms, that the lv, lv_ora, is used by some other process.

#fuser -u /

Close the sessions/process shown by fuser. u can add k switch, and force fully kill the process.

#fuser -ku /


And and u can do lvmerge

All the best

suresh
Things are very easy, when u know about it...
Ivajlo Yanakiev
Respected Contributor

Re: lvmerge error

My lv_ora and lv_orab is unmounted.
How I can have some working program over them ?
KapilRaj
Honored Contributor

Re: lvmerge error

You can use lsof |grep "lvname"

Kaps
Nothing is impossible
Sanjiv Sharma_1
Honored Contributor
Solution

Re: lvmerge error

Hello,

Please do the following:
# vgchange -a n /dev/vg_ora
# vgchange -a y /dev/vg_ora
# lvmerge /dev/vg_ora/lv_orab /dev/vg_ora/lv_ora

hth.
Everything is possible
Ivajlo Yanakiev
Respected Contributor

Re: lvmerge error

Tanks for all

I reboot server and problem DISAPPEAR.
But anyway how can I have some lv busy without mounting it ? Is there some flag insite LVM other then FS that cause this problem (Device busy)
KapilRaj
Honored Contributor

Re: lvmerge error

Did u successfully lvsplit initially ?. Did it come out with some errors ?. Is there any monitoring tools (scripts ) present which does an lvdisplay or something like that ?.

Regds,

Kaps
Nothing is impossible
Ivajlo Yanakiev
Respected Contributor

Re: lvmerge error

Yes lvsplit end without problem.
I have EMS but it's not a problem because other lv merge without problem.
The only reason for me is fs corruption.