Create a File system on this LV and mount it ( /data01). Create a Lgical Volume in this VG ( /dev/vg01/lvol01).Ĥ. Create Volume group from these 3 PVs ( /dev/vg01).ģ. Create 3 Physical volumes from 3 physical disks ( /dev/sdb, /dev/sdc, /dev/sdd).Ģ. Once the file system is created we can mount the logical volume as per our need. The command mkfs can be used to create file system on top of a logical volume. File systemįile systems are built on top of logical volumes. You can use command lvcreate to create a logical volume in an existing volume group. Logical volumes are block devices which are created from the physical extents present in the same volume group. Logical Volume (LV)Ī Logical Volume is the conceptual equivalent of a disk partition in a non-LVM system. – Generally, larger the PE size, better the performance (though less granular control of LV). – The default size of PE is 4MB, but you can change it to the value you want at the time of VG creation. The size of PE can differe in different VGs and is defined at the time of creating VG. – VGs are made up of PVs, which in turn are made up of physical extents (PEs). The command vgcreate creates a new volume group using the block special device Physical Volume path previously configured for LVM with pvcreate. Volume group is divided into fixed size physical extents. Volume Group (VG)Ī Volume Group gathers together a collection of Logical Volumes and Physical Volumes into one administrative unit. Initializing a block device as physical volume places a label at the start of the device. Use the command pvcreate to initialize storage for use by LVM. The conceptual layers are in turn made up of smaller units like Physical extents(in case of Physical volumes) and Logical extents (in case of Logical Volumes).Įach Physical Volume can be a disk partition, whole disk, meta-device, or a loopback file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |