向vg 里加 hdisk 时报错,解决如下
来源:互联网 发布:开一家淘宝店的成本 编辑:程序博客网 时间:2024/05/17 06:59
If you want to add one disk into one vg:----some error occuer:
Below error occur:
COMMAND STATUS
Command: failed stdout: yes stderr: no
Before command completion, additional instructions may appear below.
0516-1398 /usr/sbin/mkvg: The physical volume hdisk3, appears to belong to
another volume group. Use the force option to add this physical volume
to a volume group.
0516-862 /usr/sbin/mkvg: Unable to create volume group.
------------------
Let us look at the create details:
root@a05scpgapp01/>smit mkvg
Add an Original Volume Group
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
VOLUME GROUP name [testvg]
Physical partition SIZE in megabytes 16 +
* PHYSICAL VOLUME names [hdisk3] +
FORCE the creation of volume group? no +
Activate volume group AUTOMATICALLY yes +
at system restart?
Volume group MAJOR NUMBER [] +#
Create VG Concurrent Capable? no +
-------------------
Reason:
Even we see below information:
root@a05scpgapp01/>lspv
hdisk0 00cde24bb3a0905a rootvg active
hdisk1 00cde24bb3db10ec rootvg active
hdisk2 00cde24ba37763ef datavg active
hdisk3 00cde24b4aba3171 None
we just exportvg testvg which conlude hdisk3,
we do not reducevg testvg hdisk3,
root@a05scpgapp01/>lsvg
rootvg
datavg
-----------
root@a05scpgapp01/>importvg -y testvg hdisk3
synclvodm: No logical volumes in volume group testvg.
testvg
root@a05scpgapp01/>lspv
hdisk0 00cde24bb3a0905a rootvg active
hdisk1 00cde24bb3db10ec rootvg active
hdisk2 00cde24ba37763ef datavg active
hdisk3 00cde24b4aba3171 testvg active
-----------
If we do like this:
root@a05scpgapp01/>reducevg testvg hdisk3
ldeletepv: Volume Group deleted since it contains no physical volumes.
root@a05scpgapp01/>smit mkvg
Add an Original Volume Group
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
VOLUME GROUP name [t_vg]
Physical partition SIZE in megabytes 16 +
* PHYSICAL VOLUME names [hdisk3] +
FORCE the creation of volume group? no +
Activate volume group AUTOMATICALLY yes +
at system restart?
Volume group MAJOR NUMBER [] +#
Create VG Concurrent Capable? no +
----------
COMMAND STATUS
Command: OK stdout: yes stderr: no
Before command completion, additional instructions may appear below.
t_vg
----------
IF we do not the reason, let us simulate the case:
root@a05scpgapp01/>lspv
hdisk0 00cde24bb3a0905a rootvg active
hdisk1 00cde24bb3db10ec rootvg active
hdisk2 00cde24ba37763ef datavg active
hdisk3 00cde24b4aba3171 t_vg active
root@a05scpgapp01/>exportvg t_vg
0516-764 exportvg: The volume group must be varied off
before exporting.
root@a05scpgapp01/>lsvg
t_vg
rootvg
datavg
root@a05scpgapp01/>varyoffvg t_vg
root@a05scpgapp01/>lspv
hdisk0 00cde24bb3a0905a rootvg active
hdisk1 00cde24bb3db10ec rootvg active
hdisk2 00cde24ba37763ef datavg active
hdisk3 00cde24b4aba3171 t_vg
root@a05scpgapp01/>exportvg t_vg
root@a05scpgapp01/>lspv
hdisk0 00cde24bb3a0905a rootvg active
hdisk1 00cde24bb3db10ec rootvg active
hdisk2 00cde24ba37763ef datavg active
hdisk3 00cde24b4aba3171 None
--------------
The solution is create the vg by force:
Add an Original Volume Group
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
VOLUME GROUP name [tt_vg]
Physical partition SIZE in megabytes 16 +
* PHYSICAL VOLUME names [hdisk3] +
FORCE the creation of volume group? yes +
Activate volume group AUTOMATICALLY yes +
at system restart?
Volume group MAJOR NUMBER [] +#
Create VG Concurrent Capable? no +
------------------
COMMAND STATUS
Command: OK stdout: yes stderr: no
Before command completion, additional instructions may appear below.
tt_vg
- 向vg 里加 hdisk 时报错,解决如下
- AIX: 查看未加入vg的hdisk容量比较常用的命令
- tomcat启动时报如下错误
- Eclipse 启动时报如下错误
- mysqldump备份时报错解决
- android 打包时报错解决
- AIX系统不能正确识别vpath和hdisk设备,如何解决?
- matlab里面向信号里加入白噪声
- FDM向HFM加载 Cell Text时报错
- 向App Store提交二进制文件时报错ERROR ITMS-90096
- 向ORACLE数据库表中插入时报错ORA-01722
- 向VISUAL SVN SERVER上传文件时报错
- Eclipse向SVN提交maven项目时报错
- 安装cobbler时报错及解决
- 安装apache:configure时报错 解决
- C++程序连接时报错的解决
- centos 5.6添加用户时报错解决
- 解决PHPCMS添加栏目时报错
- 理解SNMP协议(一)
- 为Android应用程序读取/dev下设备而提权1
- 怎么样 下载 android 4.0源码,教你一下
- Wireshark
- android中LayoutInflater的使用(android.view.LayoutInflater)
- 向vg 里加 hdisk 时报错,解决如下
- C# 连接Oracle(利用ODP.net,不安装oracle客户端)
- 【Backward Compatibility for Applications】向后兼容程序
- 为Android应用程序读取/dev下设备而提权2
- 淘宝一些开源资源:分布式数据库,分布式文件系统,分布式缓存集群
- 面朝大海,春暖花开
- linux c调用链接库
- 获取Excel.dll
- 编译安装MYSYQL 的一点小问题