LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-11-2016, 02:37 PM   #1
Sarek07
LQ Newbie
 
Registered: Oct 2016
Posts: 4

Rep: Reputation: Disabled
iscsi /dev/sdb already mounted or /NetApp/Lun busy


Hello people,

Ik have a little problem, i'm working on a Red Hat Enterprise Linux Server release 6.5 (Santiago)system (for a storage exam) and i need to connect to a iscsi lun on a NetApp filer (Ontap 8.3).

The Lun was on a older system and for the exam i had to move it to the new storage system. No problem there. The IP of the iSCSI target is not changed, and on the new storage i setup the name of the target the same as the old

When moved i did the following

iscsiadm -m session

iscsiadm -m discovery -t sendtargets -p 10.10.10.18

iscsiadm -m node -T iqn.1992-08.com.netapp:sn.123456789 -p 10.10.10.18:3260 -l

after that i rebooted the linux server

when up again i gave the command: mount to see if all drive where there, but the lun which is /dev/sdb what not there

then i did mount -a

but i got the message /dev/sdb already mounted or /NetApp/Lun busy

i looked in the fstab file (which has not changed)
#
# /etc/fstab
# Created by anaconda on Wed Jan 29 16:02:37 2014
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/VolGroup-lv_root / ext4 defaults 1 1
UUID=e0f3ac5d-7309-4810-a088-abbb3147f125 /boot ext4 defaults 1 2
/dev/mapper/VolGroup-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/sdb /NetApp/Lun ext4 defaults 0 0
10.10.10.11:/vol/vol2/qtree1 /NetApp/EPM1/vol2 nfs defaults 0 0
10.10.10.12:/vol/vol2/qtree3 /NetApp/Camera/vol2 nfs defaults 0 0
10.10.10.12:/vol/vol3/qtree4 /NetApp/Camera/vol3 nfs defaults 0 0


The mtab file is like this

/dev/mapper/VolGroup-lv_root / ext4 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs rw,rootcontext="system_ubject_r:tmpfs_t:s0" 0 0
/dev/sda1 /boot ext4 rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
none /sys/kernel/config configfs rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
10.10.10.11:/vol/vol2/qtree1 /NetApp/EPM1/vol2 nfs rw,addr=10.10.10.11 0 0
10.10.10.12:/vol/vol2/qtree3 /NetApp/Camera/vol2 nfs rw,addr=10.10.10.12 0 0
10.10.10.12:/vol/vol3/qtree4 /NetApp/Camera/vol3 nfs rw,addr=10.10.10.12 0 0
nfsd /proc/fs/nfsd nfsd rw 0 0


if i close all sessions, reboot the server the same message is there aleardy mounted ......

i'm at a loss on how to get rid of this message and reconnect to the iSCSI lun, any help for this linux newbe would be helpfull.
 
Old 10-11-2016, 02:57 PM   #2
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by Sarek07 View Post
Hello people,

Ik have a little problem, i'm working on a Red Hat Enterprise Linux Server release 6.5 (Santiago)system (for a storage exam) and i need to connect to a iscsi lun on a NetApp filer (Ontap 8.3).
Exam, really? I don't know of any college or higher ed institute that really teaches SAN or storage IT skills, like NetAPP. I'm curious to know name of the class and college where you are taking this exam?

You have cross post this same question here:

http://www.linuxquestions.org/questi...sy-4175591206/


Can't tell if you ran the following commands:

Code:
iscsiadm -m session

iscsiadm -m discovery -t sendtargets -p 10.10.10.18

iscsiadm -m node -T iqn.1992-08.com.netapp:sn.123456789 -p 10.10.10.18:3260 -l
At the SAN level or at the OS level? However I googled around and there is a Linux man page for this iscsiadmin command...

I work with a storage person and I've never had to do any type of configuration on the OS side (RHEL) when mapping LUNS to SAN.

To me, these look like NFS shares that the NetApp is mapped to?
Code:
10.10.10.11:/vol/vol2/qtree1 /NetApp/EPM1/vol2 nfs defaults 0 0
10.10.10.12:/vol/vol2/qtree3 /NetApp/Camera/vol2 nfs defaults 0 0
10.10.10.12:/vol/vol3/qtree4 /NetApp/Camera/vol3 nfs defaults 0 0
I guess I'm having a hard time undestanding where the OS comes in when LUN to LUN.
 
Old 10-11-2016, 03:13 PM   #3
Sarek07
LQ Newbie
 
Registered: Oct 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
Yes it is a exam 7mtt exam. (no class or workshop available, just the exam)

You are correct there are also some NFS share maped and those are connecting fine.

The OS was on the "old storage" NetApp Release 8.1.4 7-Mode on the "new storage" it is NetApp Release 8.3RC1

I ran the commands you stated

iscsiadm -m session

iscsiadm -m discovery -t sendtargets -p 10.10.10.18

iscsiadm -m node -T iqn.1992-08.com.netapp:sn.123456789 -p 10.10.10.18:3260 -l

after that i rebooted the linux server


And the discovery and the login is going well, but after the reboot the LUN does not show when i use the mount command. And if i use mount -a (to load all in FSTAB)i get the message iscsi /dev/sdb already mounted or /NetApp/Lun busy
 
Old 10-11-2016, 04:08 PM   #4
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 417

Rep: Reputation: 74
Is the iscsi init script set to run onboot? What's the output of dmesg? Maybe it acquired a new block device name?
 
Old 10-12-2016, 03:09 AM   #5
Sarek07
LQ Newbie
 
Registered: Oct 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
In te output from dmesg i can see this about iscsi

scsi 4:0:0:0: Direct-Access NETAPP LUN C-Mode 8300 PQ: 0 ANSI: 5
scsi 3:0:0:0: Direct-Access NETAPP LUN C-Mode 8300 PQ: 0 ANSI: 5
sd 3:0:0:0: Attached scsi generic sg2 type 0
sd 4:0:0:0: Attached scsi generic sg3 type 0
sd 3:0:0:0: [sdb] 8388608 512-byte logical blocks: (4.29 GB/4.00 GiB)
sd 3:0:0:0: [sdb] 4096-byte physical blocks
sd 4:0:0:0: [sdc] 8388608 512-byte logical blocks: (4.29 GB/4.00 GiB)
sd 4:0:0:0: [sdc] 4096-byte physical blocks
sd 3:0:0:0: [sdb] Write Protect is off
sd 3:0:0:0: [sdb] Mode Sense: c2 00 00 08
sd 3:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sdb: unknown partition table
sd 4:0:0:0: [sdc] Write Protect is off
sd 4:0:0:0: [sdc] Mode Sense: c2 00 00 08
sd 3:0:0:0: [sdb] Attached SCSI disk
sd 4:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sdc: unknown partition table
sd 4:0:0:0: [sdc] Attached SCSI disk
sd 4:0:0:0: alua: supports implicit TPGS
sd 4:0:0:0: alua: port group 3e9 rel port 05
sd 4:0:0:0: alua: transition timeout set to 120 seconds
sd 4:0:0:0: alua: port group 3e9 state A non-preferred supports TolUsNA
sd 4:0:0:0: alua: Attached
sd 3:0:0:0: alua: supports implicit TPGS
sd 3:0:0:0: alua: port group 3e9 rel port 04
sd 3:0:0:0: alua: transition timeout set to 120 seconds
sd 3:0:0:0: alua: port group 3e9 state A non-preferred supports TolUsNA
sd 3:0:0:0: alua: Attached
alua: device handler registered
device-mapper: multipath round-robin: version 1.0.0 loaded
sd 3:0:0:0: alua: port group 3e9 state A non-preferred supports TolUsNA
sd 4:0:0:0: alua: port group 3e9 state A non-preferred supports TolUsNA
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iscsi /dev/sdb already mounted or /NetApp/Lun busy Sarek07 Red Hat 1 10-13-2016 10:07 AM
iscsi: which local device (/dev/sda, /dev/sdb) is used WITHOUT dmesg? knikkerr Linux - Software 3 08-13-2010 04:30 AM
/dev/shm not mounted /dev busy compgenius999 Linux - Newbie 1 03-03-2010 11:12 AM
/dev/sdb2 already mounted or /mnt/other busy klmaustin Linux - Hardware 5 12-12-2009 09:25 AM
/dev/hda4 already mounted or z busy tunasashimi Ubuntu 13 09-06-2005 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration