Mount a newly added LUN on a GNU/Linux distro

Hi

I am not familiar with the linux, but I was asked to create a file system on a LUN from the NetApp that was mapped to the linux server.
The server is runing:

uname -a
Linux localhost.localdomain 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

and now have the following file systems:

[root@localhost ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup_ID_2185-LogVol1
                      3.9G  1.2G  2.5G  33% /
/dev/mapper/VolGroup_ID_2185-LogVol2
                      3.9G  137M  3.6G   4% /tmp
/dev/mapper/VolGroup_ID_2185-LogVol4
                      3.9G  786M  3.0G  21% /var
/dev/mapper/VolGroup_ID_2185-LogVol5
                       96G  3.7G   88G   5% /usr
/dev/sda3             190M   16M  166M   9% /boot
tmpfs                 7.9G  9.4M  7.9G   1% /dev/shm
/dev/mapper/VolGroup_ID_2185-LogVolHome
                       49G   26G   21G  56% /home
/dev/mapper/VolGroup_ID_2185-data1
                      115G   50G   60G  46% /data1
/dev/mapper/Data-data2
                      207G  100G   97G  51% /data2
/dev/mapper/Data-data3
                      207G  143G   54G  73% /data3
/dev/mapper/Data-data4
                      411G  361G   29G  93% /data4
[root@localhost ~]#

The NetApp admin has told me that he has mapped an iscsi LUN of 700Gb .

The first step would be to check if the server see this LUN, but not sure what commands to check, I have try the following:
/sbin/iscsi-ls -l the output was : -bash: /sbin/iscsi-ls: No such file or directory
even try this one

[root@localhost ~]# iscsiadm --mode session
iscsiadm: No active sessions.

, so please can you help?

I did also try fdisk -l which gave me the following output:

[root@localhost ~]# fdisk -l

Disk /dev/sda: 299.4 GB, 299439751168 bytes
255 heads, 63 sectors/track, 36404 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1           5       40131   de  Dell Utility
/dev/sda2               6        1251    10008495   8e  Linux LVM
/dev/sda3   *        1252        1276      200812+  83  Linux
/dev/sda4            1277       36404   282165660    5  Extended
/dev/sda5            1277       36404   282165628+  8e  Linux LVM

Disk /dev/sdb: 898.3 GB, 898319253504 bytes
255 heads, 63 sectors/track, 109214 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table
[root@localhost ~]#

But I still cannot see the newly added LUN, please can you help

This assumes that your Linux is a Debian derivative?

You need to ensure that you have an iscsi initiator as part of the distribution or you need to install one. Then you can run some form of 'discovery' command against the SAN ip address and see what storage it offers you. Then you can start to format it and access it.

Debian / Ubuntu Linux Connect to an iSCSI Volume � nixCraft

Please provide more information on what you know and don't know.

1 Like

if I run the discovery command:

 iscsiadm -m discovery -t st -p 192.168.0.28
10.0.0.11:3260,2001 iqn.1992-08.com.netapp:sn.118055363
192.168.0.28:3260,2000 iqn.1992-08.com.netapp:sn.118055363
[root@localhost ~]#

so it does seem to me that there is comms between the server and the NetApp

And if I run fdisk -l it shows a LUN of 898Gb, but I dont know if this LUN is the newly added one or an existing one:

[root@localhost ~]# fdisk -l

Disk /dev/sda: 299.4 GB, 299439751168 bytes
255 heads, 63 sectors/track, 36404 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1           5       40131   de  Dell Utility
/dev/sda2               6        1251    10008495   8e  Linux LVM
/dev/sda3   *        1252        1276      200812+  83  Linux
/dev/sda4            1277       36404   282165660    5  Extended
/dev/sda5            1277       36404   282165628+  8e  Linux LVM

Disk /dev/sdb: 898.3 GB, 898319253504 bytes
255 heads, 63 sectors/track, 109214 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table
[root@localhost ~]#

Is it possible the commands to check if this is the new one?

---------- Post updated at 03:27 PM ---------- Previous update was at 03:24 PM ----------

/dev/sdb

# iscsiadm --mode node --targetname iqn.1992-08.com.netapp:sn.118055363 --portal 192.168.0.28:3260 --login

I was able to login:

[root@localhost ~]# iscsiadm --mode node --targetname iqn.1992-08.com.netapp:sn.118055363 --portal 192.168.0.28:3260 --login
Logging in to [iface: default, target: iqn.1992-08.com.netapp:sn.118055363, portal: 192.168.0.28,3260]
Login to [iface: default, target: iqn.1992-08.com.netapp:sn.118055363, portal: 192.168.0.28,3260]: successful
[root@localhost ~]#

Members can you help with this

I posted a link with the basic steps to take which results in the mount of a new volume which was your original question.

Basically, you need to run 'discovery' against the SAN ip address to see what is offered to you. Ensure that you identify the new resource and not one that you are already using. Login to the LUN, format the LUN with the filesystem of your choice, and then mount the LUN.

If you have further question(s) then please post.