Mount a newly added LUN on a GNU/Linux distro


 
Thread Tools Search this Thread
Operating Systems Linux Mount a newly added LUN on a GNU/Linux distro
# 1  
Old 06-01-2017
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
# 2  
Old 06-01-2017
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.
This User Gave Thanks to hicksd8 For This Post:
# 3  
Old 06-01-2017
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 10:26 AM.. Reason: add more info
# 4  
Old 06-01-2017
Code:
# iscsiadm --mode node --targetname iqn.1992-08.com.netapp:sn.118055363 --portal 192.168.0.28:3260 --login

# 5  
Old 06-02-2017
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 ~]#

# 6  
Old 06-05-2017
Members can you help with this
# 7  
Old 06-05-2017
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Identify newly attached LUN from NetApp

Hi I need to identify a newly attached LUN from NetApp on a linuxserver running uname -o GNU/Linux I have first run the df -h and got the following: df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_outsystemdb-lv_root 50G 2.7G 45G ... (3 Replies)
Discussion started by: fretagi
3 Replies

2. Red Hat

"Unable to Detect Newly added HDD - Redhat 5"

Hi Folks, I am unable to detected newly added HDD in my redhat-5 OS. I am expecting to get /dev/sdb. Following are the utilized commands or syntax. root@hostname% cat /etc/redhat-release Red Hat Enterprise Linux Client release 5.4 (Tikanga) echo "- - -" > /sys/class/scsi_host/host0/scan %... (1 Reply)
Discussion started by: Sricharan21
1 Replies

3. UNIX for Advanced & Expert Users

CVS: can not checkout a newly added file

My project is on solaris 10 using cvs 1.12.13. A team member has added a new file to the repo using the add command followed by commit. When another team member executes the status command in the directory containing the new file they do not get notifiction that there is a file that needs to be... (0 Replies)
Discussion started by: twk
0 Replies

4. Hardware

Formatting a newly created lun

Hi , I have created one new lun in my SAN storage and make it visible to my HP servers , but the fdisk -l output is somehow confusing. Do not know what to do next ---------- fdisk -l /dev/sdo1 Disk /dev/sdo1 (Sun disk label): 64 heads, 32 sectors, 10238 cylinders Units =... (7 Replies)
Discussion started by: mishra.sankar
7 Replies

5. Red Hat

Need to mount LUN on two linux boxs (one rw the other ro) caveat details inside

Calling all Linux GURU's. The purpose of this thread is to try an recreate what we already have stood up in my environment, however the steps i am having to produce my own. I have got multiple applications that dump the data to various LUNs, the LUNs are managed by an Enterprise SAN... (11 Replies)
Discussion started by: jcejka
11 Replies

6. Solaris

Can't see Newly created LUN by SAN admin

hello, i am an oracle DBA and trying to scan a newly created LUN of 200 GB on fiber channel by SAN admin.we have solaris 10 and SANtoolkit is installed.i tried following to get the new LUN at my machine. go /opt/Netapp/Santoolkit/bin and then ./sanlun lun show but i see only the existing... (12 Replies)
Discussion started by: janakors
12 Replies

7. Red Hat

Partitioning newly added disk to Redhat

Hi Everyone, I have added new Virtual disk to OS. The main point is I need to bring this whole Disk into LVM control, is it necessary to partition the disk using fdisk command and assign partition type as '8e', or can I directly add that disk into LVM, by running pvcreate command with out... (2 Replies)
Discussion started by: bobby320
2 Replies

8. UNIX for Dummies Questions & Answers

how to open file and see newly added updates

Hi, I just forgot what command we can use to open a file, and then see its updates, I remember that there is an option -f ,but with what command :wall: Tx Trent (1 Reply)
Discussion started by: trento17
1 Replies

9. Red Hat

Redhat 5 can't see my newly added LUN.

hi all, i have added new LUN to Redhat 5. i have already scanned LUN devices and it is confirmed that Kernel sees the newly added LUN's. i have used /proc/partitions and verified that my disks are there. However, i cannot find my disk using fdisk -l command. I am not sure what did i... (2 Replies)
Discussion started by: gisu0602
2 Replies

10. Shell Programming and Scripting

title of newly added column

Hi, I have a csv file. I need to add one column at begining of the file, It just contains one value "amr". I am able to add column but unable to put title to it. Input Data: call_id,conn_id,result,ani 1,100,hungup,7601234 2,101,hungup,7601235 Desired Output: ... (6 Replies)
Discussion started by: ravi.videla
6 Replies
Login or Register to Ask a Question