Changing an HDLM device name

简介: Changing an HDLM device name

1. Create a device name replacement definition file based on the current

HDLM device configuration information. When the dlmchname utility is

executed with the -o parameter, a device name replacement definition

file (/etc/opt/DynamicLinkManager/dlmchname.conf) is created based

on the current HDLM device configuration information.

# /opt/DynamicLinkManager/bin/dlmchname -o

2. Check the current HDLM device configuration information, and then

identify the HDLM device name to be changed.

Execute the view operation of the HDLM command. In the execution

results, check the correspondence between the LUs and HDLM devices,

and then identify the HDLM device name to be changed.

An execution example is as follows:

# /opt/DynamicLinkManager/bin/dlnkmgr view -lu

Product : AMS

SerialNumber : 85011299

LUs : 3

iLU HDevName Device PathID Status

0090 sddlmab /dev/sda 000004 Online

/dev/sdd 000005 Online

/dev/sdj 000008 Online

/dev/sdg 000009 Online

0091 sddlmac /dev/sdb 000006 Online

/dev/sde 000007 Online

/dev/sdh 000010 Online

/dev/sdk 000011 Online

0092 sddlmaa /dev/sdc 000000 Online

/dev/sdf 000001 Online

/dev/sdi 000002 Online

/dev/sdl 000003 Online

KAPL01001-I The HDLM command completed normally. Operation name

= view, completion time = yyyy/mm/dd hh:mm:ss

Note that LUs that are not managed by HDLM are not output. Therefore,

configure the setting so that LUs are managed by HDLM before the check.

If you can identify the correspondence between LUs and HDLM devices,

edit the device name replacement definition file in step 3.

3. Edit the device name replacement definition file.

Change HDLM device names specified in the device name replacement

definition file (/etc/opt/DynamicLinkManager/dlmchname.conf) by using

an editor such as  vi/vim

In the following example, the name of the HDLM device whose the serial

number is 85011299 and whose iLU is 0090 was identified as sddlmab in

step 2 and is then changed to sddlmad.

(Before change)

# /bin/cat /etc/opt/DynamicLinkManager/dlmchname.conf

3585011299 0090 sddlmab

3585011299 0091 sddlmac

3585011299 0092 sddlmaa

(After change)

# /bin/cat /etc/opt/DynamicLinkManager/dlmchname.conf

3585011299 0090 sddlmad

3585011299 0091 sddlmac

3585011299 0092 sddlmaa

Lines for which the HDLM device name is not changed can be deleted

from the dlmchname.conf file, without causing any problems.

To change the name of an HDLM device used as a boot disk, go to step 5.

4. Stop access to the HDLM device whose name is to be changed.

To stop access to the HDLM device, perform the following operations:

¢ Unmount the HDLM device if the HDLM device is mounted.

¢ Deactivate the volume group if the HDLM device is used in an LVM.

¢ Stop applications that are using the HDLM device.

To prevent I/Os from causing failures during HDLM device name

replacement, execute the dlmcfgmgr utility (dlmcfgmgr -o) so that the

HDLM device is not managed.

If you execute the dlmcfgmgr utility (dlmcfgmgr -o), execute the

dlmcfgmgr utility (dlmcfgmgr -i) so that the HDLM device is managed

again after the dlmchname utility.

5. Execute the dlmchname utility.

To change the name of an HDLM device that is a member of an LVM

volume group, execute the dlmchname utility and then the vgscan

command.

To change the name of an HDLM device that is not used as a boot disk

Execute the dlmchname utility as follows to change the HDLM device

name.

# /opt/DynamicLinkManager/bin/dlmchname

To change the name of an HDLM device that is used as a boot disk

Execute the dlmchname utility with the -f parameter.

# /opt/DynamicLinkManager/bin/dlmchname -f

To change the name of an HDLM device that is not used as a boot disk, go

to step 8.

6. Edit the setting files in which the HDLM device name is specified.

When changing the name of an HDLM device that is used as a boot disk,

check and edit the /etc/fstab file.

7. Reboot the host.

相关文章
|
7月前
|
SQL 存储 运维
【MySQL】高可用:主从复制原理、主从延迟解决方案、半同步复制、MGR
本文系统梳理MySQL高可用知识体系,涵盖主从复制原理、GTID、半同步(AFTER_SYNC)、MGR集群等核心机制,深入解析延迟成因与优化策略,并对比选型方案,助力构建稳定、一致、自动恢复的高可用数据库架构。
|
Ubuntu 关系型数据库 MySQL
libmysqlclient.so.18(libmysqlclient.so.20 libmysqlclien.so) => not found
libmysqlclient.so.18(libmysqlclient.so.20 libmysqlclien.so) => not found
2112 0
libmysqlclient.so.18(libmysqlclient.so.20 libmysqlclien.so) => not found
|
SQL 存储 消息中间件
Trino权威指南
Trino(原Presto SQL)是一款开源分布式SQL查询引擎,专为大数据联邦查询设计。它支持秒级查询PB级数据,可无缝对接Hive、MySQL、Kafka等20+异构数据源。其核心特性包括高速查询、弹性扩展和低成本使用,适合交互式分析与BI场景。Trino采用无共享架构,通过列式内存格式和动态代码生成优化性能,并提供丰富的连接器实现计算存储分离,最大化下推优化以提升效率。
2653 3
|
10月前
|
SQL Oracle 关系型数据库
PLSQL Developer 12.0.7 64位安装教程
PL/SQL Developer 是专为Oracle数据库设计的高效IDE,支持PL/SQL代码编写、调试、SQL查询、对象浏览与性能分析。界面简洁,功能全面,是Oracle开发必备工具。文末附详细中文安装指南(含网盘下载链接)。
|
关系型数据库 MySQL Go
MySQL连接错误1045:完美解决指南
MySQL连接错误1045:完美解决指南
12886 0
|
存储 SDN 开发工具
如何配置HITACHI存储多路径软件
如何配置HITACHI存储多路径软件
517 0
|
存储 监控 数据库
什么是聚集索引和非聚集索引?
【8月更文挑战第3天】
10594 6
|
Linux 开发工具 开发者
RHEL更换yum源为CentOS7
RHEL在未注册时是无法使用yum的。如果使用yum命令,会报 “This system is not registered with an entitlement server. You can use subscription-manager to register.” 错误。在这种情况下,使用者就需要购买RetHat的服务。对于个人开发者,也可以通过更换yum源的方法来继续使用,本篇文章将介绍如何更新RHEL的yum源为阿里的CentOS7镜像。
2406 0
|
Linux
CentOS 7 配置yum阿里源 (三步即可)
CentOS 7 配置yum阿里源 (三步即可)
37262 1