PV:Physical Volume, 物理卷
VG:Volume Group,卷组
LV:Logical Volume,逻辑卷
(If commands shows not found, please install it. #sudo yum install lvm2 -y )
[root@shunshun001 /]# pvcreate /dev/nvme0n1
[root@shunshun001 /]# pvcreate /dev/nvme1n1
[root@shunshun001 /]# vgcreate vg_data /dev/nvme0n1
[root@shunshun001 /]# vgextend vg_data /dev/nvme1n1
# lvcreate -l[自定义分区大小] -n[自定义分区名称] [vg名称]
[root@shunshun001 /]# lvcreate -l 100%VG -n lvm_data vg_data
[root@shunshun001 /]# mkfs -t ext4 /dev/vg_data/lvm_data
[root@shunshun001 /]# mount /dev/vg_data/lvm_data /data
Edit /etc/fstab, use mount and umount command to check.
Trouble logging in? Simply enter your email address OR username in order to reset your password.
For faster and more reliable delivery, add support@databasemart.com to your trusted senders list in your email software.