Linux Administration/Devices and Filesystems/LVM/lvcreate
< Linux Administration < Devices and Filesystems < LVM
lvcreate[1] commands creates a logical volume (LV)
Examples:
lvcreate --size 5G -n my_new_logical_volume_name my_vol_group_name
--size or -L
- Create LV using all VG space available:
lvcreate -l 100%FREE -n my_new_logical_volume_name my_vol_group_name[2]
Activities
- Create a new LV with
lvcreate - Create a new stripped LV for performance:
lvcreate --size 50G -i 2 -I 64 -n new_stripped_lv_for_performance my_vg0--type stripedis not optional as-ioption is used)-i 2. Number of stripes.
- Understand differences between LV types:
--type linear|striped|snapshot|mirror|raid|thin|cache|thin-pool|cache-pool - Create a snapshot with:
lvcreate --snapshot(See alsoqemu-img createfor qcow2 snapshots)