[SOLVED] Destory or remove Logical Volumes and disk.
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I manage to create a logical volume. I was also able to mount it.
Now how do I destroy or remove it?
I know enough to start with umount -f /APP1
but what do i do after that?
Push comes to shove, its just a virtual disk, so I could simply remove it from virtual box. but i want to get practice on how to properly remove PV and VG
for some reason I am unable to remove the logical volume APP1.
I do know its there because it warns me that its about to be removed when I attempt to remove the volume group.
Any ideas? I am just trying to increase my understanding. If i really want to get rid of it, the vgremove would do the trick.
I have to play around with it a bit more. I did have some ZFS training fore solaris but I forgot it.
I figure that I can play around with LVM as there is not that much of a difference.
out of curiosity, I took a look at the disk management gui. Its soo easy to use.
Such a thing really did not exist in solaris.
As an administrator, which should I be using. My last job we used ssh for everything.
But RHEL is a different beast. I wonder should I just use the gui and make life easier on myself?
At the moment I am unemployed, but that wont be for long because there is a huge demand for unix folks.
[root@CENTOS ~]# lvremove /volume_group_1/APP1
"/volume_group_1/APP1": Invalid path for Logical Volume
[root@CENTOS ~]# lvremove /dev/volume_group_1/APP1
Do you really want to remove active logical volume APP1? [y/n]: y
Logical volume "APP1" successfully removed
[root@CENTOS ~]# vgremove volume_group_1
Volume group "volume_group_1" successfully removed
[root@CENTOS ~]# vgs
No volume groups found
I vaguely recall an LQ thread, maybe three years ago (dunno if it was RH), about a GUI for LVM management and people writing that it was not reliable so better to use the commands directly. Maybe the GUI tool has matured since then. But, if you are contemplating professional use, consider that a) many servers are "headless" and administered solely from the command prompt via ssh and b) GUI admin tools rarely have the full functionality of the underlying commands. Either way, experience of the commands is an asset.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.