pvcreate 创建pv出现 Can't initialize physical volume"/dev/loop2" of volume group "cinder-volumes2" witho
来源:互联网 发布:wi fi万能钥匙mac版 编辑:程序博客网 时间:2024/06/10 19:51
一、当前使用losetup模拟硬盘创建vg,如下:
mkdidr -p /var/lib/cinder
dd if=/dev/zero of=/var/lib/cinder/cinder-volumes bs=1M count=10000
losetup /dev/loop2 /var/lib/cinder/cinder-volumes
pvcreate /dev/loop2
vgcreate cinder-volumes /dev/loop2
(losetup -f 可以查询出当前第一块没有使用的回环设备)
二、重启后,cinder-volumes这个vg消失
三、使用第一个命令恢复环境的时候,出现
[root@compute-192-168-6-50 ~]# pvcreate /dev/loop2
Can't initialize physical volume "/dev/loop2" of volume group "cinder-volumes" without -ff
四、出现这种情况,需要按顺序先后协助逻辑卷、卷组(必要时还要卸载物理卷)
卸载逻辑卷: lvremove /dev/VolGroup01/LogVol00
卸载vg: vgremove VolGroup01
五、当前这套环境的操作为:
vgremove cinder-volumes
六、如果开机后,需要保存该vg,则设置开机自动挂载
cat /etc/rc.d/rc.local |grep cinder-volumes || echo 'losetup -f /var/lib/cinder/cinder-volumes && vgchange -a y cinder-volumes ' >> /etc/rc.d/rc.local
- pvcreate 创建pv出现 Can't initialize physical volume"/dev/loop2" of volume group "cinder-volumes2" witho
- 创建LVM报错:Can't initialize physical volume "/dev/cciss/c0d1p1" of volume group"VolGroup01" without -ff
- 创建LVM报错:Can't initialize physical volume "/dev/sdb1" of volume group "myvg" without -ff
- 创建物理卷出现如下错误 Can't initialize physical volume的解决方法
- cinder 创建backup volume
- cinder创建volume流程简介
- Volume group "cinder-volumes" not found\n Skipping volume group cinder-volumes
- cinder创建volume的流程分析
- 为OpenStack创建volume group
- 【pvcreate】创建pv
- openstack 创建cinder服务的磁盘时,出现ISCSITargetCreateFailed Failed to create iscsi target for volume
- openstack cinder default volume
- Cinder volume 挂载
- Can't remove open logical volume
- 修改Cinder的Volume配额
- 从Cinder volume启动虚拟机
- service openstack-cinder-volume status
- 从cinder 删除volume 分析cinder rpc
- HTML5表单新增元素与属性
- tomcat内存溢出
- 解决llvm/clang在windows下编译时找不到头文件和Lib的问题
- 在haproxy+nginx+php-fpm环境下访问网站URL被自动加上了nginx服务的私网端口号的故障分析
- 会话管理-cookie,session,禁用cookie的URL重写,token的单态设计模式,异常抛出,UUID,MD5,base64编码
- pvcreate 创建pv出现 Can't initialize physical volume"/dev/loop2" of volume group "cinder-volumes2" witho
- 360浏览器td问题
- webview的物理返回键和顶部返回键的写法
- 黑马程序员——IO(二)——File类、Properties类、打印流、序列流等 .
- xml形式装配bean——spring in action chapter 2
- 计算机书目分享
- jquery ui 页面布局多个table,多个tab,earyui-datagid的fit失效,中间的table格式不对齐
- 在 Linux 上配置一个 syslog 服务器
- 个人windows工作中故障集合