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.

相关文章
|
人工智能 前端开发 JavaScript
【AI】命令行调用大模型
通过命令行调用AI大模型以提高效率,文章介绍了一个使用前端npm的方法。首先创建npm包项目,初始化配置,然后编写`constant.js`、`kiwi.js`和`main.js`三个文件,分别存放API密钥、调用接口和主逻辑。在`kiwi.js`中使用axios与大模型API交互,`main.js`接收命令行参数并输出结果。通过修改`package.json`设置入口文件,并使用`npm link`全局安装,实现命令行调用,如`moon 你好`。
706 0
|
安全 Java Linux
ElasticSearch下载与安装
ElasticSearch下载与安装
3506 0
ElasticSearch下载与安装
|
IDE 测试技术 项目管理
集成开发环境(IDE)的使用:提升Visual Basic开发效率的工具和技巧
【4月更文挑战第27天】本文探讨了如何使用Visual Basic IDE提升开发效率,包括理解IDE组件、利用代码编辑器的智能功能、通过界面设计器设计GUI、使用调试和测试工具、有效管理项目与版本控制、掌握快捷键和宏、定制IDE以及利用学习资源。通过充分利用这些工具和技巧,开发者能更快地编写高质量代码,高效管理项目,从而提升整体开发效率。随着IDE的持续发展,开发者应不断学习新特性以适应进步。
398 1
|
安全 Linux 开发者
⭐⭐⭐⭐⭐Linux C/C++ 进程崩溃诊断以及有效数据收集:解锁代码问题快速定位与修复的方法
⭐⭐⭐⭐⭐Linux C/C++ 进程崩溃诊断以及有效数据收集:解锁代码问题快速定位与修复的方法
855 1
|
Linux 测试技术
使用mdadm工具实现软RAID 5实战案例
文章详细介绍了如何使用mdadm工具在Linux系统中创建和管理软RAID 5设备,包括准备工作、创建RAID 5、格式化文件系统、挂载RAID设备、测试读写速度、备份配置信息、手动下线和添加设备以及禁用和启用RAID设备的完整过程。
988 0
使用mdadm工具实现软RAID 5实战案例
|
JSON 监控 数据库
使用Telegraf+Influxdb+Grafana配置VMware vSphere监控大屏
使用Telegraf+Influxdb+Grafana配置VMware vSphere监控大屏
651 0
|
安全 算法 网络协议
【CentOS7操作系统安全加固系列】第(6)篇
【CentOS7操作系统安全加固系列】第(6)篇
898 0
【CentOS7操作系统安全加固系列】第(6)篇
|
监控 算法 Linux
利用mdadm工具构建RAID 0/1/5/6/10磁盘阵列实战(超详细)
利用mdadm工具构建RAID 0/1/5/6/10磁盘阵列实战(超详细)
528 0
|
存储 缓存 固态存储
一步步实现SDDC-双节点VSAN部署
实验摘要: 1>ROBO VSAN部署(双节点VSAN) [难度★★复杂度★★]
|
安全 Linux
CentOS7一键安全加固及系统优化脚本
CentOS7一键安全加固及系统优化脚本
1533 1
CentOS7一键安全加固及系统优化脚本

热门文章

最新文章