Chinaunix

标题: vg不能varyon [打印本页]

作者: unixasdfg    时间: 2011-07-26 10:24
标题: vg不能varyon
大家好!有一卷组不能varyon,请大家帮忙看看是什么问题?错误信息如下:
#lsvg
rootvg
datavg
testvg
#varyonvg testvg
0516-008 varyonvg: LVM system call returned an unknown
        error code (3).
#
作者: unixasdfg    时间: 2011-07-26 16:37
顶一下
作者: sweetlamb    时间: 2011-07-26 17:41
lspv
lsdev -Cc disk
作者: cwt31401    时间: 2011-08-18 09:45
一般来说有以下步骤:
1.redefinevg -d  hdisk  vg
2.synclvodm
作者: unixasdfg    时间: 2011-08-18 10:34
#lspv
hdisk2          0037486c6cf64313                    datavg          active
hdisk3          0037486c6cfb7309                    datavg          active
hdisk4          0037486cd57dcbf4                    None
hdisk5          0037486cd57dcd21                    None
hdisk6          0037486c970106b8                    None
hdisk7          0037486ccae006e4                    None
hdisk0          0037486c043baf1c                    rootvg          active
hdisk1          0037486c5e05b82b                   rootvg          active
作者: 胖胖猪    时间: 2011-08-18 10:40
exportvg testvg

importvg -y testvg hdiskx
作者: unixasdfg    时间: 2011-08-18 10:49
回复 6# 胖胖猪


    我现在就是不知道testvg对应的是什么盘了?所以不能做importvg
作者: AIX深入敌后    时间: 2011-08-18 11:13
lsvg -l testvg
lspv
lsdev -Cc disk
有存储吗?如果有,可能有问题
作者: InfoSVC    时间: 2011-08-18 11:36
lqueryvg -p vpath139 -At
用这个命令试试能不能在硬盘上找到vg信息啊
作者: unixasdfg    时间: 2011-08-18 14:01
回复 8# AIX深入敌后


#lsdev -Cc disk
hdisk0  Available 2s-08-00-8,0 16 Bit LVD SCSI Disk Drive
hdisk1  Available 2s-08-00-9,0 16 Bit LVD SCSI Disk Drive
hdisk2  Available 37-08-00-9,0 16 Bit LVD SCSI Disk Drive
hdisk3  Available 3b-08-00-8,0 16 Bit LVD SCSI Disk Drive
hdisk4  Available 3b-08-00-9,0 16 Bit LVD SCSI Disk Drive
hdisk5  Available 3s-08-00-8,0 16 Bit LVD SCSI Disk Drive
hdisk6  Available 3s-08-00-9,0 16 Bit LVD SCSI Disk Drive
hdisk7  Available 3s-08-00-9,0 16 Bit LVD SCSI Disk Drive

#lspv
hdisk2          0037486c6cf64313                    datavg          active
hdisk3          0037486c6cfb7309                    datavg          active
hdisk4          0037486cd57dcbf4                    None
hdisk5          0037486cd57dcd21                    None
hdisk6          0037486c970106b8                    None
hdisk7          0037486ccae006e4                    None
hdisk0          0037486c043baf1c                    rootvg          active
hdisk1          0037486c5e05b82b                   rootvg          active


#lsvg -l tmpdata
0516-010 : Volume group must be varied on; use varyonvg command.
作者: unixasdfg    时间: 2011-08-18 14:05
回复 8# AIX深入敌后


#lsvg -l tmpdata
0516-010 : Volume group must be varied on; use varyonvg command.


#lspv
hdisk2          0037486c6cf64313                    datavg          active
hdisk3          0037486c6cfb7309                    datavg          active
hdisk4          0037486cd57dcbf4                    None
hdisk5          0037486cd57dcd21                    None
hdisk6          0037486c970106b8                    None
hdisk7          0037486ccae006e4                    None
hdisk0          0037486c043baf1c                    rootvg          active
hdisk1          0037486c5e05b82b                   rootvg          active

#lsdev -Cc disk
hdisk0  Available 2s-08-00-8,0 16 Bit LVD SCSI Disk Drive
hdisk1  Available 2s-08-00-9,0 16 Bit LVD SCSI Disk Drive
hdisk2  Available 37-08-00-9,0 16 Bit LVD SCSI Disk Drive
hdisk3  Available 3b-08-00-8,0 16 Bit LVD SCSI Disk Drive
hdisk4  Available 3b-08-00-9,0 16 Bit LVD SCSI Disk Drive
hdisk5  Available 3s-08-00-8,0 16 Bit LVD SCSI Disk Drive
hdisk6  Available 3s-08-00-9,0 16 Bit LVD SCSI Disk Drive
hdisk7  Available 3s-08-00-9,0 16 Bit LVD SCSI Disk Drive
作者: unixasdfg    时间: 2011-08-18 14:08
回复 9# InfoSVC


#lqueryvg -p vpath139 -At
0516-304 lqueryvg: Unable to find device id vpath139 in the Device
        Configuration Database.
0516-082 lqueryvg: Unable to access a special device file.
         Execute redefinevg and synclvodm to build correct environment.
作者: aiwsuoai    时间: 2011-08-18 16:18
等待解决
作者: InfoSVC    时间: 2011-08-19 15:19
lqueryvg -p hdiskx -At
其中hdiskx是你有问题的硬盘
作者: unixasdfg    时间: 2011-08-22 09:41
回复 14# InfoSVC


    你好!就是不知道哪块盘有问题!
作者: InfoSVC    时间: 2011-08-22 09:58
那就hdisk4/5/6/7一个一个的试一下啦
作者: chengchunhui    时间: 2011-08-23 16:37
哪里有什么vpath139啊!还有什么tmpdata,可以看得出,hdisk0--hdisk7都是本地盘,所以可以做importvg的操作,如果不太确定,可先尝试odmget -q name=hdiskX CuAt  X为4,5,6,7逐个尝试,是否有VG的信息。
作者: hblicy    时间: 2011-08-24 15:44
等待解决,学习经验。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2