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.

相关文章
|
机器学习/深度学习 PyTorch 算法框架/工具
解决RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cp
对应两种保存模型的方式,pytorch也有两种加载模型的方式。对应第一种保存方式,加载模型时通过torch.load(‘.pth’)直接初始化新的神经网络对象;对应第二种保存方式,需要首先导入对应的网络,再通过net.load_state_dict(torch.load(‘.pth’))完成模型参数的加载。
1637 0
|
安全
解决:efi usb device has been blocked by the current security policy
解决:efi usb device has been blocked by the current security policy 问题描述:U盘装系统或者其他操作时,是因为BIOS安全策略,出现上述错误无法进入后续步骤。 解决方法:按F2(Fn+F2)进入BIOS,在secure Boot 中security选择disable。解决! 延伸(可不读): 黑苹
11055 0
error: insufficient permissions for device
error: insufficient permissions for device
380 0
|
C语言
解决Dev-C++ [Error] ‘for‘ loop initial declarations are only allowed in C99 or C11 mode
Dev-C++ [Error] ‘for‘ loop initial declarations are only allowed in C99 or C11 mode
749 0
解决Dev-C++ [Error] ‘for‘ loop initial declarations are only allowed in C99 or C11 mode
|
数据安全/隐私保护
Development cannot be enabled while your device is locked.
有时候我们真机调试的时候,会遇到这样的报错: Development cannot be enabled while your device is locked. 但是!我TM手机明明解锁了啊,指纹解的锁不是?密码解的锁不是?没感应到?换个姿势再来一次?还是不行?? 哈哈,有同样经历的点个赞吧。
1882 0
|
JavaScript Linux 前端开发