adding LUN to linux server

Hi All,

I am new for this blog and this is my first Query on this blog. I would like to dael with graet masters on linux.

Here we go,

After storage people created the LUN, How to add that LUN to Linux server. (Make that LUN visibility on linux server.) ?

How to view the LUN information ?

Thanks in advance !

Cheers !

Hi,

After create the LUN and attach on the host You can run "echo 1 > /sys/block/device_name/device/rescan" to scan the disk or reboot your system.
After run "fdisk -l " to list all disks, you will see internal disks and luns.

@mbrozio

Hey ! Thanks for your update.

And when i googled i saw something like below to add the lun to linux host.

echo > 1 "proc/scsi/sci"

Or

echo "- - -" > /sys/class/scsi_host/host<ID>/scan

what about these ...

Thanks buddy ! :slight_smile:

Hi,
Use the below commands to identify the newly added lun in the server.

dmesg|grep scsi
echo "- - -" > /sys/class/scsi_host/host5/scan
cat /proc/scsi/scsi
fdisk -l
pvscan

Hi,

Red Hat documentain has the command "echo 1 > /sys/block/device_name/device/rescan", if not worked reboot your system.

@mbrozio.

Thanks all for your valuable comments ...
catch u later in another query ...

Chrees :b: