Chinaunix首页 | 论坛 | 博客
  • 博客访问: 65989
  • 博文数量: 28
  • 博客积分: 210
  • 博客等级: 入伍新兵
  • 技术积分: 120
  • 用 户 组: 普通用户
  • 注册时间: 2005-05-15 16:13
文章分类

全部博文(28)

文章存档

2016年(11)

2012年(8)

2011年(5)

2005年(4)

我的朋友

分类: LINUX

2016-10-27 17:25:14

原文地址:linux更改emc磁盘盘符 作者:简单随心

具体环境描述请见上一篇文章(http://blog.chinaunix.net/uid-28255964-id-5753714.html),本文章主要介绍linux系统下,更改磁盘Minor#
查看两边识别到磁盘的uuid
节点2
[root@vincent2 ~]# /sbin/scsi_id -g -u -d /dev/emcpowera
36006016007b04000184b075892a4d03b
[root@vincent2 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerb
36006016007b04000184b0758ffb5cf84
[root@vincent2 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerc
36006016007b04000174b0758c7d16373
[root@vincent2 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerd
36006016007b04000164b07580ec61c93
[root@vincent2 ~]# /sbin/scsi_id -g -u -d /dev/emcpowere
36006016007b04000174b0758ece00fd7
[root@vincent2 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerf
36006016007b04000154b07582d81834a
[root@vincent2 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerg
36006016007b04000154b075826f1cdf7
[root@vincent2 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerh
36006016007b04000144b07580d38d995
节点1
[root@vincent1 ~]# /sbin/scsi_id -g -u -d /dev/emcpowera
36006016007b04000184b075892a4d03b
[root@vincent1 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerb
36006016007b04000184b0758ffb5cf84
[root@vincent1 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerc
36006016007b04000174b0758c7d16373
[root@vincent1 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerd
36006016007b04000174b0758ece00fd7
[root@vincent1 ~]# /sbin/scsi_id -g -u -d /dev/emcpowere
36006016007b04000164b07580ec61c93
[root@vincent1 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerf
36006016007b04000154b07582d81834a
[root@vincent1 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerg
36006016007b04000154b075826f1cdf7
[root@vincent1 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerh
36006016007b04000144b07580d38d995
从上面可以看出两个节点的emcpowerdemcpowereuuid反了,所以在1节点上将emcpowerdemcpowere的盘符互换,以达到两边保持一致
下面的调整的步骤
可以使用下面的命令查看可用Minor
[root@vincent1 database]# emcpadm getfreepseudos -n 5 -b 20
开始调整,首先将emcpowerd占用的Minor#释放出来
[root@vincent1 ~]# emcpadm renamepseudo -s 48 -t 128
emcpowere调整为emcpowerd
[root@vincent1 ~]# emcpadm renamepseudo -s 64 -t 48
emcpowerdMinor#换成48
[root@vincent1 ~]# emcpadm renamepseudo -s 128 -t 64
到此emcpowerdemcpowereMinor#交换完毕
[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
再次查看两边磁盘的uuid
[root@vincent1 ~]# /sbin/scsi_id -g -u -d /dev/emcpowera
36006016007b04000184b075892a4d03b
[root@vincent1 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerb
36006016007b04000184b0758ffb5cf84
[root@vincent1 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerc
36006016007b04000174b0758c7d16373
[root@vincent1 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerd
36006016007b04000164b07580ec61c93
[root@vincent1 ~]# /sbin/scsi_id -g -u -d /dev/emcpowere
36006016007b04000174b0758ece00fd7
[root@vincent1 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerf
36006016007b04000154b07582d81834a
[root@vincent1 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerg
36006016007b04000154b075826f1cdf7
[root@vincent1 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerh
36006016007b04000144b07580d38d995
节点2
[root@vincent2 ~]# /sbin/scsi_id -g -u -d /dev/emcpowera
36006016007b04000184b075892a4d03b
[root@vincent2 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerb
36006016007b04000184b0758ffb5cf84
[root@vincent2 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerc
36006016007b04000174b0758c7d16373
[root@vincent2 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerd
36006016007b04000164b07580ec61c93
[root@vincent2 ~]# /sbin/scsi_id -g -u -d /dev/emcpowere
36006016007b04000174b0758ece00fd7
[root@vincent2 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerf
36006016007b04000154b07582d81834a
[root@vincent2 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerg
36006016007b04000154b075826f1cdf7
[root@vincent2 ~]# /sbin/scsi_id -g -u -d /dev/emcpowerh
36006016007b04000144b07580d38d995
两边一致

阅读(984) | 评论(0) | 转发(0) |
0

上一篇:大数据之快速搭建hadoop2.6集群指南

下一篇:没有了

给主人留下些什么吧!~~