Provisioning and Installing a New Filesystem on a New Logical Volume: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 17: | Line 17: | ||
<pre> | <pre> | ||
vgcreate nfs_vg /dev/sdb | vgcreate nfs_vg /dev/sdb | ||
</pre> | |||
Create a logical volume: | |||
<pre> | |||
lvcreate -y --type linear --extent 100%VG --name nfs_lv nfs_vg | |||
</pre> | </pre> |
Revision as of 23:16, 23 May 2017
Internal
Procedure
Create a new partition on the new block storage. We assume the entire block storage is available, so we won't partition it but we will use it in its entirety. If partitioning is required, use use fdisk or sfdisk.
Use pvcreate to initialize the storage for use as a physical volume with the Logical Volume Manager.
pvcreate /dev/sdb
Use vgcreate to create a volume group that uses the entire physical volume.
vgcreate nfs_vg /dev/sdb
Create a logical volume:
lvcreate -y --type linear --extent 100%VG --name nfs_lv nfs_vg