将新硬盘格式化
parted -s /dev/nvme0n1 mklabel gpt mkpart primary ext4 0% 100%
parted -s /dev/nvme2n1 mklabel gpt mkpart primary ext4 0% 100%
parted -s /dev/nvme3n1 mklabel gpt mkpart primary ext4 0% 100%
parted -s /dev/nvme1n1 mklabel gpt mkpart primary ext4 0% 100%
mkfs.ext4 /dev/nvme0n1
mkfs.ext4 /dev/nvme1n1
mkfs.ext4 /dev/nvme2n1
mkfs.ext4 /dev/nvme3n1
将以上硬盘创建PV
pvcreate /dev/nvme0n1 /dev/nvme1n1 /dev/nvme2n1 /dev/nvme3n1
加入VG
vgcreate vg1 /dev/nvme0n1 /dev/nvme1n1 /dev/nvme2n1 /dev/nvme3n1
创建LV,并将 VG加入LV
lvcreate -L 11.64T -n lvdata vg1
格式化LV
mkfs.ext4 /dev/vg1/lvdata
挂载
mount /dev/vg1/lvdata /data1
网友评论