Scanning For New Devices; Removing Devices - Red Hat ENTERPRISE LINUX - ONLINE STORAGE RECONFIGURATION GUIDE BETA Configuration Manual

Online storage reconfiguration guide
Table of Contents

Advertisement

Red Hat Enterprise Linux
Note
In addition to this, you can also use
For more information about this, refer to

5. Scanning for New Devices

If you load a driver before adding the corresponding storage device, you will likely need to
manually add the new storage to the operating system. As such, you will need the
corresponding logical unit number (LUN) of the added storage device.
To scan all buses and targets for new LUNs, use:
echo - - - > /sys/class/scsi_host/<host>/scan
Here,
refers to the host number. This can be
<host>
For iSCSI, if the targets sends an iSCSI async event indicating new storage is added, then the
scan is done automatically. Cisco MDS™ and EMC Cellera™ support this feature.
For fibre channel, you may need to rediscover the target by executing the command
Note that the
interface is deprecated; as such, do not use it.
proc

6. Removing Devices

If remove a device on a target, the driver will normally not remove it automatically. To properly
remove a device, perform the following steps:
Procedure 1. Ensuring a Clean Device Removal
1.
Close all users of the device.
2.
Unmount any file systems that mounted the device.
3.
File systems that mounted the device should be unmounted using
should also remove the device from any
4.
Remove the device from the SCSI layer using:
echo 1 > /sys/block/<device name>/device/delete
As stated in the previous subsection, the
8
rules to implement persistent naming.
udev
man udev
,
host0
host1
,
, LVM, multipath or RAID devices using it.
dm
md
interface is deprecated; as such, do not use it.
proc
.
,
, and so on.
host2
issue_lip
. In addition, you
umount
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise linux

Table of Contents