One Day at a Time

A site for solving the world's problems

Logical Volume Quick Guide

Adapted from these sites:
Red Hat
Red Hat 2
MIT
How to Geek

 changecreatedisplayextendreduceremoveresizes
pvpvchangepvcreatepvdisplaypvextendpvreducepvremovepvresizepvs
lvlvchangelvcreatelvdisplaylvextendlvreducelvremovelvresizelvs
vgvgchangevgcreatevgdisplayvgextendvgreducevgremovevgresizevgs

pv: physical volume (actual disk drive)
lv: logical volume, created from a part of or a single pv
vg: volume group, collection of one or more lv’s

change: change parameters
create: make a new one
display: list the current ones
extend: make it bigger
reduce: make it smaller
remove: make it go poof
resize: change the size
s: display information

Steps to make a new vg:

pvcreate /dev/sdx1
vgcreate VGNAME /dev/sdx1
lvcreate -L sizeGB -n <lvname> <vgname>

Steps to remove a vg:
lvreduce <lvname>

lvremove <lvname>
vgremove <vgname>
pvremove <pvname>

Next Post

Previous Post

© 2024 One Day at a Time

Theme by Anders Norén