Difference between revisions of "Lvcreate"
Jump to navigation
Jump to search
↑ http://man7.org/linux/man-pages/man8/lvcreate.8.html
↑ https://stuff.mit.edu/afs/athena/project/rhel-doc/5/RHEL-5-manual/Cluster_Logical_Volume_Manager/LV_create.html
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <code>lvcreate</code><ref>http://man7.org/linux/man-pages/man8/lvcreate.8.html</ref> commands creates a [[logical volume]] (LV) | + | {{lc}}<code>lvcreate</code><ref>http://man7.org/linux/man-pages/man8/lvcreate.8.html</ref> commands creates a [[logical volume]] (LV) |
== Examples == | == Examples == | ||
Line 6: | Line 6: | ||
: <code>lvcreate -l 100%FREE -n MY_NEW_LV MY_VG_NAME</code><ref>https://stuff.mit.edu/afs/athena/project/rhel-doc/5/RHEL-5-manual/Cluster_Logical_Volume_Manager/LV_create.html</ref> | : <code>lvcreate -l 100%FREE -n MY_NEW_LV MY_VG_NAME</code><ref>https://stuff.mit.edu/afs/athena/project/rhel-doc/5/RHEL-5-manual/Cluster_Logical_Volume_Manager/LV_create.html</ref> | ||
:Logical volume "MY_NEW_LV" created. | :Logical volume "MY_NEW_LV" created. | ||
+ | :<code>[[lvdisplay]]</code> | ||
+ | WARNING: ext4 signature detected on /dev/MY_NEW_LV/MY_NEW_LV at offset 1080. Wipe it? [y/n] | ||
+ | |||
+ | Calculated size of logical volume is 0 [[extents]]. Needs to be larger. | ||
+ | vgs -o +vg_free_count,vg_extent_count | ||
* Create a stripped LV for performance: | * Create a stripped LV for performance: | ||
Line 12: | Line 17: | ||
:::<code>--type striped</code> is not optional as <code>-i</code> option is used) | :::<code>--type striped</code> is not optional as <code>-i</code> option is used) | ||
:::<code>-i 2</code>. Number of stripes. | :::<code>-i 2</code>. Number of stripes. | ||
+ | :::<code>-I</code> <code>--stripesize</code> | ||
+ | |||
+ | == Related commands == | ||
+ | * <code>[[mkfs.ext4]]</code> | ||
== See also == | == See also == | ||
* [[dmsetup]] ls and [[multipath]] -ll | * [[dmsetup]] ls and [[multipath]] -ll | ||
+ | * {{lvcreate}} | ||
* {{lvm commands}} | * {{lvm commands}} | ||
− | * | + | * {{ext4}} |
− | |||
[[Category:Linux]] | [[Category:Linux]] |
Latest revision as of 10:49, 6 September 2023
lvcreate
[1] commands creates a logical volume (LV)
Examples[edit]
- Create LV using all VG space available:
WARNING: ext4 signature detected on /dev/MY_NEW_LV/MY_NEW_LV at offset 1080. Wipe it? [y/n]
Calculated size of logical volume is 0 extents. Needs to be larger. vgs -o +vg_free_count,vg_extent_count
- Create a stripped LV for performance:
lvcreate --size 10G -i 2 -I 64 -n new_stripped_lv_for_performance MY_VG_0
--type striped
is not optional as-i
option is used)-i 2
. Number of stripes.-I
--stripesize
Related commands[edit]
See also[edit]
- dmsetup ls and multipath -ll
lvcreate
- LVM: LVM errors LVM scan commands
lkvmetad
, Add a new disk
- scan:
pvscan
vgscan
- LVM:
lvs
lvmscan
lvm fullreport
lvmreport
lvmconfig
lvmdump
lvmcheck
lvm dumpconfig
- Scan:
pvs
vgs
lvs
pvscan
vgscan
- PV:
pvcreate
pvremove
pvscan
pvremove
pvscan
pvs
pvchange
pvck
pvdisplay
pvresize
- LV:
lvdisplay
lvcreate
lvremove
,lvresize
,lvextend
,lvreduce
,lvrename
- VG:
vgdisplay
,vgcreate
,vgremove
,vgextend
,vgreduce
,vgscan
,vgchange
,vgrename
,vgcfgbackup
,vgcfgrestore
,vgimportclone
,vgck
- Check commands:
pvck
vgck
ext4
e2fsck,
,fsck.ext4
, superblock, inode, block size, mkfs.ext4 tune2fswipefs
,resize2fs
stat
,extents
, Review ext4 journalctl logs. Read-only file system,virt-resize
, ACL
Advertising: