HP 3PAR Ubuntu Operating System Implementation Guide
3. Verify that the device is seen.
ls -ltr /dev/dm-*
(The link has a new time stamp)
4. Verify that the new WWN of the device appears.
# tail /var/log/messages
5. Create a partition table for the device.
fdisk /dev/dm-<n>
or
parted /dev/dm-<n>
6. Trigger udev by issuing the following command:
# echo 'add' > /sys/block/dm-<n>/uevent
7. Verify that the new partition is recognized by multipathd.
multipath -ll
If this method fails, proceed with the manual methods described below.
Discovering Devices
There are several methods to discover new LUNs:
• Use rescan-scsi-bus.sh.
• Use the echo statement.
• Use the echo scsi add statement.
• Use the iscsiadm utility with an iSCSI connection (see “Ubuntu iscsiadm Utility Usage” (page
8)).
Usage of rescan-scsi-bus.sh script:
# /sbin/rescan-scsi-bus -h
Usage: rescan-scsi-bus.sh [options] [host [host ...]]
Options:
-l activates scanning for LUNs 0--7 [default: 0]
-L NUM activates scanning for LUNs 0--NUM [default: 0]
-w scan for target device IDs 0--15 [default: 0--7]
-c enables scanning of channels 0 1 [default: 0 / all detected ones]
-r enables removing of devices [default: disabled]
-i issue a FibreChannel LIP reset [default: disabled]
--remove: same as -r
--issue-lip: same as -i
--forcerescan: Rescan existing devices
--forceremove: Remove and readd every device (DANGEROUS)
--nooptscan: don't stop looking for LUNs is 0 is not found
24 Allocating Storage for Access by the Ubuntu Host