37.2. Resizing an iSCSI Logical Unit
After modifying the online logical unit size, re-scan the logical unit to ensure that the system detects the updated size. To do this for iSCSI devices, use the following command:
# iscsiadm -m node --targetname target_name -R
target_namewith the name of the target where the device is located.
You can also re-scan iSCSI logical units using the following command:
# iscsiadm -m node -R -I interface
interfacewith the corresponding interface name of the resized logical unit (for example,
iface0). This command performs two operations:
- It scans for new devices in the same way that the command
echo "- - -" > /sys/class/scsi_host/host/scandoes (refer to Chapter 36, Scanning iSCSI Targets with Multiple LUNs or Portals).
- It re-scans for new/modified logical units the same way that the command
echo 1 > /sys/block/sdX/device/rescandoes. Note that this command is the same one used for re-scanning fibre-channel logical units.