创建PV报错pvcreate Read-only locking type set
来源:互联网 发布:树莓派python编程 编辑:程序博客网 时间:2024/06/05 07:05
创建PV报错pvcreate Read-only locking type set
创建PV报错
pvcreate /dev/emcpowerd
pvcreate Read-only locking type set.write locks are prohibited.
Can't get lock for orphan PVs
处理过程
测试创分区建文件系统没问题
fdisk /dev/emcpowerd
mkfs.ext4 /dev/emcpowerd1
mount /dev/emcpowerd1 /mnt
cd /mnt
vi test.txt
清理文件头没问题
dd if=/dev/zero of=/dev/emcpowerd
找存储厂家来也没找到原因。
最后查看/etc/lvm/lvm.conf
locking_type=4
修改locking_tpye=1
创建PV成功。
总结:因为是新的系统,各参数都是默认值,根本没想到谁会修改了locking_tpye默认参数.
如下为locking_type各取值介绍。
# Type of locking to use. Defaults to local file-based locking (1).
# Turn locking off by setting to 0 (dangerous: risks metadata corruption
# if LVM2 commands get run concurrently).
# Type 2 uses the external shared library locking_library.
# Type 3 uses built-in clustered locking.
# Type 4 uses read-only locking which forbids any operations that might
# change metadata.
创建PV报错
pvcreate /dev/emcpowerd
pvcreate Read-only locking type set.write locks are prohibited.
Can't get lock for orphan PVs
处理过程
测试创分区建文件系统没问题
fdisk /dev/emcpowerd
mkfs.ext4 /dev/emcpowerd1
mount /dev/emcpowerd1 /mnt
cd /mnt
vi test.txt
清理文件头没问题
dd if=/dev/zero of=/dev/emcpowerd
找存储厂家来也没找到原因。
最后查看/etc/lvm/lvm.conf
locking_type=4
修改locking_tpye=1
创建PV成功。
总结:因为是新的系统,各参数都是默认值,根本没想到谁会修改了locking_tpye默认参数.
如下为locking_type各取值介绍。
# Type of locking to use. Defaults to local file-based locking (1).
# Turn locking off by setting to 0 (dangerous: risks metadata corruption
# if LVM2 commands get run concurrently).
# Type 2 uses the external shared library locking_library.
# Type 3 uses built-in clustered locking.
# Type 4 uses read-only locking which forbids any operations that might
# change metadata.
阅读全文
0 0
- 创建PV报错pvcreate Read-only locking type set
- 【pvcreate】创建pv
- weblogic“InstrumentationEngineConfig.ser”read-only报错
- Linux报错:read-only file system
- android 导入、创建文件到sdcard报错:Failed to push selection: Read-only file system
- 谈谈SET TRANSACTION READ ONLY
- 谈谈SET TRANSACTION READ ONLY
- set the property read only
- 谈谈SET TRANSACTION READ ONLY
- 谈谈SET TRANSACTION READ ONLY
- 报错 /system/app: Read-only file system
- 报错 Could not retrieve transation read-only status server
- Mysql 报错 1036 Table '表名' is read only
- Java报错之Connection is read-only.
- 【Android】报错IOException: Read-only file system问题解决方法
- SET TRANSACTION READ ONLY 只读事务
- pvcreate 创建pv出现 Can't initialize physical volume"/dev/loop2" of volume group "cinder-volumes2" witho
- Linux操作系统报:read-only file system
- eclipse快捷键
- 【比特币】 From P2SH of bitcoin to Smart Contract of ethereum
- python学习:位置参数、默认参数、可变参数 RF实例
- Qt程序运行提示“it could not find or load the QT platform plugin “windows””
- [转]wpa_supplicant详解
- 创建PV报错pvcreate Read-only locking type set
- javascript 设计模式 发布订阅模式
- 任学堂说科技李彦宏、马云、马化腾的人工智能竞赛,获胜的人是他!
- BZOJ3697 点分治
- matlab libsvm svmtrain 完全禁止输出
- Unable to instantiate application 解决办法
- Python 初学者 入门 应该学习 python 2 还是 python 3?
- 【java】快速访问http网络请求框架QuickHttp的使用
- 手机版h5城市选择