1825810 Members
2547 Online
109688 Solutions
New Discussion

lvremove

 
Cliff Lim Kok Hwee
Regular Advisor

lvremove

Gd Day Forum,

I just wrongly created a lv lvol5 and fs as follows:-

The filesystem is not mounted.

I would like to remove the lv lvol5 as follows:

lvremove /dev/vg00/lvol5

The command will remove cleanly lvol5 from the system?

Thanks/cliff
6 REPLIES 6
Sudeesh
Respected Contributor

Re: lvremove

Though I never did it, your command looks ok. Below link may be helpful.

http://maconlinux.net/linux-man-pages/en/lvremove.8.html

Sudeesh
The most predictable thing in life is its unpredictability
Florian Heigl (new acc)
Honored Contributor

Re: lvremove

Yes, this should work without any problem.
As a precaution I always use lvdisplay /dev/vg00/lvol5 and check it's really in closed state.

After that lvremove it, and check vgdisplay shows increased free PE.
yesterday I stood at the edge. Today I'm one step ahead.
Pedro Cirne
Esteemed Contributor

Re: lvremove

Hi,

Yes, it will work. I did it several times.

Enjoy :)

Pedro
HGN
Honored Contributor

Re: lvremove

Hi

Your command syntax is right, you can do a lvdisplay before & after the lvremove to check the free PE.

Rgds

HGN
Tvs
Regular Advisor

Re: lvremove

IF IT IS MOUNTED .

#fuser -km dev/vg00/lvol5

# lvremove dev/vg00/lvol5

#vgscan

rveri
Super Advisor

Re: lvremove

Do this .

1. lvremove -f /dev/vg00/lvol5

do , vgdisplay and verify the lvol is not there.

Cheers ,

Veri.