Hello Friends I am Deepak Saini And today we are discus about the LVM deletion
Lets start
There are few steups for removing the LVM partion ;)
Setups :-
1 1st of all we are umount the LVm partion from where we mount it
syntax:- umount <path of mouting Dir>
2 Delete the entry from the /etc.fstab file which we are doing if you are not know about it plz read from here
3 Then we are update the kernel for mounting isseue
syntax:- mount -a
4 Then we are going to remove the Logical volume
Syntax:-lvremove /dev/mapper/<you lv name>
5 Then we are going to remove the volume group
syntax:- vgremove /dev/mapper/<your vg name>
6 Then we are going for remove the physical volume if you are not know about the phsical voulume no the plz read from here
syntax:- pvremove /dev/sda(partion no )
7 then for going for delete the partion with the help of fdisk
syntax: fdisk -c /dev/sda
we are using d for delete the partion after this and then enter the no of partion which pne we want to delete.
If you are not know how to use fdisk read from here
Thanks for reading and sorry for my R.I.P english _/|_ jai hind
Lets start
There are few steups for removing the LVM partion ;)
Setups :-
1 1st of all we are umount the LVm partion from where we mount it
syntax:- umount <path of mouting Dir>
2 Delete the entry from the /etc.fstab file which we are doing if you are not know about it plz read from here
3 Then we are update the kernel for mounting isseue
syntax:- mount -a
4 Then we are going to remove the Logical volume
Syntax:-lvremove /dev/mapper/<you lv name>
5 Then we are going to remove the volume group
syntax:- vgremove /dev/mapper/<your vg name>
6 Then we are going for remove the physical volume if you are not know about the phsical voulume no the plz read from here
syntax:- pvremove /dev/sda(partion no )
7 then for going for delete the partion with the help of fdisk
syntax: fdisk -c /dev/sda
we are using d for delete the partion after this and then enter the no of partion which pne we want to delete.
If you are not know how to use fdisk read from here
Thanks for reading and sorry for my R.I.P english _/|_ jai hind
0 comments:
Post a Comment