Linux

RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

Mount a newly added LUN on a GNU/Linux distro

👤 Login to reply

 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-01-2017
fretagi fretagi is offline
Registered User
 
Join Date: Oct 2011
Last Activity: 13 July 2018, 6:08 AM EDT
Posts: 441
Thanks: 105
Thanked 3 Times in 3 Posts
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:
Code:
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:
Code:
[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
Code:
[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:
Code:
[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
Sponsored Links
    #2  
Old 06-01-2017
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 21 July 2018, 4:54 AM EDT
Location: Devon, UK
Posts: 1,924
Thanks: 291
Thanked 514 Times in 433 Posts
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.
The Following User Says Thank You to hicksd8 For This Useful Post:
fretagi (06-01-2017)
Sponsored Links
    #3  
Old 06-01-2017
fretagi fretagi is offline
Registered User
 
Join Date: Oct 2011
Last Activity: 13 July 2018, 6:08 AM EDT
Posts: 441
Thanks: 105
Thanked 3 Times in 3 Posts
if I run the discovery command:
Code:
 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:
Code:
[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

Last edited by fretagi; 06-01-2017 at 09:26 AM.. Reason: add more info
    #4  
Old 06-01-2017
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 21 July 2018, 4:54 AM EDT
Location: Devon, UK
Posts: 1,924
Thanks: 291
Thanked 514 Times in 433 Posts
Code:
# iscsiadm --mode node --targetname iqn.1992-08.com.netapp:sn.118055363 --portal 192.168.0.28:3260 --login

Sponsored Links
    #5  
Old 06-02-2017
fretagi fretagi is offline
Registered User
 
Join Date: Oct 2011
Last Activity: 13 July 2018, 6:08 AM EDT
Posts: 441
Thanks: 105
Thanked 3 Times in 3 Posts
I was able to login:
Code:
[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 ~]#

Sponsored Links
    #6  
Old 06-05-2017
fretagi fretagi is offline
Registered User
 
Join Date: Oct 2011
Last Activity: 13 July 2018, 6:08 AM EDT
Posts: 441
Thanks: 105
Thanked 3 Times in 3 Posts
Members can you help with this
Sponsored Links
    #7  
Old 06-05-2017
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 21 July 2018, 4:54 AM EDT
Location: Devon, UK
Posts: 1,924
Thanks: 291
Thanked 514 Times in 433 Posts
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.
Sponsored Links
👤 Login to reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
CVS: can not checkout a newly added file twk UNIX for Advanced & Expert Users 0 09-12-2014 07:23 AM
Partitioning newly added disk to Redhat bobby320 Red Hat 2 12-27-2011 08:32 PM
how to open file and see newly added updates trento17 UNIX for Dummies Questions & Answers 1 11-01-2011 05:40 PM
Redhat 5 can't see my newly added LUN. gisu0602 Red Hat 2 08-11-2011 03:11 PM
title of newly added column ravi.videla Shell Programming and Scripting 6 12-14-2010 01:21 PM



All times are GMT -4. The time now is 05:48 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?