Thursday, October 18, 2012

Power Path: Linux to discover new LUN


1. display existing LUN using powermt command

# powermt display dev=all

save the output to compare later

2. list disks using command fdisk
# fdisk -l > /tmp/b4scan.txt

3. force system to scan new LUN
# echo - - - > /sys/class/scsi_host/host0/scan

4. list disks using command fdisk
# fdisk -l > /tmp/afterscan.txt

5. diff /tmp/afterscan.txt and /tmp/b4scan.txt to check if any new disk discovered.
# diff /tmp/afterscan.txt /tmp/b4scan.txt

6. force power path to rescan
# powermt config

7. verify if the new LUN discovered.

No comments:

Post a Comment