标签:linux7 lvm lvcreate No such file or dir
linux7创建逻辑卷lv报错问题#系统版本
cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
#创建LVM分区
fdisk /dev/sdb
#安装lvm2包
yum install -y lvm2
#创建pv
pvcreate /dev/sdb1
#创建vg
vgdata vgdata /dev/sdb1
#创建lv
lvcreate -n lvdata -l +100%FREE vgdata
#格式化逻辑卷
mkfs.ext4 /dev/vgdata/lvdata
#创建挂载点
mkdir /data
#创建lv
lvcreate -n lvdata -l +100%FREE vgdata
#报错信息
/dev/mapper/vgdata-lvdata: open failed: No such file or directory
/dev/vgdata/lvdata: not found: device not cleared
Aborting. Failed to wipe start of new LV.
#使用参数-Zn
lvcreate -Zn -n lvdata -l +100%FREE vgdata
WARNING: Logical volume vgdata/lvdata not zeroed.
Logical volume "lvdata" created.
##其中
-Z|--zero y|n
标签:linux7 lvm lvcreate No such file or dir
原文地址:http://blog.51cto.com/wutengfei/2121228