AIX 系统故障之--删除VG故障

简介:

AIX 系统故障之--删除VG故障

系统环境:

  操作系统: AIX5300-08

故障原因:

  在datavg 卷组上建立了lv_ps1和paging01 两个换页空间,在没有删除换页空间的情况下,先删除了datavg 卷组,后来又重新建立了datavg 卷组,在查看换页空间时,报错


[root@/usr/lib/bootaix211]# varyonvg datavg

[root@/usr/lib/bootaix211]# lspv

hdisk0          00040f8aaa29d28e                    rootvg          active

hdisk1          000681aaf63a15aa                    datavg          active

hdisk2          0006816afe167521                    None  


[root@/usr/lib/bootaix211]# lsps -a

Page Space      Physical Volume   Volume Group    Size %Used Active  Auto  Type

0516-310 : Unable to find attribute state in the Device

       Configuration Database. Execute synclvodm to attempt to

       correct the database.

paging01        hdisk1            datavg        2048MB     0    no   yes    lv

0516-310 : Unable to find attribute state in the Device

       Configuration Database. Execute synclvodm to attempt to

       correct the database.

lv_ps1          hdisk1            datavg        2048MB     0    no   yes    lv

paging00        hdisk0            rootvg        2048MB     1   yes   yes    lv

hd6             hdisk0            rootvg        2048MB     1   yes   yes    lv


解决方法:


1、同步ODM

[root@/usr/lib/bootaix211]# synclvodm -v datavg

synclvodm: Physical volume data updated.

synclvodm: Logical volume lv_dsk1 updated.

synclvodm: Logical volume loglv00 updated.

synclvodm: Logical volume loglv01 updated.

synclvodm: Logical volume fslv00 updated.

synclvodm: Logical volume lv_ps1 updated.

synclvodm: Logical volume paging01 updated.

0516-310 synclvodm: Unable to find attribute hotspare in the Device

       Configuration Database. Execute synclvodm to attempt to

       correct the database.

0516-310 synclvodm: Unable to find attribute auto_sync in the Device

       Configuration Database. Execute synclvodm to attempt to

       correct the database.

0516-310 synclvodm: Unable to find attribute auto_on in the Device

       Configuration Database. Execute synclvodm to attempt to

       correct the database.

0516-310 synclvodm: Unable to find attribute quorum in the Device

       Configuration Database. Execute synclvodm to attempt to

       correct the database.


[root@/usr/lib/bootaix211]# lsps -a

Page Space      Physical Volume   Volume Group    Size %Used Active  Auto  Type

0516-310 : Unable to find attribute state in the Device

       Configuration Database. Execute synclvodm to attempt to

       correct the database.

paging01        hdisk1            datavg        2048MB     0    no   yes    lv

0516-310 : Unable to find attribute state in the Device

       Configuration Database. Execute synclvodm to attempt to

       correct the database.

lv_ps1          hdisk1            datavg        2048MB     0    no   yes    lv

paging00        hdisk0            rootvg        2048MB     1   yes   yes    lv

hd6             hdisk0            rootvg        2048MB     1   yes   yes    lv

[root@/usr/lib/bootaix211]#


[root@/usr/lib/bootaix211]# lsvg -l datavg

datavg:

LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT

lv_dsk1             jfs        48      48      1    closed/syncd  /dsk1

loglv00             jfslog     1       1       1    closed/syncd  N/A

loglv01             jfs2log    1       1       1    closed/syncd  N/A

fslv00              jfs2       32      32      1    closed/syncd  /dsk2

lv_ps1              paging     32      32      1    closed/syncd  N/A

paging01            paging     32      32      1    closed/syncd  N/A


2、通过ODM删除逻辑卷

[root@/usr/lib/bootaix211]# odmdelete -o CuDv -q "name=paging01"

1 objects deleted


[root@/usr/lib/bootaix211]# lsps -a

Page Space      Physical Volume   Volume Group    Size %Used Active  Auto  Type

0516-310 : Unable to find attribute state in the Device

       Configuration Database. Execute synclvodm to attempt to

       correct the database.

lv_ps1          hdisk1            datavg        2048MB     0    no   yes    lv

paging00        hdisk0            rootvg        2048MB     1   yes   yes    lv

hd6             hdisk0            rootvg        2048MB     1   yes   yes    lv

[root@/usr/lib/bootaix211]# synclvodm -v datavg

synclvodm: Physical volume data updated.

synclvodm: Logical volume lv_dsk1 updated.

synclvodm: Logical volume loglv00 updated.

synclvodm: Logical volume loglv01 updated.

synclvodm: Logical volume fslv00 updated.

synclvodm: Logical volume lv_ps1 updated.

synclvodm: Logical volume paging01 updated.

0516-310 synclvodm: Unable to find attribute hotspare in the Device

       Configuration Database. Execute synclvodm to attempt to

       correct the database.

0516-310 synclvodm: Unable to find attribute auto_sync in the Device

       Configuration Database. Execute synclvodm to attempt to

       correct the database.

0516-310 synclvodm: Unable to find attribute auto_on in the Device

       Configuration Database. Execute synclvodm to attempt to

       correct the database.

0516-310 synclvodm: Unable to find attribute quorum in the Device

       Configuration Database. Execute synclvodm to attempt to

       correct the database.


[root@/usr/lib/bootaix211]# lsps -a

Page Space      Physical Volume   Volume Group    Size %Used Active  Auto  Type

0516-310 : Unable to find attribute state in the Device

       Configuration Database. Execute synclvodm to attempt to

       correct the database.

paging01        hdisk1            datavg        2048MB     0    no   yes    lv

0516-310 : Unable to find attribute state in the Device

       Configuration Database. Execute synclvodm to attempt to

       correct the database.

lv_ps1          hdisk1            datavg        2048MB     0    no   yes    lv

paging00        hdisk0            rootvg        2048MB     1   yes   yes    lv

hd6             hdisk0            rootvg        2048MB     1   yes   yes    lv

[root@/usr/lib/bootaix211]#


3、通过smit 删除page space

---通过smit 删除paging01 ,lv_ps1 这两个换页空间,问题解决

[root@/usr/lib/bootaix211]# lsps -a

Page Space      Physical Volume   Volume Group    Size %Used Active  Auto  Type

paging00        hdisk0            rootvg        2048MB     1   yes   yes    lv

hd6             hdisk0            rootvg        2048MB     1   yes   yes    lv

[root@/usr/lib/bootaix211]#


[root@/usr/lib/bootaix211]# lsvg -l datavg

datavg:

LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT

lv_dsk1             jfs        48      48      1    closed/syncd  /dsk1

loglv00             jfslog     1       1       1    closed/syncd  N/A

loglv01             jfs2log    1       1       1    closed/syncd  N/A

fslv00              jfs2       32      32      1    closed/syncd  /dsk2


4、同步ODM 任然错误

[root@/usr/lib/bootaix211]# synclvodm -v datavg

synclvodm: Physical volume data updated.

synclvodm: Logical volume lv_dsk1 updated.

synclvodm: Logical volume loglv00 updated.

synclvodm: Logical volume loglv01 updated.

synclvodm: Logical volume fslv00 updated.

0516-310 synclvodm: Unable to find attribute hotspare in the Device

       Configuration Database. Execute synclvodm to attempt to

       correct the database.

0516-310 synclvodm: Unable to find attribute auto_sync in the Device

       Configuration Database. Execute synclvodm to attempt to

       correct the database.

0516-310 synclvodm: Unable to find attribute auto_on in the Device

       Configuration Database. Execute synclvodm to attempt to

       correct the database.

0516-310 synclvodm: Unable to find attribute quorum in the Device

       Configuration Database. Execute synclvodm to attempt to

       correct the database.


5、重新导入导出VG

[root@/usr/lib/bootaix211]# redefinevg

Usage: redefinevg {-d PVname | -i VGid} [-V MajorNumber] VGname

[root@/usr/lib/bootaix211]# redefinevg -d hdisk1 datavg

[root@/usr/lib/bootaix211]# varyoffvg datavg

[root@/usr/lib/bootaix211]# exportvg datavg

[root@/usr/lib/bootaix211]# importvg

0516-604 importvg: Physical volume name not entered.

Usage: importvg [ [ [-V MajorNumber] [-y VGname] [-f] [-c] [-x] ] | [-L VGname] ]

               [-n] [-F] [-R] PVname

Imports the definition of a volume group.


将vg 导出,然后再重新导入到ODM 库,问题解决


[root@/usr/lib/bootaix211]# importvg -y datavg hdisk1  

datavg

[root@/usr/lib/bootaix211]# varyonvg datavg

[root@/usr/lib/bootaix211]# synclvodm -v datavg

synclvodm: Physical volume data updated.

synclvodm: Logical volume lv_dsk1 updated.

synclvodm: Logical volume loglv00 updated.

synclvodm: Logical volume loglv01 updated.

synclvodm: Logical volume fslv00 updated.

[root@/usr/lib/bootaix211]#











本文转自 客居天涯 51CTO博客,原文链接:http://blog.51cto.com/tiany/1389579,如需转载请自行联系原作者
相关实践学习
基于Hologres轻松玩转一站式实时仓库
本场景介绍如何利用阿里云MaxCompute、实时计算Flink和交互式分析服务Hologres开发离线、实时数据融合分析的数据大屏应用。
阿里云实时数仓实战 - 项目介绍及架构设计
课程简介 1)学习搭建一个数据仓库的过程,理解数据在整个数仓架构的从采集、存储、计算、输出、展示的整个业务流程。 2)整个数仓体系完全搭建在阿里云架构上,理解并学会运用各个服务组件,了解各个组件之间如何配合联动。 3 )前置知识要求   课程大纲 第一章 了解数据仓库概念 初步了解数据仓库是干什么的 第二章 按照企业开发的标准去搭建一个数据仓库 数据仓库的需求是什么 架构 怎么选型怎么购买服务器 第三章 数据生成模块 用户形成数据的一个准备 按照企业的标准,准备了十一张用户行为表 方便使用 第四章 采集模块的搭建 购买阿里云服务器 安装 JDK 安装 Flume 第五章 用户行为数据仓库 严格按照企业的标准开发 第六章 搭建业务数仓理论基础和对表的分类同步 第七章 业务数仓的搭建  业务行为数仓效果图  
目录
相关文章
|
弹性计算
|
Unix Linux 测试技术
XFS文件系统的备份、恢复、修复
XFS文件系统是硅谷图形公司(Silicon Graphics Inc,简称SGI)开发的用于IRIX(一个UNIX操作系统)的文件系统,后将XFS移植到Linux操作系统上
XFS文件系统的备份、恢复、修复
lvm讲解/磁盘故障小案例
4.10/4.11/4.12 lvm讲解  4.13 磁盘故障小案例   lvm讲解                        磁盘故障小案例
1166 0
|
数据安全/隐私保护
|
缓存 监控 数据可视化