Advanced diskpartition #quicknotes #notes
partitioning using fdisk
primary {sda1 sda2 sda3}, extended {sda4}
physical volume
pvcreate
pvcreate /dev/sda1 /dev/sda2 /dev/sda3
pvs or pvdisplay - for showing
volume group
vgcreate
vgcreate <newname> <path of volumes>
vgs or vgdisplay
logical volume
lvcreate
lvcreate -L +20G -n <newname> <vg name>
lvrename
lvextend
lvreduce
partitioning using fdisk
primary {sda1 sda2 sda3}, extended {sda4}
physical volume
pvcreate
pvcreate /dev/sda1 /dev/sda2 /dev/sda3
pvs or pvdisplay - for showing
volume group
vgcreate
vgcreate <newname> <path of volumes>
vgs or vgdisplay
logical volume
lvcreate
lvcreate -L +20G -n <newname> <vg name>
lvrename
lvextend
lvreduce