lvm:create_a_logical_volume_using_lvm
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
lvm:create_a_logical_volume_using_lvm [2019/11/30 13:49] – removed peter | lvm:create_a_logical_volume_using_lvm [2020/07/26 15:48] (current) – old revision restored (2019/11/30 13:49) 192.99.5.48 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== LVM - Create a logical volume using LVM ====== | ||
+ | Logical volumes are created using the **lvcreate** command: | ||
+ | |||
+ | <code bash> | ||
+ | lvcreate --size 256M --name foo /dev/vg01 | ||
+ | </ | ||
+ | |||
+ | The volume will be accessible as either **/ | ||
+ | |||
+ | |||
+ | ===== Testing ===== | ||
+ | |||
+ | Verify the existence of the logical volume using the **lvdisplay** command: | ||
+ | |||
+ | <code bash> | ||
+ | lvdisplay / | ||
+ | </ | ||
+ | |||
+ | This should give a response of the form: | ||
+ | |||
+ | < | ||
+ | --- Logical volume --- | ||
+ | LV Name / | ||
+ | VG Name vg0 | ||
+ | LV UUID afaHxF-nZrA-S1eo-kjsY-mt6C-p04e-IU8Bqu | ||
+ | LV Write Access | ||
+ | LV Status | ||
+ | # open 0 | ||
+ | LV Size 256.00 MB | ||
+ | Current LE 64 | ||
+ | Segments | ||
+ | Allocation | ||
+ | Read ahead sectors | ||
+ | - currently set to 256 | ||
+ | Block device | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Next steps ===== | ||
+ | |||
+ | Having created a new logical volume you may want to: | ||
+ | |||
+ | * Create a filesystem on it | ||
+ | * Use it as a swap device | ||
+ | |||
+ | ===== Troubleshooting ===== | ||
+ | |||
+ | * [[LVM: | ||
+ | |||
+ | ===== See also ===== | ||
+ | |||
+ | * [[LVM: | ||
+ | * [[LVM: |
lvm/create_a_logical_volume_using_lvm.1575121767.txt.gz · Last modified: 2020/07/15 09:30 (external edit)