mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 11:26:00 +02:00
lvm: add page (#5328)
This commit is contained in:
parent
f4b334a7c6
commit
0efcf0f12e
1 changed files with 36 additions and 0 deletions
36
pages/linux/lvm.md
Normal file
36
pages/linux/lvm.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
# lvm
|
||||
|
||||
> Manage physical volumes, volume groups, and logical volumes using the Logical Volume Manager (LVM) interactive shell.
|
||||
> More information: <https://man7.org/linux/man-pages/man8/lvm.8.html>.
|
||||
|
||||
- Start the Logical Volume Manager interactive shell:
|
||||
|
||||
`sudo lvm`
|
||||
|
||||
- List the Logical Volume Manager commands:
|
||||
|
||||
`sudo lvm help`
|
||||
|
||||
- Initialize a drive or partition to be used as a physical volume:
|
||||
|
||||
`sudo lvm pvcreate {{/dev/sdXY}}`
|
||||
|
||||
- Display information about physcial volumes:
|
||||
|
||||
`sudo lvm pvdisplay`
|
||||
|
||||
- Create a volume group called vg1 from the physical volume on `/dev/sdXY`:
|
||||
|
||||
`sudo lvm vgcreate {{vg1}} {{/dev/sdXY}}`
|
||||
|
||||
- Display information about volume groups:
|
||||
|
||||
`sudo lvm vgdisplay`
|
||||
|
||||
- Create a logical volume with size 10G from volume group vg1:
|
||||
|
||||
`sudo lvm lvcreate -L {{10G}} {{vg1}}`
|
||||
|
||||
- Display information about logical volumes:
|
||||
|
||||
`sudo lvm lvdisplay`
|
Loading…
Add table
Reference in a new issue