一、需求场景
将主机的2块数据盘(253T + 253T)"合并" 后挂载到 /bio 目录下,要求文件系统格式化为 xfs。
- 数据盘
/dev/sdb:256T
/dev/sdc:256T

- 文件系统:ext4
- 挂载目录:/bio
- OS版本:CentOS 7.6

- lvm版本:lvm2
二、实现方法
使用 LVM 逻辑卷管理来实现。
二、实现步骤
1. 磁盘分区(parted,非必须)
在将磁盘或者磁盘分区用作物理卷(PV)之前,需要对其进行初始化工作,即进行磁盘分区操作;因磁盘分区需求大于2T,所以 fdisk 命令无法实现管理,需要使用 parted 命令来做磁盘分区管理。
/dev/sdb :256T
# 新建/dev/sdb 的磁盘标签类型为 GPT [root@module ~]# parted /dev/sdb mklabel gpt Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue? Yes/No? Y Information: You may need to update /etc/fstab. # 将/dev/sdb 整个空间分给同一个分区 [root@module ~]# parted /dev/sdb mkpart primary 0 100% Warning: The resulting partition is not properly aligned for best performance. Ignore/Cancel? I Information: You may need to update /etc/fstab.
/dev/sdc:256T
# 新建/dev/sdc 的磁盘标签类型为 GPT [root@module ~]# parted /dev/sdc mklabel gpt # 将/dev/sdc 整个空间分给同一个分区 [root@module ~]# parted /dev/sdc mkpart primary 0 100% Warning: The resulting partition is not properly aligned for best performance. Ignore/Cancel? I Information: You may need to updat


4541

被折叠的 条评论
为什么被折叠?



