What is the command to remove Lvm ,Pv and vg
Answers were Sorted based on User's Feedback
Answer / linuxnewbee
frst remove frm fstab .....then
lvremove lvname
vgremove vgname /// u cant remove vg before lv
pvremove pvname(path i.e /dev/...)
Is This Answer Correct ? | 25 Yes | 2 No |
Answer / mahesh
you frist umount lv
remove from fstab then save and quit
first remove lvremove lvname
second remove vgremove vgname
and last go for pv
Is This Answer Correct ? | 24 Yes | 2 No |
Answer / ron
frst remove frm fstab .....then
vgremove vgname
lvremove lvname
pvremove pvname(path i.e /dev/...)
Is This Answer Correct ? | 27 Yes | 8 No |
Answer / linux
dmsetup will only remove /dev/mapper/vg0-lvm0
your pv, vg & lv will remain there but lv will not be active.
just give "vgchange -ay" and your logical volume will again
be available for use.
Is This Answer Correct ? | 7 Yes | 1 No |
Answer / debasis behera
1st remove the entry on /etc/fstab file & save - quit.
2nd remove lvm - lvremove lvname
3rd remove vg - vgremove vgname
4th remove pv - pvremove pvname
Is This Answer Correct ? | 7 Yes | 1 No |
Answer / harsha
first umount
then remove from fstab
then remove lvm using lvremove
then remove groupvolume
using gvremove
then remove physicalvolume
using pvremove
dont forget to reboot your system after deleting.
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / ratheesh
vremove lvname
vgremove vgname /// u cant remove vg before lv
pvremove pvname(path i.e /dev/...)
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / rama shankar maurya
lvremove for lv remove
pvremove for pv remove
vgremove for vg remove
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / shailendra kumar
first remove logical volume then second remove vollume
group and last remove the physical vollume
Is This Answer Correct ? | 1 Yes | 2 No |
Did you ever write any inerface files / profile file to support unix environment setup ?
I want to see how many interfaces(ethernet cards) are working using single command?
What is filter command in unix?
What is cat command in linux?
What does grep command do?
What does pwd mean in linux?
Hi All of Unix/Linux professional Q.Why soft link file not open by cat command. Ihave make following symbolic link but when i open with #cat linkfilename it does not oped please see the following code and try to answer. # ln -s file1 ~/mydir/filea [root@dhcppc0 ~]# cd mydir [root@dhcppc0 mydir]# ls -l total 4 lrwxrwxrwx 1 root root 5 2010-04-04 09:04 filea -> file1 [root@dhcppc0 mydir]# cat filea cat: filea: No such file or directory
1.what is Kernel parameters? 2.how many cpu have use in your machine?
What is a makefile in linux?
A file which is not deleted by normal user and also root (using rm), for that type of file how we delete it?
What does history command do in linux?
What is clang llvm?