Chinaunix首页 | 论坛 | 博客
  • 博客访问: 641793
  • 博文数量: 70
  • 博客积分: 145
  • 博客等级: 入伍新兵
  • 技术积分: 1150
  • 用 户 组: 普通用户
  • 注册时间: 2012-10-11 08:15
个人简介

没有简介就是最好的简介

文章分类

全部博文(70)

文章存档

2020年(1)

2018年(2)

2017年(3)

2016年(11)

2015年(12)

2014年(16)

2013年(19)

2012年(6)

我的朋友

分类: LINUX

2016-10-20 20:29:15

两台Centos 6.7机器,搭建oracle 11g rac。EMC映射到两边的LUN,看到的信息盘符不一致,有些盘符一直但是UUID不一致,EMC映射到的磁盘在操作系统层面可以修改盘符,并且出现鬼盘,本文章记录一次删除磁盘不完整,导致出现鬼盘的问题。另外一篇文章写了关于调整盘符的问题(http://blog.chinaunix.net/uid-28255964-id-5753715.html)。
存储段映射过来8块盘,但是系统层面识别到13块(之前映射过来5块盘),powermt remove删除,但是没有更新库
fdisk -l 看到映射过来的8块盘
Disk /dev/emcpowerf: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/emcpowerg: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/emcpowerh: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/emcpoweri: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/emcpowerj: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/emcpowerk: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/emcpowerl: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/emcpowerm: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
但是盘符没有a-e
使用emc命令查看a-e盘符已经被占用
[root@vincent1 ~]# emcpadm getusedpseudos
PowerPath pseudo device names in use:

Pseudo Device Name      Major# Minor#
        emcpowera         120      0
        emcpowerb         120     16
        emcpowerc         120     32
        emcpowerd         120     48
        emcpowere         120     64
        emcpowerf         120     80
        emcpowerg         120     96
        emcpowerh         120    112
        emcpoweri         120    128
        emcpowerj         120    144
        emcpowerk         120    160
        emcpowerl         120    176
        emcpowerm         120    192
并且前5块盘没有看到uuid,这是由于以前的盘被删除后 powerpath配置数据库未能及时更新。导致emcpower(a-e)表现为占用。
[root@vincent1 ~]# /sbin/scsi_id -g -u -d /dev/emcpowera
[root@vincent1 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerb
[root@vincent1 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerc
[root@vincent1 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerd
[root@vincent1 ~]# /sbin/scsi_id -g -u -d /dev/emcpowere
[root@vincent1 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerf
36006016007b04000144b07580d38d995
出现这种情况通过强制删除powerpath配置的文件来解决
停止powerpath服务
[root@vincent1 etc]# /etc/init.d/PowerPath stop
正在停止 PowerPath:  完毕
备份当前配置文件
[root@vincent1 etc]# cp /etc/powermt_custom.xml /etc/powermt_custom.xml.bak
[root@vincent1 etc]# cp /etc/emcp_devicesDB.dat /etc/emcp_devicesDB.dat.bak
[root@vincent1 etc]# cp /etc/emcp_devicesDB.idx /etc/emcp_devicesDB.idx.bak
删除当前powerpath配置文件
[root@vincent1 etc]# rm -f /etc/powermt_custom.xml
[root@vincent1 etc]# rm -f /etc/emcp_devicesDB.dat
[root@vincent1 etc]# rm -f /etc/emcp_devicesDB.idx
重新启动powerpath
[root@vincent1 etc]# /etc/init.d/PowerPath start
正在启动 PowerPath:  完毕
保存当前配置
[root@vincent1 etc]# powermt save
查看powerpath保存的信息
[root@vincent1 etc]# emcpadm getusedpseudos
PowerPath pseudo device names in use:

Pseudo Device Name      Major# Minor#
        emcpowera         120      0
        emcpowerb         120     16
        emcpowerc         120     32
        emcpowerd         120     48
        emcpowere         120     64
        emcpowerf         120     80
        emcpowerg         120     96
        emcpowerh         120    112
恢复正常
[root@vincent1 etc]# fdisk -l
Disk /dev/emcpowera: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/emcpowerb: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/emcpowerc: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/emcpowerd: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/emcpowere: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/emcpowerf: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/emcpowerg: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/emcpowerh: 2147 MB, 2147483648 bytes
67 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 4154 * 512 = 2126848 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

阅读(2923) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~