Home > Redhat Administration, Uncategorized > Rescan SAN Lun without reboot system

Rescan SAN Lun without reboot system

1. First check FC Path ( show that there are two directories:host7 and host8, it means that there are two pathing)

#  ls -l /sys/class/fc_host*
drwxr-xr-x 3 root root 0 Aug  6 16:04 host7
drwxr-xr-x 3 root root 0 Aug  6 16:05 host8

2. Echo “1” into /sys/class/fc_host/host#/issue_lip file. Like my case as below

# echo “1” > /sys/class/fc_host/host7/issue_lip

# echo “1” > /sys/class/fc_host/host8/issue_lip

3. Check the news, there are two paths for the new lun

#fdisk -l

Disk /dev/sdf: 429.4 GB, 429496729600 bytes
255 heads, 63 sectors/track, 52216 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdg: 429.4 GB, 429496729600 bytes
255 heads, 63 sectors/track, 52216 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

 

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: