Lvremove: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= =Overview= Gather statistics on the free space before removing, and also on the size of the logical volume to be removed: <pre> vgs </pre> <pre> lvs </pre>...") |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=Internal= | =Internal= | ||
* [[Linux_Logical_Volume_Management_Operations#Logical_Volume_Management_Operations|Logical Volume Operations]] | |||
=Overview= | =Overview= | ||
Removes a logical volume from a volume group. | |||
Gather statistics on the free space before removing, and also on the size of the logical volume to be removed with [[vgs]] and [[lvs]]. | |||
Gather statistics on the free space before removing, and also on the size of the logical volume to be removed | |||
vgs | |||
lvs | |||
Unmount the volume if necessary (or shutdown the service that is using it, as it is the case with Docker): | Unmount the volume if necessary (or shutdown the service that is using it, as it is the case with Docker): | ||
<pre> | <pre> | ||
umount /dev/ | umount /dev/<volume-group-name>/<logical-volume-name> | ||
</pre> | </pre> | ||
<pre> | <pre> | ||
umount /dev/docker_vg/docker-pool | |||
</pre> | </pre> | ||
Then remove the logical volume: | |||
<pre> | <pre> | ||
[ | lvremove [-v] /dev/<volume-group-name>/<logical-volume-name> | ||
</pre> | </pre> | ||
<pre> | <pre> | ||
lvremove | lvremove /dev/docker_vg/docker-pool | ||
</pre> | </pre> |
Latest revision as of 18:03, 23 May 2017
Internal
Overview
Removes a logical volume from a volume group.
Gather statistics on the free space before removing, and also on the size of the logical volume to be removed with vgs and lvs.
Unmount the volume if necessary (or shutdown the service that is using it, as it is the case with Docker):
umount /dev/<volume-group-name>/<logical-volume-name>
umount /dev/docker_vg/docker-pool
Then remove the logical volume:
lvremove [-v] /dev/<volume-group-name>/<logical-volume-name>
lvremove /dev/docker_vg/docker-pool